{"name":"@codemirror/lang-rust","version":"0.20.0","keywords":["editor","code"],"author":{"url":"http://marijnhaverbeke.nl","name":"Marijn Haverbeke","email":"marijnh@gmail.com"},"license":"MIT","_id":"@codemirror/lang-rust@0.20.0","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":"98b637b5518efb901ca63d5a461d74add5820659","tarball":"http://registry-npm.ywwl.com/@codemirror/lang-rust/download/@codemirror/lang-rust-0.20.0.tgz","fileCount":8,"integrity":"sha512-H49ONe7TQSD6n9X7je56wEmsE5rPC7vgDxxAoWUEQGQWzIlrQD2gRrfqe4y+dbD/yGVhjWla7UyuyUPQVpGJyg==","signatures":[{"sig":"MEUCIDbugFBsfuUVEwLsQPnsurpt1+lO6zyHb9xNArN0oA/9AiEAyHYaF9Od631J5+/DlerX9sQ6kh8xprwGOu8uHXfmBMI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7932,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiYBW7ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqmMQ//TuNSNjVR/m1mSLakZjyiQ3nmmnHGt0P8Qna0VHFf4b/V2uZX\r\n++R4xfnrNhVh8bNdRzlEdf+l7c2ns9e/MJNVaTNAaUe32ScsoIq7QLYbNUKo\r\nQ8jXATfinMr7zQ1yziVGU/kxgy3mahVWHffOdjXeI1tG9OpSa+W/3N5m9sGA\r\nT6Il9b4xj7sE6Ttm9o8lTaxjo3f3yo3D2AJITf2eQHwSaCXitp1I0g2HmCUc\r\n2uGVc8s/qOx6Y9GtvBWfH4+KRMPkczr26ZZ8mskpJh5tDGZ0vm3z+yfbYpA6\r\nQZD4PFpxr1qUNThk+0YymfhuMJR32dLvr1ua+JzeWHJgEEppznf02jHi3RkS\r\noUMdwk+v9EMGEgn7BvbpVbv8Fu19+agTP+K3pUbPiD7MNcjpct+DdiwJN2ss\r\n2fLjFhpJS6kCKPwyXfZM5QfvodgoWAqyPKKtNv/dHx7dVSr/gWuIsrGUUc8j\r\n383m+2dy9GYCgtvT4WdpFyhwsW8MFDNm+F6x+9kspnwoutdh6qEPrePHFl/1\r\nhBTJK7utwqH2hE4espHSNy9pM/AQEgS9Cs1GSg1496l4PGP1XJG6qdraIZgd\r\n5hWyRm4uN91+7uB9Q2/qksqUaoQVJpnZOJeOSP0QTIP2NtsMqUvU4a9rN2C7\r\nOkAHZLgb4EWPtm1LoEYEaM4/C2PNCyRbQJY=\r\n=Re93\r\n-----END PGP SIGNATURE-----\r\n","size":3144,"noattachment":false,"key":"/@codemirror/lang-rust/-/@codemirror/lang-rust-0.20.0.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":"05e13f93122622989b1f89c9a23034b831a454da","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.16.0","@codemirror/language":"^0.20.0"},"_hasShrinkwrap":false,"devDependencies":{"@codemirror/buildhelper":"^0.1.0"},"_npmOperationalInternal":{"tmp":"tmp/lang-rust_0.20.0_1650464187408_0.5680714778880402","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":1650464187562,"_cnpm_publish_time":1650464187562,"dist-tags":{"latest":"6.0.2"}}