# 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" name = "kbnf" version = "0.5.5" authors = ["Xintong Sun "] build = false exclude = [".*"] autobins = false autoexamples = false autotests = false autobenches = false description = "A fast constrained decoding engine based on context free grammar." readme = "README.md" keywords = [ "deep-learning", "language-model", "guided-generation", "structured", "constrained-decoding", ] categories = [ "science", "text-processing", ] license = "MIT OR Apache-2.0" repository = "https://github.com/Dan-Wanna-M/kbnf" [profile.bench] debug = 0 [lib] name = "kbnf" crate-type = [ "cdylib", "rlib", ] path = "src/lib.rs" [[test]] name = "test" path = "tests/test.rs" [[bench]] name = "profiler" path = "benches/profiler.rs" harness = false [[bench]] name = "simple" path = "benches/simple.rs" harness = false [dependencies.ahash] version = "0.8.11" features = ["serde"] [dependencies.displaydoc] version = "0.2.4" [dependencies.fixedbitset-stack] version = "0.5.7" [dependencies.general-sam] version = "1.0.0" [dependencies.getrandom] version = "0.2" [dependencies.jaggedarray] version = "0.2.11" [dependencies.js-sys] version = "0.3.69" optional = true [dependencies.kbnf-regex-automata] version = "0.4.10" [dependencies.kbnf-syntax] version = "0.5.2" [dependencies.log] version = "0.4.22" [dependencies.mimalloc] version = "0.1.43" optional = true [dependencies.nom] version = "7.1.3" [dependencies.nonmax] version = "0.5.5" [dependencies.num] version = "0.4.3" [dependencies.pyo3] version = "0.22" features = [ "multiple-pymethods", "extension-module", "abi3-py37", ] optional = true [dependencies.pyo3-log] version = "0.11.0" optional = true [dependencies.serde] version = "1.0.203" [dependencies.serde-wasm-bindgen] version = "0.6.5" optional = true [dependencies.string-interner] version = "0.17.0" [dependencies.strum] version = "0.26" features = ["derive"] [dependencies.thiserror] version = "1.0.61" [dependencies.tinyvec] version = "1.6.0" [dependencies.wasm-bindgen] version = "0.2" optional = true [dev-dependencies.criterion] version = "0.5.1" [dev-dependencies.insta] version = "1.26.0" [dev-dependencies.serde_json] version = "1.0.48" [features] default = [] python = [ "pyo3", "pyo3-log", ] wasm = [ "getrandom/js", "wasm-bindgen", "serde-wasm-bindgen", "js-sys", ]