1[package]
2
3name = "url"
4# When updating version, also modify html_root_url in the lib.rs
5version = "2.5.4"
6authors = ["The rust-url developers"]
7
8description = "URL library for Rust, based on the WHATWG URL Standard"
9documentation = "https://docs.rs/url"
10repository = "https://github.com/servo/rust-url"
11readme = "../README.md"
12keywords = ["url", "parser"]
13categories = ["parser-implementations", "web-programming", "encoding", "no-std"]
14license = "MIT OR Apache-2.0"
15include = ["src/**/*", "LICENSE-*", "README.md", "tests/**"]
16edition = "2018"
17rust-version = "1.63" # From libc
18
19[dev-dependencies]
20serde = { version = "1.0", features = ["derive"] }
21serde_json = "1.0"
22bencher = "0.1"
23
24[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dev-dependencies]
25wasm-bindgen-test = "0.3"
26
27[dependencies]
28form_urlencoded = { version = "1.2.1", path = "../form_urlencoded", default-features = false, features = ["alloc"] }
29idna = { version = "1.0.3", path = "../idna", default-features = false, features = ["alloc", "compiled_data"] }
30percent-encoding = { version = "2.3.1", path = "../percent_encoding", default-features = false, features = ["alloc"] }
31serde = { version = "1.0", optional = true, features = ["derive"] }
32
33[features]
34default = ["std"]
35std = ["idna/std", "percent-encoding/std", "form_urlencoded/std"]
36
37# Enable to use the #[debugger_visualizer] attribute. This feature requires Rust >= 1.71.
38debugger_visualizer = []
39# Expose internal offsets of the URL.
40expose_internals = []
41
42[[test]]
43name = "url_wpt"
44path = "tests/wpt.rs"
45harness = false
46
47[[bench]]
48name = "parse_url"
49path = "benches/parse_url.rs"
50harness = false
51
52[package.metadata.docs.rs]
53features = ["serde"]
54rustdoc-args = ["--generate-link-to-definition"]
55
56[package.metadata.playground]
57features = ["serde"]
58