1 | [package] |
2 | |
3 | name = "url" |
4 | # When updating version, also modify html_root_url in the lib.rs |
5 | version = "2.5.0" |
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" ] |
14 | license = "MIT OR Apache-2.0" |
15 | include = ["src/**/*" , "LICENSE-*" , "README.md" , "tests/**" ] |
16 | edition = "2018" |
17 | rust-version = "1.56" |
18 | |
19 | [dev-dependencies] |
20 | serde = { version = "1.0" , features = ["derive" ] } |
21 | serde_json = "1.0" |
22 | bencher = "0.1" |
23 | |
24 | [dependencies] |
25 | form_urlencoded = { version = "1.2.1" , path = "../form_urlencoded" } |
26 | idna = { version = "0.5.0" , path = "../idna" } |
27 | percent-encoding = { version = "2.3.1" , path = "../percent_encoding" } |
28 | serde = { version = "1.0" , optional = true, features = ["derive" ] } |
29 | |
30 | [features] |
31 | default = [] |
32 | # Enable to use the #[debugger_visualizer] attribute. This feature requires Rust >= 1.71. |
33 | debugger_visualizer = [] |
34 | # Expose internal offsets of the URL. |
35 | expose_internals = [] |
36 | |
37 | [[test]] |
38 | name = "url_wpt" |
39 | path = "tests/wpt.rs" |
40 | harness = false |
41 | |
42 | [[bench]] |
43 | name = "parse_url" |
44 | path = "benches/parse_url.rs" |
45 | harness = false |
46 | |
47 | [package.metadata.docs.rs] |
48 | features = ["serde" ] |
49 | rustdoc-args = ["--generate-link-to-definition" ] |
50 | |
51 | [package.metadata.playground] |
52 | features = ["serde" ] |
53 | |