# 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"
name = "bufjson"
version = "1.0.1"
authors = ["Victor Schappert <victor.schappert@protonmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Fast streaming JSON parser and lexer | Read JSON without allocating or copying."
homepage = "https://github.com/vcschapp/bufjson"
documentation = "https://docs.rs/bufjson"
readme = "README.md"
keywords = [
    "json",
    "parser",
    "streaming",
    "performance",
    "no-std",
]
categories = [
    "parser-implementations",
    "encoding",
    "network-programming",
    "no-std",
    "web-programming",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/vcschapp/bufjson"

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

[features]
default = ["std"]
ignore_case = ["dep:caseless"]
num = []
num_ext = ["num"]
pipe = [
    "dep:bytes",
    "dep:smallvec",
]
pointer = ["dep:smallvec"]
read = []
std = ["bytes?/std"]

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

[[bench]]
name = "generator"
path = "benches/generator.rs"

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

[dependencies.bitvec]
version = "^1.0.1"
features = ["alloc"]
default-features = false

[dependencies.bytes]
version = "^1.11.1"
optional = true
default-features = false

[dependencies.caseless]
version = "^0.2.2"
optional = true

[dependencies.smallvec]
version = "^1.15.1"
optional = true

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

[dev-dependencies.doc-comment]
version = "^0.3.3"

[dev-dependencies.json-streaming]
version = "^1.0.3"
features = ["tokio"]

[dev-dependencies.rand]
version = "^0.10.0"

[dev-dependencies.rand_distr]
version = "^0.6.0"

[dev-dependencies.rstest]
version = "^0.26.1"

[dev-dependencies.serde_json]
version = "^1.0.49"

[dev-dependencies.simd-json]
version = "^0.17.0"

[dev-dependencies.smallvec]
version = "^1.15.1"

[dev-dependencies.struson]
version = "^0.7.2"

[dev-dependencies.tempfile]
version = "^3.25.0"

[dev-dependencies.tokio]
version = "^1.50.0"
features = [
    "macros",
    "rt",
    "sync",
]

[profile.profiling]
debug = 2
inherits = "release"
