Cargo Features

[dependencies]
urn = { version = "0.7.0", default-features = false, features = ["std", "alloc", "nightly", "serde"] }
default = std

The std feature is set by default whenever urn is added without default-features = false somewhere in the dependency tree.

std default = alloc
alloc std

Enables alloc of optional serde

serde:

Provide impls for types in the Rust core allocation and collections library including String, Box<T>, Vec<T>, and Cow<T>. This is a subset of std but may be enabled without depending on all of std.

Affects urn::percent, urn::UrnBuilder, percent::decode_nss, percent::decode_r_component, percent::decode_q_component, percent::decode_f_component, percent::encode_nss, percent::encode_r_component, percent::encode_q_component, percent::encode_f_component

nightly

Features from optional dependencies

serde implicit feature

Enables serde

serde:

A generic serialization/deserialization framework