{"name":"@codemirror/lang-rust","version":"6.0.2","keywords":["editor","code"],"author":{"url":"http://marijnhaverbeke.nl","name":"Marijn Haverbeke","email":"marijn@haverbeke.berlin"},"license":"MIT","_id":"@codemirror/lang-rust@6.0.2","maintainers":[{"name":"adrianheine","email":"mail@adrianheine.de"},{"name":"marijn","email":"marijn@haverbeke.berlin"}],"homepage":"https://github.com/codemirror/lang-rust#readme","bugs":{"url":"https://github.com/codemirror/lang-rust/issues"},"dist":{"shasum":"69146e6b3e8f961ef149059aecb9e07bfd7bf3bd","tarball":"http://registry-npm.ywwl.com/@codemirror/lang-rust/download/@codemirror/lang-rust-6.0.2.tgz","fileCount":9,"integrity":"sha512-EZaGjCUegtiU7kSMvOfEZpaCReowEf3yNidYu7+vfuGTm9ow4mthAparY5hisJqOHmJowVH3Upu+eJlUji6qqA==","signatures":[{"sig":"MEUCIEPo+NbUsTOudY0jRn3Vn/LGzohtld22Xke2qsZOoyQsAiEA8HtzC+6mRYkpHZjjLQMGcD/JL19dgdBxFRVKMFtz6KY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8860,"size":3379,"noattachment":false,"key":"/@codemirror/lang-rust/-/@codemirror/lang-rust-6.0.2.tgz"},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{"import":"./dist/index.js","require":"./dist/index.cjs"},"gitHead":"b78f62a7f3457c876f823460dc1123130a96ffa0","scripts":{"test":"cm-runtests","prepare":"cm-buildhelper src/rust.ts"},"_npmUser":{"name":"marijn","actor":{"name":"marijn","type":"user","email":"marijn@haverbeke.berlin"},"email":"marijn@haverbeke.berlin"},"repository":{"url":"git+https://github.com/codemirror/lang-rust.git","type":"git"},"_npmVersion":"11.3.0","description":"Rust language support for the CodeMirror code editor","directories":{},"sideEffects":false,"_nodeVersion":"22.14.0","dependencies":{"@lezer/rust":"^1.0.0","@codemirror/language":"^6.0.0"},"_hasShrinkwrap":false,"devDependencies":{"@codemirror/buildhelper":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/lang-rust_6.0.2_1750334256479_0.821583742149919","host":"s3://npm-registry-packages-npm-production"},"readme":"<!-- NOTE: README.md is generated from src/README.md -->\n\n# @codemirror/lang-rust [![NPM version](https://img.shields.io/npm/v/@codemirror/lang-rust.svg)](https://www.npmjs.org/package/@codemirror/lang-rust)\n\n[ [**WEBSITE**](https://codemirror.net/) | [**ISSUES**](https://github.com/codemirror/dev/issues) | [**FORUM**](https://discuss.codemirror.net/c/next/) | [**CHANGELOG**](https://github.com/codemirror/lang-rust/blob/main/CHANGELOG.md) ]\n\nThis package implements Rust language support for the\n[CodeMirror](https://codemirror.net/) code editor.\n\nThe [project page](https://codemirror.net/) has more information, a\nnumber of [examples](https://codemirror.net/examples/) and the\n[documentation](https://codemirror.net/docs/).\n\nThis code is released under an\n[MIT license](https://github.com/codemirror/lang-rust/tree/main/LICENSE).\n\nWe aim to be an inclusive, welcoming community. To make that explicit,\nwe have a [code of\nconduct](http://contributor-covenant.org/version/1/1/0/) that applies\nto communication around the project.\n\n## Usage\n\n```javascript\nimport {EditorView, basicSetup} from \"codemirror\"\nimport {rust} from \"@codemirror/lang-rust\"\n\nconst view = new EditorView({\n  parent: document.body,\n  doc: `println!(\"Hello World!\");`,\n  extensions: [basicSetup, rust()]\n})\n```\n\n## API Reference\n\n<dl>\n<dt id=\"user-content-rust\">\n  <code><strong><a href=\"#user-content-rust\">rust</a></strong>() → <a href=\"https://codemirror.net/docs/ref#language.LanguageSupport\">LanguageSupport</a></code></dt>\n\n<dd><p>Rust language support</p>\n</dd>\n<dt id=\"user-content-rustlanguage\">\n  <code><strong><a href=\"#user-content-rustlanguage\">rustLanguage</a></strong>: <a href=\"https://codemirror.net/docs/ref#language.LRLanguage\">LRLanguage</a></code></dt>\n\n<dd><p>A syntax provider based on the <a href=\"https://github.com/lezer-parser/rust\">Lezer Rust\nparser</a>, extended with\nhighlighting and indentation information.</p>\n</dd>\n</dl>\n","publish_time":1750334256686,"_cnpm_publish_time":1750334256686,"dist-tags":{"latest":"6.0.2"}}