maskforge-core 0.1.0

Bounded JSON Schema constrained-decoding engine.
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 = "2021"
rust-version = "1.86"
name = "maskforge-core"
version = "0.1.0"
build = false
include = [
    "src/**/*.rs",
    "benches/*.rs",
    "examples/*.rs",
    "/README.md",
    "/LICENSE",
    "/PROVENANCE.md",
    "/Cargo.toml",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Bounded JSON Schema constrained-decoding engine."
homepage = "https://github.com/dhanavanthesh/maskforge"
readme = "README.md"
keywords = [
    "llm",
    "json-schema",
    "constrained-decoding",
]
categories = [
    "parsing",
    "algorithms",
]
license = "Apache-2.0"
repository = "https://github.com/dhanavanthesh/maskforge"
resolver = "3"

[features]
alloc-probe = []
bench-internals = []
benchmark-tools = ["dep:windows-sys"]
default = []
huggingface-hub = [
    "tokenizer-processing",
    "dep:hf-hub",
    "tokenizers/http",
    "tokenizers/rustls-tls",
]
test-utils = []
tokenizer-processing = [
    "dep:once_cell",
    "dep:serde",
    "dep:serde_json",
    "dep:tokenizers",
]

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

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

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

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

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

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

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

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

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

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

[dependencies.bincode]
version = "2.0.1"

[dependencies.blake3]
version = "1"
features = ["std"]
default-features = false

[dependencies.fluent-uri]
version = "=0.4.1"
features = ["alloc"]
default-features = false

[dependencies.hf-hub]
version = "=0.4.1"
features = [
    "ureq",
    "rustls-tls",
]
optional = true
default-features = false

[dependencies.once_cell]
version = "1.20"
optional = true

[dependencies.regex-automata]
version = "=0.4.18"
features = [
    "std",
    "syntax",
    "dfa-build",
    "dfa-search",
    "unicode-gencat",
]
default-features = false

[dependencies.rustc-hash]
version = "2.1.0"

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

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

[dependencies.thiserror]
version = "2.0"

[dependencies.tokenizers]
version = "0.22.2"
features = ["onig"]
optional = true
default-features = false

[dev-dependencies.criterion]
version = "0.5"
features = ["cargo_bench_support"]
default-features = false

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

[dev-dependencies.rustc-hash]
version = "2.1.0"

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

[target."cfg(windows)".dependencies.windows-sys]
version = "0.59"
features = [
    "Win32_System_ProcessStatus",
    "Win32_System_Threading",
    "Win32_Foundation",
]
optional = true

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(tarpaulin_include)"]