Cargo.toml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. [package]
  2. name = "codegraph-kernel"
  3. version = "0.1.0"
  4. edition = "2021"
  5. license = "MIT"
  6. publish = false
  7. description = "Native extraction kernel for CodeGraph — tree-sitter parse+extract with one JS boundary crossing per file"
  8. [lib]
  9. crate-type = ["cdylib"]
  10. [dependencies]
  11. napi = { version = "3", default-features = false, features = ["napi8"] }
  12. napi-derive = "3"
  13. tree-sitter = "0.25"
  14. sha2 = "0.10"
  15. regex = "1"
  16. # Grammars — MUST stay revision-matched with the wasm grammars the fallback
  17. # path loads (tree-sitter-wasms npm package / src/extraction/wasm/). The
  18. # kernel-grammar-parity test asserts node-kind-table equality at test time;
  19. # bump these together with the wasm side or that gate fails.
  20. tree-sitter-typescript = "0.23"
  21. tree-sitter-javascript = "0.25"
  22. tree-sitter-java = "0.23"
  23. tree-sitter-python = "0.23"
  24. tree-sitter-go = "0.23"
  25. # Pinned exact: the vendored wasm (src/extraction/wasm/) was built from these
  26. # tags' checked-in parser.c, sha-matched against these registry tarballs
  27. # (R7a prep, #1345). A patch bump here without re-vendoring breaks the match.
  28. tree-sitter-c = "=0.24.2"
  29. tree-sitter-cpp = "=0.23.4"
  30. tree-sitter-rust = "=0.24.2"
  31. [build-dependencies]
  32. napi-build = "2"
  33. [profile.release]
  34. lto = true
  35. codegen-units = 1
  36. strip = "symbols"