{"_id":"@ast-grep/lang-rust","_rev":"6-86683f31602a3fa0e1988c2f64a61a4e","name":"@ast-grep/lang-rust","dist-tags":{"latest":"0.0.7"},"versions":{"0.0.2":{"name":"@ast-grep/lang-rust","version":"0.0.2","keywords":["ast-grep","ast-grep-lang"],"author":"","license":"ISC","_id":"@ast-grep/lang-rust@0.0.2","maintainers":[{"name":"herringtondarkholme","email":"nonamesheep@outlook.com"}],"dist":{"shasum":"106fcbc87c6387108e5d265bc3c52a2b0e214459","tarball":"https://registry.npmjs.org/@ast-grep/lang-rust/-/lang-rust-0.0.2.tgz","fileCount":17,"integrity":"sha512-J2mM52RxhRLiLmOh07iWpGel936UrIZXMnakyNnW5UAXZbFgroKOFQZkv6dkY9ddxai1hALPSUbgx0pDU4KfyA==","signatures":[{"sig":"MEUCIQCN1XYTLPSDkliC2aEb410yVP8FyIjuQ/37HPdhuUKGWwIgWZUnSSJI2MkYTsRimt4fLpf3Q3VcGj0q6cEH/Zt84h0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9837098},"main":"index.js","_from":"file:ast-grep-lang-rust-0.0.2.tgz","types":"./index.d.ts","scripts":{"test":"node nursery.js test","build":"tree-sitter build -o parser.so","source":"node nursery.js source","postinstall":"node postinstall.js"},"_npmUser":{"name":"herringtondarkholme","email":"nonamesheep@outlook.com"},"_resolved":"/tmp/59dd1d8d8ee45ac21d95a35b05297101/ast-grep-lang-rust-0.0.2.tgz","_integrity":"sha512-J2mM52RxhRLiLmOh07iWpGel936UrIZXMnakyNnW5UAXZbFgroKOFQZkv6dkY9ddxai1hALPSUbgx0pDU4KfyA==","_npmVersion":"10.8.2","description":"## Installation","directories":{},"_nodeVersion":"20.19.0","dependencies":{"@ast-grep/setup-lang":"0.0.3"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"tree-sitter-cli":"0.24.6","tree-sitter-rust":"0.23.2","@ast-grep/nursery":"0.0.2"},"peerDependencies":{"tree-sitter-cli":"0.24.6"},"peerDependenciesMeta":{"tree-sitter-cli":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/lang-rust_0.0.2_1743882538912_0.05802561230556136","host":"s3://npm-registry-packages-npm-production"}},"0.0.3":{"name":"@ast-grep/lang-rust","version":"0.0.3","keywords":["ast-grep","ast-grep-lang"],"author":"","license":"ISC","_id":"@ast-grep/lang-rust@0.0.3","maintainers":[{"name":"herringtondarkholme","email":"nonamesheep@outlook.com"}],"dist":{"shasum":"8b154e8b06321ff64023d0887dc26fd8f6f8434c","tarball":"https://registry.npmjs.org/@ast-grep/lang-rust/-/lang-rust-0.0.3.tgz","fileCount":17,"integrity":"sha512-KObhjEPKWy1/4waExuMzNFlpwYNK9cw6/7kmkxOlk0otO8QvRQDlk6A/aEXvLmFftrN8L1bIecEgZxNoEcn3MA==","signatures":[{"sig":"MEUCIFlZ1fVtFuqkGHJddrblab7nmPgsL5poSURBCwxsIQHYAiEAthY+v8pF0zjYCHqH7Q5veUjkmJ1+W3eh5wjY+6tlt4I=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9837098},"main":"index.js","_from":"file:ast-grep-lang-rust-0.0.3.tgz","types":"./index.d.ts","scripts":{"test":"node nursery.js test","build":"tree-sitter build -o parser.so","source":"node nursery.js source","postinstall":"node postinstall.js"},"_npmUser":{"name":"herringtondarkholme","email":"nonamesheep@outlook.com"},"_resolved":"/tmp/5f599e08b06fd862324598acd4bffdd3/ast-grep-lang-rust-0.0.3.tgz","_integrity":"sha512-KObhjEPKWy1/4waExuMzNFlpwYNK9cw6/7kmkxOlk0otO8QvRQDlk6A/aEXvLmFftrN8L1bIecEgZxNoEcn3MA==","_npmVersion":"10.8.2","description":"## Installation","directories":{},"_nodeVersion":"20.19.1","dependencies":{"@ast-grep/setup-lang":"0.0.3"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"tree-sitter-cli":"0.25.6","tree-sitter-rust":"0.23.2","@ast-grep/nursery":"0.0.5"},"peerDependencies":{"tree-sitter-cli":"0.25.6"},"peerDependenciesMeta":{"tree-sitter-cli":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/lang-rust_0.0.3_1749434066851_0.7639573418622627","host":"s3://npm-registry-packages-npm-production"}},"0.0.4":{"name":"@ast-grep/lang-rust","version":"0.0.4","keywords":["ast-grep","ast-grep-lang"],"author":"","license":"ISC","_id":"@ast-grep/lang-rust@0.0.4","maintainers":[{"name":"herringtondarkholme","email":"nonamesheep@outlook.com"}],"dist":{"shasum":"735d25f0c2d8370a570eb8ec4e0941f8b7e70731","tarball":"https://registry.npmjs.org/@ast-grep/lang-rust/-/lang-rust-0.0.4.tgz","fileCount":17,"integrity":"sha512-LUYigVWdyI8hyp8s5Yrm8LWQXzCHBpPoNv2ula45EY5bBRk0EQ+LXGZgxTZ22CKuWbmsnhhiJtF6cBwHRw6D/A==","signatures":[{"sig":"MEQCIESYOkWVoy1/vGhe7zB0c3PSTb12rEZrp0o/L8XI48V+AiAdCUJMqc4ele1ZmD01RzvwiKpYQ54G2GgSVQdTFx9zIg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9837037},"main":"index.js","_from":"file:ast-grep-lang-rust-0.0.4.tgz","types":"./index.d.ts","scripts":{"test":"node nursery.js test","build":"tree-sitter build -o parser.so","source":"node nursery.js source","postinstall":"node postinstall.js"},"_npmUser":{"name":"herringtondarkholme","email":"nonamesheep@outlook.com"},"_resolved":"/tmp/b8f00275105c4d08e6faec830a6ae51a/ast-grep-lang-rust-0.0.4.tgz","_integrity":"sha512-LUYigVWdyI8hyp8s5Yrm8LWQXzCHBpPoNv2ula45EY5bBRk0EQ+LXGZgxTZ22CKuWbmsnhhiJtF6cBwHRw6D/A==","_npmVersion":"10.8.2","description":"## Installation","directories":{},"_nodeVersion":"20.19.4","dependencies":{"@ast-grep/setup-lang":"0.0.4"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"tree-sitter-cli":"0.25.8","tree-sitter-rust":"0.23.2","@ast-grep/nursery":"0.0.7"},"peerDependencies":{"tree-sitter-cli":"0.25.8"},"peerDependenciesMeta":{"tree-sitter-cli":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/lang-rust_0.0.4_1755141458220_0.6854639047139255","host":"s3://npm-registry-packages-npm-production"}},"0.0.5":{"name":"@ast-grep/lang-rust","version":"0.0.5","keywords":["ast-grep","ast-grep-lang"],"author":"","license":"ISC","_id":"@ast-grep/lang-rust@0.0.5","maintainers":[{"name":"herringtondarkholme","email":"nonamesheep@outlook.com"}],"dist":{"shasum":"dc63a772f3cce41cab8f67b1875558168e505002","tarball":"https://registry.npmjs.org/@ast-grep/lang-rust/-/lang-rust-0.0.5.tgz","fileCount":17,"integrity":"sha512-CX1ALQR9F5Ct8vbUP284jW3wfmmBaCsvEx3hECCxqPk3mwUfQgEbgOFRZq61FpHL55U0INu6nOxJOqm87X5ARg==","signatures":[{"sig":"MEUCIAPMkrNQEuGsp6o3TXqSwZ9Dgm7PdxLQn+zEZhFPYGilAiEAmBOQZA2NoWdXuTNCnMW+3F8m/WcaC82dKpM3Hl3EAkU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9836989},"main":"index.js","_from":"file:ast-grep-lang-rust-0.0.5.tgz","types":"./index.d.ts","scripts":{"test":"node nursery.js test","build":"tree-sitter build -o parser.so","source":"node nursery.js source","postinstall":"node postinstall.js"},"_npmUser":{"name":"herringtondarkholme","email":"nonamesheep@outlook.com"},"_resolved":"/tmp/8f3d66a41e02bc7d491b2ebd9909a2d8/ast-grep-lang-rust-0.0.5.tgz","_integrity":"sha512-CX1ALQR9F5Ct8vbUP284jW3wfmmBaCsvEx3hECCxqPk3mwUfQgEbgOFRZq61FpHL55U0INu6nOxJOqm87X5ARg==","_npmVersion":"10.8.2","description":"## Installation","directories":{},"_nodeVersion":"20.19.6","dependencies":{"@ast-grep/setup-lang":"0.0.5"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"tree-sitter-cli":"0.25.8","tree-sitter-rust":"0.23.2","@ast-grep/nursery":"0.0.8"},"peerDependencies":{"tree-sitter-cli":"0.25.8"},"peerDependenciesMeta":{"tree-sitter-cli":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/lang-rust_0.0.5_1765433494765_0.15861410295080525","host":"s3://npm-registry-packages-npm-production"}},"0.0.6":{"name":"@ast-grep/lang-rust","version":"0.0.6","keywords":["ast-grep","ast-grep-lang"],"author":"","license":"ISC","_id":"@ast-grep/lang-rust@0.0.6","maintainers":[{"name":"herringtondarkholme","email":"nonamesheep@outlook.com"}],"dist":{"shasum":"64401ce96634069eec386e311c4130654b980e2c","tarball":"https://registry.npmjs.org/@ast-grep/lang-rust/-/lang-rust-0.0.6.tgz","fileCount":18,"integrity":"sha512-TZs8QD8SONj2mcoUVTANZF8t4uNlaKw9GE86reeHnczV3uWS44Z6pEAmwE9bJQnl430R6BTnerIitBlncAVqiw==","signatures":[{"sig":"MEQCIBWKAjmA+UkheBIPs5QaNcvO5fc51nZT+g8Cd4NpCJ+SAiAFSTMuD5ZXQ1jK7LwkUQKIbldUuQcqiktVRRoy2QFZTQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10905173},"main":"index.js","_from":"file:ast-grep-lang-rust-0.0.6.tgz","types":"./index.d.ts","scripts":{"test":"node nursery.js test","build":"tree-sitter build -o parser.so","source":"node nursery.js source","postinstall":"node postinstall.js"},"_npmUser":{"name":"herringtondarkholme","email":"nonamesheep@outlook.com"},"_resolved":"/tmp/95d65f25adaa10ece9bb174c8cf0a0e6/ast-grep-lang-rust-0.0.6.tgz","_integrity":"sha512-TZs8QD8SONj2mcoUVTANZF8t4uNlaKw9GE86reeHnczV3uWS44Z6pEAmwE9bJQnl430R6BTnerIitBlncAVqiw==","_npmVersion":"10.8.2","description":"## Installation","directories":{},"_nodeVersion":"20.19.6","dependencies":{"@ast-grep/setup-lang":"0.0.6"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"tree-sitter-cli":"0.25.8","tree-sitter-rust":"0.23.2","@ast-grep/nursery":"0.0.9"},"peerDependencies":{"tree-sitter-cli":"0.25.8"},"peerDependenciesMeta":{"tree-sitter-cli":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/lang-rust_0.0.6_1768081604874_0.8814526688609641","host":"s3://npm-registry-packages-npm-production"}},"0.0.7":{"name":"@ast-grep/lang-rust","version":"0.0.7","description":"## Installation","main":"index.js","keywords":["ast-grep","ast-grep-lang"],"author":"","license":"ISC","dependencies":{"@ast-grep/setup-lang":"0.0.6"},"peerDependencies":{"tree-sitter-cli":"0.25.8"},"peerDependenciesMeta":{"tree-sitter-cli":{"optional":true}},"devDependencies":{"@ast-grep/nursery":"0.0.9","tree-sitter-cli":"0.25.8","tree-sitter-rust":"0.23.2"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"scripts":{"build":"tree-sitter build -o parser.so","source":"node nursery.js source","postinstall":"node postinstall.js","test":"node nursery.js test"},"_id":"@ast-grep/lang-rust@0.0.7","types":"./index.d.ts","_integrity":"sha512-CF6jv8XmlVQgr/pFKADM87EkoGiHIrHKsG1wcX2iqgdBX5kW8wH+Zd4GP6SMme2eZogD49f19vRoRTF44iZqzg==","_resolved":"/tmp/e2409fcb276dc9b46924cc802a6c0a91/ast-grep-lang-rust-0.0.7.tgz","_from":"file:ast-grep-lang-rust-0.0.7.tgz","_nodeVersion":"20.20.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-CF6jv8XmlVQgr/pFKADM87EkoGiHIrHKsG1wcX2iqgdBX5kW8wH+Zd4GP6SMme2eZogD49f19vRoRTF44iZqzg==","shasum":"a7056372911760b51ce734250910b6efe38987ee","tarball":"https://registry.npmjs.org/@ast-grep/lang-rust/-/lang-rust-0.0.7.tgz","fileCount":19,"unpackedSize":11972814,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIEIYR1iXNJ775FJE0ThflxmU6NghOSUwVfronICB+jY9AiEA3XALHUeAGIL1aElWGO3kJGA1JGMfrhnpXCDEGdohVy0="}]},"_npmUser":{"name":"herringtondarkholme","email":"nonamesheep@outlook.com"},"directories":{},"maintainers":[{"name":"herringtondarkholme","email":"nonamesheep@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/lang-rust_0.0.7_1773542781819_0.40271081091670924"},"_hasShrinkwrap":false}},"time":{"created":"2025-04-05T19:48:58.794Z","modified":"2026-03-15T02:46:22.182Z","0.0.2":"2025-04-05T19:48:59.188Z","0.0.3":"2025-06-09T01:54:27.098Z","0.0.4":"2025-08-14T03:17:38.452Z","0.0.5":"2025-12-11T06:11:34.975Z","0.0.6":"2026-01-10T21:46:45.117Z","0.0.7":"2026-03-15T02:46:22.073Z"},"license":"ISC","keywords":["ast-grep","ast-grep-lang"],"description":"## Installation","maintainers":[{"name":"herringtondarkholme","email":"nonamesheep@outlook.com"}],"readme":"# ast-grep napi language for rust\n\n## Installation\n\nIn a pnpm project, run:\n\n```bash\npnpm install @ast-grep/lang-rust\npnpm install @ast-grep/napi\n# install the tree-sitter-cli if no prebuild is available\npnpm install tree-sitter-cli --save-dev\n```\n\n## Usage\n\n```js\nimport rust from '@ast-grep/lang-rust'\nimport { registerDynamicLanguage, parse } from '@ast-grep/napi'\n\nregisterDynamicLanguage({ rust })\n\nconst sg = parse('rust', `your code`)\nsg.root().kind()\n```\n","readmeFilename":"README.md"}