-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCargo.toml
64 lines (64 loc) · 1.63 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
[package]
authors = ["Xintong Sun <[email protected]>"]
categories = ["science", "text-processing"]
description = "A fast constrained decoding engine based on context free grammar."
edition = "2021"
exclude = [".*"]
keywords = [
"deep-learning",
"language-model",
"guided-generation",
"structured",
"constrained-decoding",
]
license = "MIT OR Apache-2.0"
name = "kbnf"
repository = "https://github.com/Dan-Wanna-M/kbnf"
version = "0.5.6"
[lib]
name = "kbnf"
crate-type = ["cdylib", "rlib"]
[dependencies]
ahash = { version = "0.8.11", features = ["serde"] }
getrandom = { version = "0.2" }
thiserror = "2.0"
kbnf-syntax = "0.5.3"
num = "0.4.3"
jaggedarray = "0.2.11"
string-interner = "0.18.0"
nom = "7.1.3"
tinyvec = "1.6.0"
nonmax = "0.5.5"
fixedbitset-stack = "0.5.7"
kbnf-regex-automata = "0.4.10"
serde = "1.0.203"
strum = { version = "0.26", features = ["derive"] }
displaydoc = "0.2.4"
wasm-bindgen = { version = "0.2", optional = true }
serde-wasm-bindgen = { version = "0.6.5", optional = true }
js-sys = { version = "0.3.69", optional = true }
pyo3 = { version = "0.23", features = [
"multiple-pymethods",
"extension-module",
"abi3-py37",
], optional = true }
mimalloc = { version = "0.1.43", optional = true }
log = "0.4.22"
pyo3-log = { version = "0.12.0", optional = true }
general-sam = "1.0.0"
[dev-dependencies]
insta = { version = "1.26.0" }
serde_json = "1.0.48"
criterion = "0.5.1"
[features]
default = []
wasm = ["getrandom/js", "wasm-bindgen", "serde-wasm-bindgen", "js-sys"]
python = ["pyo3", "pyo3-log"]
[[bench]]
name = "simple"
harness = false
[[bench]]
name = "profiler"
harness = false
[profile.bench]
debug = false