# 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.88"
name = "qs_rust"
version = "1.0.3"
authors = ["Klemen Tusar <techouse@gmail.com>"]
build = false
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/**",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A query string encoding and decoding library for Rust. Ported from qs for JavaScript."
homepage = "https://techouse.github.io/qs_rust/"
readme = "README.md"
keywords = [
    "qs",
    "query-string",
    "urlencode",
    "urldecode",
    "percent-encoding",
]
categories = [
    "encoding",
    "parser-implementations",
    "web-programming",
]
license = "BSD-3-Clause"
repository = "https://github.com/techouse/qs_rust"

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

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

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

[[example]]
name = "introduction"
path = "examples/introduction.rs"

[[example]]
name = "options"
path = "examples/options.rs"

[[example]]
name = "serde_bridge"
path = "examples/serde_bridge.rs"
required-features = ["serde"]

[dependencies.chrono]
version = "0.4.42"
optional = true
default-features = true

[dependencies.indexmap]
version = "2.14.0"

[dependencies.regex]
version = "1.12.2"

[dependencies.serde]
version = "1.0.228"
features = ["derive"]
optional = true

[dependencies.serde_json]
version = "1.0.145"
features = ["preserve_order"]
optional = true

[dependencies.thiserror]
version = "2.0.17"

[dependencies.time]
version = "0.3.44"
features = ["formatting"]
optional = true

[dev-dependencies.proptest]
version = "1.11.0"

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

[dev-dependencies.serde_json]
version = "1.0.145"
features = ["preserve_order"]
