-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
108 lines (99 loc) · 3.71 KB
/
Copy pathCargo.toml
File metadata and controls
108 lines (99 loc) · 3.71 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
[workspace]
resolver = "2"
members = [
"crates/cfdb-core",
"crates/cfdb-concepts",
"crates/cfdb-lang",
"crates/cfdb-query",
"crates/cfdb-petgraph",
"crates/cfdb-extractor",
"crates/cfdb-extractor-shared",
"crates/cfdb-extractor-php",
"crates/cfdb-extractor-ts",
"crates/cfdb-hir-extractor",
"crates/cfdb-hir-petgraph-adapter",
"crates/cfdb-cli",
"crates/cfdb-recall",
"tools/check-prelude-triggers",
"tools/dogfood-enrich",
]
[workspace.package]
version = "0.6.0"
edition = "2021"
rust-version = "1.85"
license = "MIT OR Apache-2.0"
publish = false
[workspace.dependencies]
# Core
serde = { version = "1", features = ["derive"] }
serde_json = "1"
thiserror = "2"
# Parser
chumsky = "0.10"
# Store
petgraph = "0.8"
# Extractor
syn = { version = "2", features = ["full", "extra-traits", "visit"] }
# `span-locations` is load-bearing: proc-macro2 only exposes `Span::start()`
# under this feature on non-proc-macro builds (i.e. cfdb-extractor parsing
# `.rs` files via `syn::parse_file`). Without it, every `:Item.line` and
# `:CallSite.line` collapses to 0 — the bug fixed in #273 / F-005. Keep
# this feature enabled for every workspace consumer that derives source
# coordinates from a syn AST.
proc-macro2 = { version = "1", features = ["span-locations"] }
cargo_metadata = "0.22"
toml = { version = "0.8", default-features = false, features = ["parse"] }
# RFC-044 §3.2 / #428 — signature-pinning tests render `syn::Signature`
# values to deterministic token strings via `quote::quote!`. Declared at
# workspace level so the five per-crate `tests/signatures.rs` files use
# `quote.workspace = true` as a `[dev-dependencies]` edge (NOT a runtime
# dep — the parser is test-only).
quote = "1"
# CLI
clap = { version = "4", features = ["derive"] }
# Testing / utilities
regex = "1"
indexmap = "2"
tempfile = "3"
assert_cmd = "2"
# trybuild — compile-fail tests for `#[non_exhaustive]` annotation enforcement
# (slice 044-G / RFC-044 §3.7). Spawns cargo as a subprocess; pure dev-dep.
trybuild = "1"
# URL → cache-key hashing for `cfdb extract --rev <url>@<sha>` (Option W,
# issue #96 / RFC-032 §A1.7). Pure-Rust, small footprint, zero system deps.
sha2 = "0.10"
# HIR extractor (cfdb-hir-extractor, v0.2+ — RFC-029 §A1.2 / Issue #84).
#
# All `ra-ap-*` entries use `=0.0.N` EXACT pins. This is load-bearing:
# - Cargo does not resolve across patches at build time (determinism).
# - Upgrades are a reviewed, single-purpose `chore/ra-ap-upgrade-<N>` PR
# per `docs/ra-ap-upgrade-protocol.md` (Issue #39).
#
# `ra-ap-rustc_type_ir` follows its own 2-3×/week cadence (separate from
# the `ra-ap-hir` 0.0.N bundle — rust-systems C1 / RFC-029 §A1.2 line
# 105) and is pinned independently. All other entries MUST move together
# in a single chore upgrade.
#
# Scope: consumed exclusively by `cfdb-hir-extractor` and downstream
# adapters. NEVER added as a direct or transitive dep of `cfdb-cli`
# (RFC-032 §3 lines 221–227 — the 90–150s cold compile cost must NOT
# land on every CLI build). The `cfdb-hir-petgraph-adapter` crate
# (slice 3 / #85) will isolate this containment.
ra_ap_hir = "=0.0.328"
ra_ap_hir_def = "=0.0.328"
ra_ap_hir_ty = "=0.0.328"
ra_ap_hir_expand = "=0.0.328"
ra_ap_base_db = "=0.0.328"
ra_ap_ide_db = "=0.0.328"
ra_ap_syntax = "=0.0.328"
ra_ap_vfs = "=0.0.328"
ra_ap_project_model = "=0.0.328"
ra_ap_proc_macro_api = "=0.0.328"
# Workspace loader (used by build_hir_database in #85c — produces a
# RootDatabase from a Cargo workspace root).
ra_ap_load-cargo = "=0.0.328"
# Edition enum — referenced by hir::Name::display + canonical qname
# derivation. Published separately at =0.0.N cadence alongside the
# bundle.
ra_ap_edition = "=0.0.328"
ra-ap-rustc_type_ir = "=0.161.0"