Cargo.toml 1.7 KB

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