Cargo Features

[dependencies]
url = { version = "2.5.3", default-features = false, features = ["std", "debugger_visualizer", "expose_internals", "serde"] }
default = std

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

std default

Enables std of form_urlencoded, idna, and percent-encoding

debugger_visualizer

Enable to use the #[debugger_visualizer] attribute. This feature requires Rust >= 1.71.

expose_internals

Expose internal offsets of the URL.

Affects quirks::InternalComponents, quirks::internal_components

Features from optional dependencies

serde implicit feature

Enables serde

serde:

A generic serialization/deserialization framework