[package]
edition = "2024"
rust-version = "1.85"
name = "sorug"
version = "0.2.0"
build = "build.rs"
exclude = [
"memories.md",
"target/",
"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",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/hocestnonsatis/sorug"
[lib]
name = "sorug"
path = "src/lib.rs"
[[test]]
name = "comprehensive_validation"
path = "tests/comprehensive_validation.rs"
[[test]]
name = "fuzz_regressions"
path = "tests/fuzz_regressions.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.memchr]
version = "2.7"
features = ["std"]
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"