Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
74 lines (66 loc) · 1.95 KB
/
Copy pathCargo.toml
File metadata and controls
74 lines (66 loc) · 1.95 KB
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
65
66
67
68
69
70
71
72
73
74
[package]
name = "conative-gating"
version = "0.1.0"
edition = "2021"
authors = ["Jonathan D.A. Jewell <j.d.a.jewell@open.ac.uk>"]
description = "SLM-as-Cerebellum for LLM Policy Enforcement"
license = "MPL-2.0"
repository = "https://github.com/hyperpolymath/conative-gating"
[workspace]
members = [
"src/oracle",
"src/slm",
"src/contract",
]
# The vendored Bunsenite fork is a path dependency of policy-oracle (optional,
# behind the `nickel` feature). Exclude it from workspace membership so that
# plain `cargo check/test --workspace` does not pull in the Nickel dependency
# tree; it is built only when the `nickel` feature is enabled.
exclude = [
"vendor/bunsenite",
]
[workspace.dependencies]
tokio = { version = "1", features = ["full"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
uuid = { version = "1", features = ["v4", "serde"] }
chrono = { version = "0.4", features = ["serde"] }
thiserror = "2"
tracing = "0.1"
tracing-subscriber = "0.3"
glob = "0.3"
regex = "1"
clap = { version = "4", features = ["derive", "env", "unicode", "wrap_help"] }
clap_complete = "4"
clap_mangen = "0.3"
[features]
# Native Nickel (.ncl) policy loading in the CLI (policy-oracle/nickel).
default = []
nickel = ["policy-oracle/nickel"]
# Real HTTP SLM provider for `contract eval --slm` (slm-evaluator/http).
slm-http = ["slm-evaluator/http"]
[dependencies]
policy-oracle = { path = "src/oracle" }
gating-contract = { path = "src/contract" }
slm-evaluator = { path = "src/slm" }
clap.workspace = true
chrono.workspace = true
clap_complete.workspace = true
clap_mangen.workspace = true
serde.workspace = true
serde_json.workspace = true
uuid.workspace = true
tracing.workspace = true
tracing-subscriber.workspace = true
[dev-dependencies]
criterion = { version = "0.8.2", features = ["html_reports"] }
proptest = "1"
[[bench]]
name = "oracle_bench"
harness = false
[[bench]]
name = "contract_bench"
harness = false
[[bin]]
name = "conative"
path = "src/main.rs"