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