-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
53 lines (50 loc) · 2.61 KB
/
Copy pathCargo.toml
File metadata and controls
53 lines (50 loc) · 2.61 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
# Cargo workspace for the Rust rewrite of @pleaseai/csp (see ADR-0003).
#
# Phase 0 scaffold. The TypeScript implementation under `src/` remains the
# source of truth until the Rust line reaches behavioral parity, at which point
# it is retired and this becomes the primary tree.
[workspace]
resolver = "2"
members = ["crates/csp", "crates/csp-node"]
[workspace.package]
version = "0.1.9" # x-release-please-version
edition = "2021"
license = "MIT"
repository = "https://github.com/pleaseai/code-search"
authors = ["csp maintainers"]
# Planned dependency menu (ADR-0003 crate mapping). Member crates opt in
# phase by phase with `<dep>.workspace = true`; listing here does not fetch.
[workspace.dependencies]
# Published as `code-search-please`; the `csp` key keeps `use csp::...` working
# in member crates (the lib name stays `csp` via crates/csp `[lib]`).
# `default-features = false` drops the CLI stack (clap/tokio/rmcp) — csp-node
# only wants the library. The `csp` binary lives inside code-search-please
# itself (behind the default-on `cli` feature), so it doesn't consume this key.
csp = { path = "crates/csp", package = "code-search-please", default-features = false }
model2vec-rs = "0.2" # Phase 3 — dense embeddings (official MinishLab port)
tree-sitter = "0.26" # Phase 2 — AST chunking
ignore = "0.4" # Phase 3 — .gitignore / .cspignore file walking
rmcp = { version = "1.7", features = ["server", "macros", "transport-io"] } # Phase 6 — MCP server
tokio = { version = "1", features = ["macros", "rt-multi-thread", "io-std"] } # Phase 6 — async runtime for rmcp
schemars = "1.0" # Phase 6 — MCP tool parameter JSON schemas
clap = { version = "4", features = ["derive"] } # Phase 5 — CLI
serde = { version = "1", features = ["derive"] }
serde_json = "1"
anyhow = "1"
thiserror = "2"
regex = "1" # Phase 1 — ranking/penalty patterns (no lookarounds)
fancy-regex = "0.16" # Phase 1 — boosting definition patterns (lookbehind/lookahead)
indexmap = "2" # Phase 1 — insertion-ordered score maps (Map<Chunk,number> parity)
sha2 = "0.10" # Phase 3 — content-hash cache keys (sha256, parity with node:crypto)
tempfile = "3" # Phase 3/4 — temp dirs (git clone checkout) + tests
# napi-rs native SDK (separate distribution channel — the @pleaseai/csp-sdk npm
# package; the CLI/MCP launcher under npm/ stays a standalone-binary shim). Only
# crates/csp-node opts in; the core/CLI crates do not depend on napi.
napi = "2"
napi-derive = "2"
napi-build = "2"
# Single-binary release profile (ADR-0003 motivation #1).
[profile.release]
lto = true
codegen-units = 1
strip = true