{"name":"@codemirror/lang-rust","version":"0.19.2","keywords":["editor","code"],"author":{"url":"http://marijnhaverbeke.nl","name":"Marijn Haverbeke","email":"marijnh@gmail.com"},"license":"MIT","_id":"@codemirror/lang-rust@0.19.2","maintainers":[{"name":"adrianheine","email":"mail@adrianheine.de"},{"name":"marijn","email":"marijnh@gmail.com"}],"homepage":"https://github.com/codemirror/lang-rust#readme","bugs":{"url":"https://github.com/codemirror/lang-rust/issues"},"dist":{"shasum":"39e32e1a817fafdd8eac23a8904785cf0fc9cc29","tarball":"http://registry-npm.ywwl.com/@codemirror/lang-rust/download/@codemirror/lang-rust-0.19.2.tgz","fileCount":8,"integrity":"sha512-SEXsO7Qf2gktRvVhHMc0Mq4HzPBpFcQlrlcinafy6VFXavWs+QAIB8UAuLG/igOc3PrIHbZFlyEhVUIGstox8w==","signatures":[{"sig":"MEYCIQCIHG7y8zG+ZIRsJlOPlRmLEUVSA44bdOMCvPGQY51CDAIhAMoxC585SacSXgZXrxkT9dAlmC+U4MDoLJzzQPtbDsc1","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13352,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiOHH0ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoDmxAAg+Soc4Qcy949b/ykcbcXZ1knQYNvmZQzhCFikYax6mqFmA/M\r\nzb3n8KB6TeBsEA48Dx0Nua5QF8RGPHO+0jZr9qkQK4QgUDVRKmvrvqXqXwQg\r\ny/EmS8UVGwDRz6vQTY7HrxzyEohh7r+5niGWB2aaogC2p6nat8cFUKjHLJxN\r\ncprjttp/HQfl15WR06uDze1QY5MpRTM/9MDRzZCkKO9kTedVA0KbY6LUXubS\r\nc1UcR8myAHjS1NMZFe+KAJhBa8wTe09wFIGqchNdG2Svd73XFvjF+KS+oZ05\r\np0wqcWTXeKLgo9V03A6XgjuTRgdALgxVbT7pbsmzLme+TXCo/BE0ztcTcsX2\r\nPqZ9bFvAdqZxsrXHt6TJi6U2nRsMLw2SDqHuWmJM9Q2tgDEKFBa1bZQCbNJz\r\nVM381tgEhTPvyJkxdVvyh5yOusYbqcsfdmSaS/A0eZmtEfRNcZ7ZHn5CO4b9\r\nFoLpbfcVw2p1E2tZj04Nv3m+0ttZPjSG1EyGkiu/dKRNQPgBm8WDXjcmJydb\r\nOqn/+7eZt5BqHt1q0/ZV8VsWNz3U2DEZgvRYZqifIxZ+Ks7JKip02BkiMTTp\r\nfT/yzfCFngrToUx28IHSoHlCGCkSY5CXvHwB+HdiasyLVmOdAZZ60W/4i76D\r\nUhoCY4DqrbcuXysEXmTSSEgFG5cpNOSLbPs=\r\n=9yrh\r\n-----END PGP SIGNATURE-----\r\n","size":3991,"noattachment":false,"key":"/@codemirror/lang-rust/-/@codemirror/lang-rust-0.19.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":"df09b5d8e233263968b172ff44b63cd7ee179dae","scripts":{"test":"cm-runtests","prepare":"cm-buildhelper src/rust.ts"},"_npmUser":{"name":"marijn","email":"marijnh@gmail.com"},"repository":{"url":"git+https://github.com/codemirror/lang-rust.git","type":"git"},"_npmVersion":"8.4.0","description":"Rust language support for the CodeMirror code editor","directories":{},"sideEffects":false,"_nodeVersion":"16.13.1","dependencies":{"@lezer/rust":"^0.15.0","@codemirror/language":"^0.19.0","@codemirror/highlight":"^0.19.7"},"_hasShrinkwrap":false,"devDependencies":{"@codemirror/buildhelper":"^0.1.0"},"_npmOperationalInternal":{"tmp":"tmp/lang-rust_0.19.2_1647866356321_0.868043387495282","host":"s3://npm-registry-packages"},"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":1647866356509,"_cnpm_publish_time":1647866356509,"dist-tags":{"latest":"6.0.2"}}