{"name":"@codemirror/lang-rust","version":"0.17.1","keywords":["editor","code"],"author":{"url":"http://marijnhaverbeke.nl","name":"Marijn Haverbeke","email":"marijnh@gmail.com"},"license":"MIT","_id":"@codemirror/lang-rust@0.17.1","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":"37043226503f85a681deb6b3569194c712c6afe5","tarball":"http://registry-npm.ywwl.com/@codemirror/lang-rust/download/@codemirror/lang-rust-0.17.1.tgz","fileCount":10,"integrity":"sha512-yjf1T6RS2Ec+YDODP+znInMWigwiRNcZiBHkwTCC+G3aeeU2uafuAUjzbnXckqg65plAnoEcj7/5ixPKuoJC6w==","signatures":[{"sig":"MEQCIHZH5xkhIPtFZ25YcNogbkIumb2LwwYOCK+6VFougjEcAiBp2NutV2xnQndZvvoxRcdIkgEdIlC+Jw+y2YnI7YBT1g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":18814,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf9g/ZCRA9TVsSAnZWagAAcwEP/2siOW49UUOy8ZIQ0mGi\nw3z+f5uhIHZsOj4dCd0bGyWrUhR+mM284gb6iCM4lKn2ktGmFN+QEXibhsR1\nMSIpsrccWHBvXl34jt5GRyYfwwAUP7+zJupW0MyVn6N7Xg9C7BlaunZEjfXF\n4l6zkykzuaPRjDOYY3hLaCLEDe1/X1PoKa+fYASX2Lp+HRolNstbs9TfSanM\nUGuH7SWpn0GKuK7F2fWzhILpd5eM5V/CfAVAcdRVOg+KAcep+W8Ob9ZsmwLD\n2Kv0XiqZqJBZTxojXg1hBo7XHmdz/Lz7Fqgr5vCSGiGQOIlOBPgRfFu3qvwQ\nEt8+j37SyLOXG+JxwJGh4/einA2dIvfn4EiPEmL9Q7oE9c/tPTYPvd3fod2M\nfcl9Vbv6iKstMcyJlxWX9RBXv87p6fhs2riZbuEKsIHC5QTGjwHyLeFcYmm4\n4dSA95/4k6xZjuw6cSjI6vSRvUYpkPDDp2amT7drna5iz9G85he1qXwWgQMG\nZuezR20Ck6yn/EGUf7pGvWSlMr5S2DECjShoyWRid4CIBt1BngCs7QHkjLLR\ndzzIPS/8UpabUZggUVIkCyvN6FA5YRNfI4eO6PbSpVG17tnQHK1L9HvsuzlD\neUki5YVQUWyvUyvlWrkBDVpH3kSWEgj2Fy+igCs4J9rlfeoMAs7/sg+6tcbW\nsJ+g\r\n=GGKo\r\n-----END PGP SIGNATURE-----\r\n","size":5270,"noattachment":false,"key":"/@codemirror/lang-rust/-/@codemirror/lang-rust-0.17.1.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":"67b9cf3e20f19d1baf9c7f4a2a663320eca450b5","scripts":{"test":"echo 'No tests'","prepare":"tsc -p tsconfig.local.json && rollup -c"},"_npmUser":{"name":"marijn","email":"marijnh@gmail.com"},"repository":{"url":"git+https://github.com/codemirror/lang-rust.git","type":"git"},"_npmVersion":"7.3.0","description":"Rust language support for the CodeMirror code editor","directories":{},"sideEffects":false,"_nodeVersion":"15.5.0","dependencies":{"lezer-rust":"^0.13.0","@codemirror/language":"^0.17.0","@codemirror/highlight":"^0.17.0"},"_hasShrinkwrap":false,"devDependencies":{"rollup":"^2.35.1","typescript":"^4.1.3","rollup-plugin-dts":"^2.0.1"},"_npmOperationalInternal":{"tmp":"tmp/lang-rust_0.17.1_1609961433200_0.6022787546774406","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":1609961433328,"_cnpm_publish_time":1609961433328,"dist-tags":{"latest":"6.0.2"}}