# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2018"
rust-version = "1.63"
name = "url"
version = "2.5.8"
authors = ["The rust-url developers"]
build = false
include = [
    "src/**/*",
    "LICENSE-*",
    "README.md",
    "tests/**",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "URL library for Rust, based on the WHATWG URL Standard"
documentation = "https://docs.rs/url"
readme = "README.md"
keywords = [
    "url",
    "parser",
]
categories = [
    "parser-implementations",
    "web-programming",
    "encoding",
    "no-std",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/servo/rust-url"

[package.metadata.docs.rs]
features = ["serde"]
rustdoc-args = ["--generate-link-to-definition"]

[package.metadata.playground]
features = ["serde"]

[features]
debugger_visualizer = []
default = ["std"]
expose_internals = []
serde = [
    "dep:serde",
    "dep:serde_derive",
]
std = [
    "idna/std",
    "percent-encoding/std",
    "form_urlencoded/std",
    "serde?/std",
]

[lib]
name = "url"
path = "src/lib.rs"

[[test]]
name = "unit"
path = "tests/unit.rs"

[[test]]
name = "url_wpt"
path = "tests/wpt.rs"
harness = false

[dependencies.form_urlencoded]
version = "1.2.2"
features = ["alloc"]
default-features = false

[dependencies.idna]
version = "1.1.0"
features = [
    "alloc",
    "compiled_data",
]
default-features = false

[dependencies.percent-encoding]
version = "2.3.2"
features = ["alloc"]
default-features = false

[dependencies.serde]
version = "1.0"
optional = true
default-features = false

[dependencies.serde_derive]
version = "1.0"
optional = true
default-features = false

[dev-dependencies.bencher]
version = "0.1"

[dev-dependencies.serde]
version = "1.0"

[dev-dependencies.serde_derive]
version = "1.0"

[dev-dependencies.serde_json]
version = "1.0"

[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dev-dependencies.wasm-bindgen-test]
version = "0.3"
