Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tree-sitter-rust

Package Overview
Dependencies
Maintainers
0
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tree-sitter-rust - npm Package Compare versions

Comparing version 0.23.0 to 0.23.1

prebuilds/linux-arm64/tree-sitter-rust.node

6

bindings/node/binding_test.js

@@ -1,9 +0,9 @@

/// <reference types="node" />
const assert = require("node:assert");
const { test } = require("node:test");
const Parser = require("tree-sitter");
test("can load grammar", () => {
const parser = new (require("tree-sitter"))();
const parser = new Parser();
assert.doesNotThrow(() => parser.setLanguage(require(".")));
});
const root = require("path").join(__dirname, "..", "..");
module.exports = require("node-gyp-build")(root);
module.exports =
typeof process.versions.bun === "string"
// Support `bun build --compile` by being statically analyzable enough to find the .node file at build-time
? require(`../../prebuilds/${process.platform}-${process.arch}/tree-sitter-rust.node`)
: require("node-gyp-build")(root);

@@ -5,0 +9,0 @@ try {

{
"name": "tree-sitter-rust",
"version": "0.23.0",
"version": "0.23.1",
"description": "Rust grammar for tree-sitter",
"repository": "github:tree-sitter/tree-sitter-rust",
"repository": "https://github.com/tree-sitter/tree-sitter-rust",
"license": "MIT",
"author": "Maxim Sokolov <maxim0xff@gmail.com>",
"author": {
"name": "Maxim Sokolov",
"email": "maxim0xff@gmail.com"
},
"contributors": [
"Max Brunsfeld <maxbrunsfeld@gmail.com>",
"Amaan Qureshi <amaanq12@gmail.com>"
{
"name": "Max Brunsfeld",
"email": "maxbrunsfeld@gmail.com"
},
{
"name": "Amaan Qureshi",
"email": "amaanq12@gmail.com"
}
],
"maintainers": [
"Amaan Qureshi <amaanq12@gmail.com>"
],
"main": "bindings/node",

@@ -25,2 +31,3 @@ "types": "bindings/node",

"grammar.js",
"tree-sitter.json",
"binding.gyp",

@@ -30,8 +37,15 @@ "prebuilds/**",

"queries/*",
"src/**"
"src/**",
"*.wasm"
],
"dependencies": {
"node-addon-api": "^8.1.0",
"node-addon-api": "^8.2.2",
"node-gyp-build": "^4.8.2"
},
"devDependencies": {
"eslint": "^9.14.0",
"eslint-config-treesitter": "^1.0.2",
"prebuildify": "^6.0.1",
"tree-sitter-cli": "^0.24.4"
},
"peerDependencies": {

@@ -45,8 +59,2 @@ "tree-sitter": "^0.21.1"

},
"devDependencies": {
"eslint": "^8.57.0",
"eslint-config-google": "^0.14.0",
"tree-sitter-cli": "^0.23.0",
"prebuildify": "^6.0.1"
},
"scripts": {

@@ -58,63 +66,3 @@ "install": "node-gyp-build",

"test": "node --test bindings/node/*_test.js"
},
"tree-sitter": [
{
"scope": "source.rust",
"injection-regex": "rust",
"file-types": [
"rs"
],
"highlights": [
"queries/highlights.scm"
],
"injections": [
"queries/injections.scm"
],
"tags": [
"queries/tags.scm"
]
}
],
"eslintConfig": {
"env": {
"commonjs": true,
"es2021": true
},
"extends": "google",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"rules": {
"arrow-parens": "off",
"camel-case": "off",
"indent": [
"error",
2,
{
"SwitchCase": 1
}
],
"max-len": [
"error",
{
"code": 160,
"ignoreComments": true,
"ignoreUrls": true,
"ignoreStrings": true
}
],
"spaced-comment": [
"warn",
"always",
{
"line": {
"markers": [
"/"
]
}
}
]
}
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc