jstrict 0.13.0

Strict RFC 8259 / ECMA-404 JSON parser with source code mapping
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.1"
name = "jstrict"
version = "0.13.0"
authors = [
    "Timothée Haudebourg <author@haudebourg.net>",
    "Matej Škvarč <matej.skvarc@senlab.io>",
]
build = false
exclude = ["/.github"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Strict RFC 8259 / ECMA-404 JSON parser with source code mapping"
documentation = "https://docs.rs/jstrict"
readme = "README.md"
keywords = [
    "json",
    "parser",
    "rfc8259",
    "canonicalize",
    "simd",
]
categories = [
    "parser-implementations",
    "encoding",
    "data-structures",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/mskvarc/jstrict/"

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

[features]
canonicalize = ["dep:ryu-js"]
contextual = ["dep:contextual"]
default = ["simdutf8"]
serde = [
    "dep:serde",
    "smallstr/serde",
]
serde_json = ["dep:serde_json"]
simdutf8 = ["dep:simdutf8"]
sonic-rs = ["dep:sonic-rs"]

[lib]
name = "jstrict"
path = "src/lib.rs"
bench = false

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

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

[[example]]
name = "sonic_rs"
path = "examples/sonic_rs.rs"
required-features = ["sonic-rs"]

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

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

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

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

[[bench]]
name = "canonicalize"
path = "benches/canonicalize.rs"
harness = false
required-features = ["canonicalize"]

[[bench]]
name = "convert"
path = "benches/convert.rs"
harness = false
required-features = ["serde_json"]

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

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

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

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

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

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

[[bench]]
name = "serde"
path = "benches/serde.rs"
harness = false
required-features = ["serde"]

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

[dependencies.contextual]
version = "0.1.6"
optional = true

[dependencies.decoded-char]
version = "0.1.1"

[dependencies.hashbrown]
version = "0.17.1"

[dependencies.json-escape-simd]
version = "3.1.1"

[dependencies.lexical]
version = "7.0.5"
features = ["format"]

[dependencies.locspan]
version = "0.8.2"

[dependencies.locspan-derive]
version = "0.6.0"

[dependencies.memchr]
version = "2.8.3"

[dependencies.ryu-js]
version = "1.0.3"
optional = true

[dependencies.serde]
version = "1.0.229"
optional = true

[dependencies.serde_json]
version = "1.0.151"
optional = true

[dependencies.simdutf8]
version = "0.1.5"
optional = true

[dependencies.smallstr]
version = "0.3.1"

[dependencies.smallvec]
version = "1.15.2"

[dependencies.sonic-rs]
version = "0.5.8"
optional = true

[dependencies.utf8-decode]
version = "2.0.0"

[dev-dependencies.criterion]
version = "0.8.2"
features = ["html_reports"]

[dev-dependencies.ryu-js]
version = "1.0.3"

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

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

[lints.clippy]
cloned_instead_of_copied = "warn"
map_unwrap_or = "warn"
missing_const_for_fn = "warn"
needless_collect = "warn"
redundant_clone = "warn"
unnecessary_self_imports = "warn"
used_underscore_binding = "warn"
wildcard_dependencies = "warn"
wildcard_imports = "warn"