[package]
authors = ["Klemen Tusar <techouse@gmail.com>"]
name = "qs_rust"
version = "1.0.3"
edition = "2024"
rust-version = "1.88"
description = "A query string encoding and decoding library for Rust. Ported from qs for JavaScript."
license = "BSD-3-Clause"
readme = "README.md"
repository = "https://github.com/techouse/qs_rust"
homepage = "https://techouse.github.io/qs_rust/"
keywords = [
    "qs",
    "query-string",
    "urlencode",
    "urldecode",
    "percent-encoding",
]
categories = ["encoding", "parser-implementations", "web-programming"]
exclude = [
    ".codacy.yml",
    ".flake8",
    ".github/**",
    ".gitignore",
    ".vscode/**",
    "AGENTS.md",
    "CHANGELOG.md",
    "CODE-OF-CONDUCT.md",
    "docs/**",
    "fuzz/**",
    "logo.png",
    "Makefile",
    "perf/**",
    "pyproject.toml",
    "scripts/**",
    "skills/**",
    "src/**/tests/**",
    "src/**/tests.rs",
    "src/bin/**",
    "SECURITY.md",
    "tests/**",
]

[features]
default = []
serde = ["dep:serde", "dep:serde_json", "indexmap/serde"]
chrono = ["dep:chrono"]
time = ["dep:time"]

[dependencies]
chrono = { version = "0.4.42", optional = true, default-features = true }
indexmap = "2.14.0"
regex = "1.12.2"
thiserror = "2.0.17"
serde = { version = "1.0.228", features = ["derive"], optional = true }
serde_json = { version = "1.0.145", optional = true, features = ["preserve_order"] }
time = { version = "0.3.44", optional = true, features = ["formatting"] }

[dev-dependencies]
proptest = "1.11.0"
serde = { version = "1.0.228", features = ["derive"] }
serde_json = { version = "1.0.145", features = ["preserve_order"] }

[[example]]
name = "serde_bridge"
required-features = ["serde"]

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