-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
129 lines (124 loc) · 4.62 KB
/
Copy pathCargo.toml
File metadata and controls
129 lines (124 loc) · 4.62 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
[workspace]
resolver = "2"
members = [
"crates/cobrust-cli",
"crates/cobrust-molt",
"crates/cobrust-frontend",
"crates/cobrust-hir",
"crates/cobrust-mir",
"crates/cobrust-types",
"crates/cobrust-codegen",
"crates/cobrust-jit",
"crates/cobrust-llm-router",
"crates/cobrust-scale",
"crates/cobrust-pkg",
"crates/cobrust-nest",
"crates/cobrust-coil",
"crates/cobrust-stdlib",
"crates/cobrust-translator",
"crates/cobrust-strike",
"crates/cobrust-den",
"crates/cobrust-pit",
"crates/cobrust-hood",
"crates/cobrust-dora",
"crates/cobrust-fang",
"crates/cobrust-redis",
"crates/cobrust-types-parity",
"crates/cobrust-types-cb",
"crates/cobrust-lsp",
"crates/cobrust-dap",
"crates/cobrust-registry",
]
[workspace.package]
version = "0.6.2"
edition = "2024"
rust-version = "1.94"
license = "Apache-2.0 OR MIT"
authors = ["The Cobrust Project"]
repository = "https://github.com/Cobrust-lang/cobrust"
homepage = "https://github.com/Cobrust-lang/cobrust"
readme = "README.md"
# Workspace-wide rustc lints.
# Strict by intent: M0 skeleton compiles clean; new code stays clean.
[workspace.lints.rust]
unsafe_op_in_unsafe_fn = "warn"
unused_must_use = "deny"
# Workspace-wide clippy lints.
# pedantic at priority -1 so individual overrides win.
[workspace.lints.clippy]
pedantic = { level = "warn", priority = -1 }
unwrap_used = "warn"
todo = "warn"
dbg_macro = "warn"
# Disable lints that produce noise on legitimate domain vocabulary.
#
# Tier-2 CQ P0-1 audit (2026-05-21) re-confirmed: the 967 doc_markdown
# warnings the audit reported are an artefact of running
# `cargo clippy ... -W clippy::doc_markdown` (which re-elevates the lint
# past this workspace-allow). Default `cargo clippy --workspace
# --all-targets` reports zero doc_markdown warnings — workspace-allow
# wins. The lint is suppressed because >80% of would-be hits are
# domain identifiers (`DefId`, `MirError`, `LParen`, `DoS`, `FileId`,
# `tomllib`) — backticking them does not improve readability for a
# compiler crate's docs.
doc_markdown = "allow"
module_name_repetitions = "allow"
# Shared dependency versions. Members opt in with `dep.workspace = true`.
[workspace.dependencies]
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
toml = "0.8"
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
thiserror = "1.0"
anyhow = "1.0"
async-trait = "0.1"
tokio = { version = "1.40", features = [
"macros",
"rt-multi-thread",
"fs",
"io-util",
"sync",
"time",
] }
futures = "0.3"
reqwest = { version = "0.12", features = ["json", "stream", "rustls-tls"], default-features = false }
# v0.7.0 Stream Z.1.a — `cobrust-pit` (translated flask) HTTP-server backend.
# Roadmap §4.1 (flask row: axum sync-style via task::block_on) + §5
# (MUST-ship HTTP server). axum brings hyper/tower (already in the tree
# via reqwest's transitive deps); the `pit` surface stays sync by driving
# the axum server under a singleton tokio runtime (ADR-0028 precedent).
axum = "0.7"
# v0.7.0 Stream Z.7.c — `cobrust-den` (translated sqlite3) PEP 249 surface backend.
# `bundled` compiles libsqlite3 from source so no system libsqlite3 is
# required (deterministic build, CI-portable per F40/F44 discipline).
# Z.0.b was slated to pin this in the workspace audit; landed here with
# the first DB-connector crate since the audit had not reached this branch.
rusqlite = { version = "0.32", features = ["bundled"] }
# v0.7.0 / ADR-0078 Phase-1c — `cobrust-redis` (cache/KV) backend.
# redis-rs SYNC path only (`Client::open` -> `get_connection` ->
# `Commands`); `default-features = false` drops the default
# acl/streams/geospatial/script/num-bigint extras so NO async runtime
# (tokio) is pulled — keeps the build light + the cross-builds green
# (ADR-0078 §3.5). License BSD-3-Clause (first non-Apache/MIT wrapped
# crate; attribution in crates/cobrust-redis/{PROVENANCE.toml,NOTICE}).
redis = { version = "1.2", default-features = false }
sha2 = "0.10"
blake3 = "1.5"
hex = "0.4"
semver = "1"
flate2 = "1"
tar = "0.4"
# ADR-0050d Decision 6A — Wave 3 sub-sprint d Dict storage backing.
# `indexmap::IndexMap` provides Python-3.7+ insertion-order iteration
# (`for k in d:` / `d.items()` / `d.keys()` / `d.values()` preserve insert
# order). Dep audit: depends only on `equivalent` (MIT/Apache-2.0) and
# `hashbrown` (transitively, already a common dep).
indexmap = "2"
# M-AI.0: cobrust-stdlib consumes the router via the optional llm-router feature.
cobrust-llm-router = { path = "crates/cobrust-llm-router" }
[profile.release]
lto = "thin"
codegen-units = 1
opt-level = 3
strip = "debuginfo"