bca-tree-sitter-mozcpp 2.1.0

Mozcpp grammar for the tree-sitter parsing library (big-code-analysis fork)
Documentation
# Standalone workspace root. The root manifest `exclude`s this crate, but
# `exclude` denies membership without terminating cargo's upward search for a
# workspace root. Inside a git worktree under `.claude/worktrees/` that search
# escapes the worktree and lands on the main checkout's manifest, where this
# path is neither a member nor excluded — breaking `cargo fmt --all` and every
# `make pre-commit` stage that depends on it (#1145).
#
# Kept at the top of the file rather than the bottom: an empty table as the
# last thing in a manifest silently adopts any bare key appended after it, so
# a future `foo = "1"` meant for `[package]` would become `[workspace].foo`.
[workspace]

[package]
name = "bca-tree-sitter-mozcpp"
description = "Mozcpp grammar for the tree-sitter parsing library (big-code-analysis fork)"
version = "2.1.0"
authors = [
  "Calixte Denizet <cdenizet@mozilla.com>",
  "Elijah Zupancic <elijah@zupancic.name>",
]
license = "MIT"
readme = "bindings/rust/README.md"
keywords = ["incremental", "parsing", "mozcpp"]
categories = ["parsing", "text-editors"]
repository = "https://github.com/dekobon/big-code-analysis"
# Upstream lineage this fork is derived from; preserved so the
# crates.io landing page links back to the Mozilla original.
homepage = "https://github.com/mozilla/rust-code-analysis"
edition = "2021"

build = "bindings/rust/build.rs"
include = [
  "bindings/rust/*",
  "grammar.js",
  "src/*",
  "LICENSE",
]

[lib]
name = "tree_sitter_mozcpp"
path = "bindings/rust/lib.rs"

[dependencies]
# `tree-sitter-language` is deliberately NOT `=`-pinned. It is the
# ecosystem's shared `LanguageFn` trait shim, not a grammar, so
# AGENTS.md's grammar-pinning rule does not reach it — and pinning it
# is actively harmful twice over. Locally, `tree-sitter-irules 0.1.1`
# requires `^0.1.7`, and cargo unifies 0.1.x deps, so `=0.1.0` makes
# the workspace unresolvable. Downstream, this crate is published: an
# `=` pin on a shim every grammar depends on would break resolution
# for any consumer pairing it with a grammar wanting a newer 0.1.x.
# Measured on #1151; the issue's table listed this row in error.
tree-sitter-language="0.1.0"

[build-dependencies]
cc = "^1.2"
# This dependency is not used at all for this crate, but it is here so that
# dependabot can send notifications when there are updates for this grammar.
#
# IMPORTANT: bumping this version is a NOTIFICATION HOOK ONLY — it does NOT
# regenerate the bundled `src/parser.c` / `src/scanner.c`. Any version bump
# MUST be accompanied by re-running `./generate-grammars/generate-mozcpp.sh`
# and committing the regenerated sources in the same PR. See #400 for the
# audit trail on the related tree-sitter-mozjs marker.
tree-sitter-cpp = "=0.23.4"

[package.metadata.cargo-udeps.ignore]
build = ["tree-sitter-cpp"]

[dev-dependencies]
tree-sitter = "=0.26.11"