{"name":"@codemirror/lang-rust","version":"0.19.0","keywords":["editor","code"],"author":{"url":"http://marijnhaverbeke.nl","name":"Marijn Haverbeke","email":"marijnh@gmail.com"},"license":"MIT","_id":"@codemirror/lang-rust@0.19.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":"94dfd357ab93bb9cdfc87cd8091a24e75cf999da","tarball":"http://registry-npm.ywwl.com/@codemirror/lang-rust/download/@codemirror/lang-rust-0.19.0.tgz","fileCount":8,"integrity":"sha512-Zq5sc7W7ww6nr4eVv/1ioYw7aIsD5Cwv8MmxvmR72ZQIqeIVN+v4FQIzC1D7xKSAFfYybRodd9XxRA8tsudFGA==","signatures":[{"sig":"MEYCIQCjzwhxIbD3qMapQ3bLCOcn/b0ShliRgRJQU48IqwUslgIhAIf4WIEN3p1Fd3CXgD0hal0SJHT2dikFBXRnCQ7oWLpS","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12446,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhE8PwCRA9TVsSAnZWagAAjVMP/iCq9s8I6yUEtVmMb1fD\nlx3vFR00jK59/V4WZfaZDBsE9so6dgEAZFRhytoIn0CAMhh54GsgJktOS4XN\nNm601oxVsLxYrrdRnKD6RIDnKaNfuN0oHL2JTnw2Y3CCnTEjg+QSZAhLHjgs\n6LF/PEFyHItvM2X5rUa6rEvcAcNaYDrKebLL6VXr6BuYXtl0sKr1boNhg92h\nau8J1gYzj5beFoH/5cnc8+ZgXD3wNkPtHQuQKh0pU/6F9+p8QwEZQkP0EiP9\nFfI2gugnDTq9cU238hIPsaxvJvL+WFHpxNhSW8nx+uLZtksCZ5LpUsLXh4//\nqGvpf8sSgIRvtmrFU3xjqyetzbSfZ2d5UsCcH/L3xO99klz9ZSgFQwIb9qWn\nr37BBoEDUvW9PYB89I0lmO42c5a4dvM6cJM8YnpOY140bNp/RS4VW2K+xDa7\n+70jCs2OSvER0op45t9U+t998KMa3IzKbN/IfzYDUfJMj54mzV6XCxYCD/ss\nYNj4cVRHDgyLFX4ulefhSZQcpIdYPhDWiXI8PWuAR90jidGa1xy9pK0AioeB\nq4dnTsKG0afLIpo2ZcQ9OZJpPMHfEBZfknF317uPan1aSb725oXoB8RHgjtz\nV5a5OmlM6eBIb1OZpQymwadrGp7uEunHBEog+RhK5iDEjmkbfdN1yPuO+uNw\nNRag\r\n=Qclb\r\n-----END PGP SIGNATURE-----\r\n","size":3789,"noattachment":false,"key":"/@codemirror/lang-rust/-/@codemirror/lang-rust-0.19.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":"1b6adcee595f9ab363fecb73571294c3c6e09dab","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":"7.18.1","description":"Rust language support for the CodeMirror code editor","directories":{},"sideEffects":false,"_nodeVersion":"16.4.0","dependencies":{"@lezer/rust":"^0.14.0","@codemirror/language":"^0.19.0","@codemirror/highlight":"^0.19.0"},"_hasShrinkwrap":false,"devDependencies":{"@codemirror/buildhelper":"^0.1.0"},"_npmOperationalInternal":{"tmp":"tmp/lang-rust_0.19.0_1628685296670_0.726451251654932","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":1628685296788,"_cnpm_publish_time":1628685296788,"dist-tags":{"latest":"6.0.2"}}