1 | [package] |
2 | |
3 | name = "url" |
4 | # When updating version, also modify html_root_url in the lib.rs |
5 | version = "2.5.4" |
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 = { version = "1.0" , features = ["derive" ] } |
21 | serde_json = "1.0" |
22 | bencher = "0.1" |
23 | |
24 | [target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dev-dependencies] |
25 | wasm-bindgen-test = "0.3" |
26 | |
27 | [dependencies] |
28 | form_urlencoded = { version = "1.2.1" , path = "../form_urlencoded" , default-features = false, features = ["alloc" ] } |
29 | idna = { version = "1.0.3" , path = "../idna" , default-features = false, features = ["alloc" , "compiled_data" ] } |
30 | percent-encoding = { version = "2.3.1" , path = "../percent_encoding" , default-features = false, features = ["alloc" ] } |
31 | serde = { version = "1.0" , optional = true, features = ["derive" ] } |
32 | |
33 | [features] |
34 | default = ["std" ] |
35 | std = ["idna/std" , "percent-encoding/std" , "form_urlencoded/std" ] |
36 | |
37 | # Enable to use the #[debugger_visualizer] attribute. This feature requires Rust >= 1.71. |
38 | debugger_visualizer = [] |
39 | # Expose internal offsets of the URL. |
40 | expose_internals = [] |
41 | |
42 | [[test]] |
43 | name = "url_wpt" |
44 | path = "tests/wpt.rs" |
45 | harness = false |
46 | |
47 | [[bench]] |
48 | name = "parse_url" |
49 | path = "benches/parse_url.rs" |
50 | harness = false |
51 | |
52 | [package.metadata.docs.rs] |
53 | features = ["serde" ] |
54 | rustdoc-args = ["--generate-link-to-definition" ] |
55 | |
56 | [package.metadata.playground] |
57 | features = ["serde" ] |
58 | |