Add Node Rust native extension detectors - #121
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Adds new Node “native_extension” tool definitions for Rust-based addons (napi-rs and Neon) to the knowledge base, along with test fixtures and detector tests to ensure these projects are classified with high confidence.
Changes:
- Added KB definitions for
napi-rsandNeon(detection signals + suggested commands + taxonomy). - Added
testdata/fixtures for representative Neon and napi-rs projects. - Extended detector tests to validate positive signals and a “near miss” scenario.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| testdata/neon-project/src/lib.rs | Adds minimal Rust source fixture for Neon project detection. |
| testdata/neon-project/package.json | Adds Neon fixture package.json including @neon-rs/cli and build scripts. |
| testdata/neon-project/Cargo.toml | Adds Neon fixture Cargo.toml with cdylib + neon dependency. |
| testdata/napi-rs-project/src/lib.rs | Adds minimal Rust source fixture for napi-rs project detection. |
| testdata/napi-rs-project/package.json | Adds napi-rs fixture package.json including @napi-rs/cli and build script. |
| testdata/napi-rs-project/Cargo.toml | Adds napi-rs fixture Cargo.toml with cdylib + napi crates/build dependency. |
| knowledge/node/neon.toml | Introduces Neon detector definition and metadata under native_extension. |
| knowledge/node/napi-rs.toml | Introduces napi-rs detector definition and metadata under native_extension. |
| detect/detect_test.go | Adds tests validating both project fixtures and individual detection signals/near-misses. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
andrew
force-pushed
the
add-node-rust-detectors
branch
from
July 31, 2026 15:53
456cc28 to
16d95f8
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds napi-rs and Neon native-extension definitions for Node projects. Detection covers their scoped npm CLI packages,
Cargo.tomlconfiguration, and napi-rs build scripts, with fixtures for positive signals and near misses.