Skip to content

Commit 857617c

Browse files
committed
feat: enable all language grammars by default
Set `default = ["all-languages"]` so Java, C, C++, Ruby, and C# are included out of the box. Users can opt out with `--no-default-features` for a smaller binary.
1 parent eb03acc commit 857617c

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

CLAUDE.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ lowercase_subject = true
9797

9898
## Supported Languages (tree-sitter)
9999

100-
Built-in: Rust, TypeScript, JavaScript, Python, Go
100+
Rust, TypeScript, JavaScript, Python, Go, Java, C, C++, Ruby, C#
101101

102-
Feature-gated (optional): Java (`lang-java`), C (`lang-c`), C++ (`lang-cpp`), Ruby (`lang-ruby`), C# (`lang-csharp`). Enable with `--features lang-java` or `--features all-languages`.
102+
All 10 languages enabled by default. To build with only the core 5, use `--no-default-features`. Individual languages can be toggled via feature flags: `lang-java`, `lang-c`, `lang-cpp`, `lang-ruby`, `lang-csharp`.
103103

104104
## File Structure
105105

@@ -184,7 +184,7 @@ src/
184184
### Running Tests
185185

186186
```bash
187-
cargo test # All tests (280 tests)
187+
cargo test # All tests (295 tests)
188188
cargo test --test sanitizer # CommitSanitizer tests
189189
cargo test --test safety # Safety module tests
190190
cargo test --test context # ContextBuilder tests
@@ -294,4 +294,4 @@ Common mistake: calling a new safeguard/check `fix` — if there was no bug, it'
294294

295295
### Documentation Sync
296296

297-
Keep README.md test count in sync (currently 280).
297+
Keep README.md test count in sync (currently 295).

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ tree-sitter-python = "0.25"
6363
tree-sitter-go = "0.25"
6464
tree-sitter-javascript = "0.25"
6565

66-
# Optional language grammars (feature-gated)
66+
# Additional language grammars (optional, enabled by default)
6767
tree-sitter-java = { version = "0.23", optional = true }
6868
tree-sitter-c = { version = "0.23", optional = true }
6969
tree-sitter-cpp = { version = "0.23", optional = true }
@@ -90,7 +90,7 @@ keyring = { version = "3", optional = true }
9090
regex = "1.12"
9191

9292
[features]
93-
default = []
93+
default = ["lang-java", "lang-c", "lang-cpp", "lang-ruby", "lang-csharp"]
9494
secure-storage = ["keyring"]
9595
eval = []
9696
lang-java = ["tree-sitter-java"]

0 commit comments

Comments
 (0)