-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathCargo.toml
More file actions
131 lines (120 loc) · 3.98 KB
/
Copy pathCargo.toml
File metadata and controls
131 lines (120 loc) · 3.98 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
130
131
[workspace]
resolver = "3"
members = [".", "crates/benchmarks", "crates/test-support", "crates/test-suite", "xtask"]
default-members = [".", "crates/test-support", "crates/test-suite", "xtask"]
exclude = ["benchmarks/kotlin-grammar-040", "benchmarks/swift-grammar-073"]
[workspace.lints.rust]
unsafe_code = "forbid"
[workspace.lints.clippy]
all = "warn"
cognitive_complexity = "warn"
todo = "warn"
[package]
name = "leantoken"
version = "0.1.26"
edition = "2024"
rust-version = "1.95"
autotests = false
autoexamples = false
description = "Token-budgeted repository context for coding agents"
license = "MIT OR Apache-2.0"
repository = "https://github.com/morluto/leantoken"
homepage = "https://github.com/morluto/leantoken"
readme = "README.md"
include = [
"/src",
"/tests",
"/assets/leantoken-hero-v3.jpg",
"/Cargo.lock",
"/README.md",
"/CHANGELOG.md",
"/LICENSE-APACHE",
"/LICENSE-MIT",
"/docs/architecture.md",
"/docs/i18n",
"/docs/roadmap.md",
"/docs/usage.md",
"/benchmarks/reports/codex-host-receipt-0.144.1.json",
"/benchmarks/reports/model-ab-trajectory-v1.json",
"/benchmarks/reports/multi-agent-context-suite-v1-codex-0.144.1.json",
"/benchmarks/reports/multi-agent-context-suite-v2-codex-0.144.1.json",
"/benchmarks/reports/wire-trace-synthetic-v2.json",
]
[lints]
workspace = true
[[test]]
name = "integration"
path = "tests/integration.rs"
[dependencies]
base64 = "0.22.1"
blake3 = "1.8.2"
cap-std = "4.0.2"
cap-primitives = "4.0.2"
clap = { version = "4.5.51", features = ["derive"] }
command-group = "5.0.1"
directories = "6.0.0"
dialoguer = { version = "0.12.0", default-features = false }
globset = "0.4.18"
ignore = "0.4.28"
inquire = { version = "0.9.4", default-features = false, features = ["crossterm"] }
jmespath = "0.5.0"
jsonc-parser = { version = "0.32.4", features = ["cst", "serde"] }
notify = "8.2.0"
nucleo-matcher = "0.3.1"
pulldown-cmark = { version = "0.13.4", default-features = false }
rayon = "1.11.0"
r2d2 = "0.8.10"
r2d2_sqlite = { version = "0.35.0", default-features = false }
regex = "1.12.2"
regex-syntax = "0.8.11"
rmcp = { version = "=3.1.2", default-features = false, features = ["server", "macros", "schemars", "transport-io"] }
rusqlite = { version = "0.40.1", default-features = false, features = ["bundled", "cache"] }
rusqlite_migration = "2.6.0"
schemars = "1.2.1"
semver = "1.0.27"
serde = { version = "1.0.228", features = ["derive"] }
serde_json = "1.0.145"
similar = "2.7.0"
thiserror = "2.0.17"
tiktoken-rs = "0.12.0"
tempfile = "3.23.0"
toml_edit = "0.25.12"
tokio = { version = "1.49.0", features = ["fs", "macros", "rt-multi-thread", "signal", "sync", "time"] }
tokio-util = { version = "0.7.17", features = ["codec", "rt"] }
tracing = "0.1.41"
tracing-subscriber = { version = "0.3.20", features = ["env-filter", "fmt", "registry"] }
tree-sitter = "0.26.11"
tree-sitter-c = "0.24.2"
tree-sitter-c-sharp = "0.23.5"
tree-sitter-cpp = "0.23.4"
tree-sitter-css = "0.25.0"
tree-sitter-go = "0.25.0"
tree-sitter-html = "0.23.2"
tree-sitter-java = "0.23.5"
tree-sitter-javascript = "0.25.0"
tree-sitter-php = "0.24.2"
tree-sitter-python = "0.25.0"
tree-sitter-ruby = "0.23.1"
tree-sitter-rust = "0.24.2"
tree-sitter-typescript = "0.23.2"
wait-timeout = "0.2.1"
[dev-dependencies]
assert_cmd = "2.1.1"
insta = { version = "1.43.2", features = ["json"] }
rmcp = { version = "=3.1.2", default-features = false, features = ["client", "transport-async-rw"] }
tokio = { version = "1.49.0", features = ["test-util"] }
[profile.release]
lto = "thin"
strip = true
[profile.dev]
# Preserve line-level backtraces without generating the full DWARF payload for
# this dependency-heavy crate. This also applies to the test profile, which
# inherits from `dev`, and materially reduces local link time and target size.
debug = "line-tables-only"
[profile.dev.package."*"]
# Dependency frames rarely need source-level debugging during LeanToken work.
debug = false
# The profile that 'dist' will build with
[profile.dist]
inherits = "release"
lto = "thin"