sorug 0.5.0

Ultra-high-performance, zero-copy, WHATWG-compliant URL parser
Documentation
# 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 = "2024"
rust-version = "1.85"
name = "sorug"
version = "0.5.0"
build = "build.rs"
exclude = [
    "memories.md",
    "target/",
    "ffi/",
    "fuzz/",
    "fuzz/corpus/",
    "fuzz/artifacts/",
    "fuzz/logs/",
    "fuzz/target/",
]
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Ultra-high-performance, zero-copy, WHATWG-compliant URL parser"
homepage = "https://github.com/hocestnonsatis/sorug"
documentation = "https://docs.rs/sorug"
readme = "README.md"
keywords = [
    "url",
    "parser",
    "whatwg",
    "simd",
    "swar",
]
categories = [
    "parser-implementations",
    "network-programming",
    "no-std",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/hocestnonsatis/sorug"
resolver = "2"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
default = ["std"]
http = [
    "dep:http",
    "std",
]
serde = ["dep:serde"]
std = ["memchr/std"]

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

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

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

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

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

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

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

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

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

[[bench]]
name = "url_benchmark"
path = "benches/url_benchmark.rs"
harness = false

[dependencies.http]
version = "1"
optional = true

[dependencies.memchr]
version = "2.7"
default-features = false

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

[dependencies.unicode-normalization]
version = "0.1"
default-features = false

[dev-dependencies.ada-url]
version = "4"

[dev-dependencies.criterion]
version = "0.5"

[dev-dependencies.serde]
version = "1"
features = ["derive"]

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

[dev-dependencies.url]
version = "2.5"

[lints.clippy]
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
unsafe_code = "forbid"

[profile.bench]
opt-level = 3
lto = true
codegen-units = 1

[profile.release]
lto = true
codegen-units = 1
panic = "abort"