{"name":"@codemirror/lang-rust","version":"6.0.0","keywords":["editor","code"],"author":{"url":"http://marijnhaverbeke.nl","name":"Marijn Haverbeke","email":"marijnh@gmail.com"},"license":"MIT","_id":"@codemirror/lang-rust@6.0.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":"b18bd3441bba9182725c08f77d666e0d8d9d58b4","tarball":"http://registry-npm.ywwl.com/@codemirror/lang-rust/download/@codemirror/lang-rust-6.0.0.tgz","fileCount":8,"integrity":"sha512-VQql3Qk1BwoXb3SUkeWll/EEwhsgQWc1bpia7CFqqp2PhQBb5A6r4Vj2JCkU/nE6A7TDPSGHTOoqJSG5s/VXtQ==","signatures":[{"sig":"MEUCIQC1JXxZryficKjkkYDalrwOLBhumqH1k0iYiO877kMiMwIgB0469xYc46KYK2cOqTJBOmGivJrS9zG0/r2D/uYY2/4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8004,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJioEt4ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq25w//QbYDg03W+oc0kjHieFhZmA+BEdHErbJRw99HrKCiIvLAy/f4\r\nkN7Dq27yf0ElOmakA08KVDsHRuWbWaZaXl1OzjP8TaTcqIyoc7HV81/IjZir\r\nsg7nwYctdZLLb9DvDM0YIs9FMO9SvMr1OBabCT6sATwtmr+RVk+AqxCc1jpL\r\nw8TIUrx2GUQYfqYFuXetGB2sGCMyWO/JLBOdaLVMtqclHVqFGk65gxp5V02f\r\nN1luyOzjc0Hskl6iOQpJCeb9A2PLshVSAj+6tuQIpyPqUVLVOJlmiogMV4Dz\r\nAQzTuHSVehUBO9BlkKjf5PffAMfH3AHzw9sd353MnqNY1C685+VK8J/fzg46\r\nh6or+zpg+6f212np1e8K8CSXcortstbXUkC9sDOOdBLIA89v02Ib8HFYC39y\r\nAPK3spDo++RKwsBaJwXLOC6mZ7ILjieLKRhKhkv6OPtFPEDiIrZEsIFyLqmG\r\nSfBgQ5Yip15ms3I5pVHwfRHkoP1ZYqpNBYOjHYximtOkJxrMbrvUHFnoInGd\r\nZX/CattKbwvNnynJO+dWj3bcYK/NroH8T2A23TjTR6EIBTNN5Kw1bf+0xHDe\r\nESU+VPvRaGhmwrVEV5b5DFRBQVoL362hu+GHx65RzTkjfTZAS7vjNCR/+s43\r\nYWBhSnOvB/flbqJqinRlgGDR4DLnh64jyjk=\r\n=6vkm\r\n-----END PGP SIGNATURE-----\r\n","size":3159,"noattachment":false,"key":"/@codemirror/lang-rust/-/@codemirror/lang-rust-6.0.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":"e5b15528a1dfdadd056de9db582fb4ab89c4b6f0","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.10.0","description":"Rust language support for the CodeMirror code editor","directories":{},"sideEffects":false,"_nodeVersion":"16.13.1","dependencies":{"@lezer/rust":"^1.0.0","@codemirror/language":"^6.0.0"},"_hasShrinkwrap":false,"devDependencies":{"@codemirror/buildhelper":"^0.1.0"},"_npmOperationalInternal":{"tmp":"tmp/lang-rust_6.0.0_1654672248609_0.4179685638599837","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":1654672248836,"_cnpm_publish_time":1654672248836,"dist-tags":{"latest":"6.0.2"}}