{"_id":"@3-/rust2proto","_rev":"3-74d130c4b9ffa9d9495672c902b68f5b","name":"@3-/rust2proto","dist-tags":{"latest":"0.1.4"},"versions":{"0.1.1":{"name":"@3-/rust2proto","version":"0.1.1","author":{"name":"i18n.site@gmail.com"},"license":"MulanPSL-2.0","_id":"@3-/rust2proto@0.1.1","maintainers":[{"name":"i18n-now","email":"i18n.site@gmail.com"}],"homepage":"https://github.com/i18n-site/hpc/tree/dev/coffee/rust2proto","bugs":{"url":"https://github.com/i18n-site/hpc/issues"},"dist":{"shasum":"a85b95ea5a220aa5ce343128abb5b91d150af71c","tarball":"https://registry.npmjs.org/@3-/rust2proto/-/rust2proto-0.1.1.tgz","fileCount":11,"integrity":"sha512-u6xEGjL2iH73bcszv4X6N/4NMO3+j1QRpgxdQEGES6ppJQ9ow7lF1XpP5+JC9ezEAioLXu+lZgFHCa+fkpYHHQ==","signatures":[{"sig":"MEUCIBA6z3zspFkcsEQUWbpBq3PWCTMCKZuG3L+I040xnMxhAiEA2NgnJnDsOTIigEFAop4BqhDoeXapQstCCr2P9Bkslco=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11841},"type":"module","_from":"file:3--rust2proto-0.1.1.tgz","exports":{".":"./lib.js","./*":"./*"},"scripts":{},"_npmUser":{"name":"i18n-now","email":"i18n.site@gmail.com"},"_resolved":"/private/var/folders/4x/n5x1dwrj39v_hl53vyprqcn80000gn/T/1ed15855ade2bf7a88c12c289ea30b6b/3--rust2proto-0.1.1.tgz","_integrity":"sha512-u6xEGjL2iH73bcszv4X6N/4NMO3+j1QRpgxdQEGES6ppJQ9ow7lF1XpP5+JC9ezEAioLXu+lZgFHCa+fkpYHHQ==","repository":{"url":"git+https://github.com/i18n-site/hpc.git","type":"git"},"_npmVersion":"10.9.0","description":"[test/main.coffee](./test/main.coffee) :","directories":{},"_nodeVersion":"22.12.0","dependencies":{"zx":"^8.3.0","js-yaml":"^4.1.0","@3-/read":"^0.1.4","@3-/utf8":"^0.0.4","@3-/camel":"^0.0.4","@3-/snake":"^0.0.3","@3-/write":"^0.0.2","@3-/protoscript":"^0.0.30"},"_hasShrinkwrap":false,"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/rust2proto_0.1.1_1737030019561_0.20980822402350618","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@3-/rust2proto","version":"0.1.2","author":{"name":"i18n.site@gmail.com"},"license":"MulanPSL-2.0","_id":"@3-/rust2proto@0.1.2","maintainers":[{"name":"i18n-now","email":"i18n.site@gmail.com"}],"homepage":"https://github.com/i18n-site/hpc/tree/dev/coffee/rust2proto","bugs":{"url":"https://github.com/i18n-site/hpc/issues"},"dist":{"shasum":"daa157a47ce302e19409e5b9e1094bb7857391dc","tarball":"https://registry.npmjs.org/@3-/rust2proto/-/rust2proto-0.1.2.tgz","fileCount":18,"integrity":"sha512-xq4ePV7MP4TTUNRvq0gkZFUV9I+fHCPyJyQtXTAU6dT6iLB50IM65+8nLtzjg70kiTEAE+xCxO08NXRJSba0sQ==","signatures":[{"sig":"MEUCIHSH0hNpT5NedeFNq4tbSAAoZ5eiv+e6CxGsl/y8YMH8AiEAxZnS6OaOTjhcilGU2shCGcch+XwhBeX40jBaHykX3e0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":25485},"type":"module","_from":"file:3--rust2proto-0.1.2.tgz","exports":{".":"./lib.js","./*":"./*"},"scripts":{},"_npmUser":{"name":"i18n-now","email":"i18n.site@gmail.com"},"_resolved":"/private/var/folders/4x/n5x1dwrj39v_hl53vyprqcn80000gn/T/8c58f9d8e90af9d7a0d65d9508024e93/3--rust2proto-0.1.2.tgz","_integrity":"sha512-xq4ePV7MP4TTUNRvq0gkZFUV9I+fHCPyJyQtXTAU6dT6iLB50IM65+8nLtzjg70kiTEAE+xCxO08NXRJSba0sQ==","repository":{"url":"git+https://github.com/i18n-site/hpc.git","type":"git"},"_npmVersion":"10.9.0","description":"[test/main.coffee](./test/main.coffee) :","directories":{},"_nodeVersion":"22.12.0","dependencies":{"zx":"^8.3.0","js-yaml":"^4.1.0","@3-/read":"^0.1.4","@3-/utf8":"^0.0.4","@3-/camel":"^0.0.4","@3-/snake":"^0.0.3","@3-/write":"^0.0.2","@3-/protoscript":"^0.0.46"},"_hasShrinkwrap":false,"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/rust2proto_0.1.2_1737479003410_0.21244923883031275","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@3-/rust2proto","version":"0.1.3","author":{"name":"i18n.site@gmail.com"},"license":"MulanPSL-2.0","_id":"@3-/rust2proto@0.1.3","maintainers":[{"name":"i18n-now","email":"i18n.site@gmail.com"}],"homepage":"https://github.com/i18n-site/hpc/tree/dev/coffee/rust2proto","bugs":{"url":"https://github.com/i18n-site/hpc/issues"},"dist":{"shasum":"f6847983a7aca009fe2508ddc2ebccc9cbeea27c","tarball":"https://registry.npmjs.org/@3-/rust2proto/-/rust2proto-0.1.3.tgz","fileCount":18,"integrity":"sha512-EESUeHbFnXjRfCh7lPku/P5OMr9XCGsMsC4JjB8LyoCX55JOOhHaVr9aVePtd1DlVHNd/eLwE4pMqG/jiOXqJQ==","signatures":[{"sig":"MEYCIQDaSZutpLsjnubW8Yh58V/PLb/U+swqZt0YzuLt0wh7yAIhAMyX9hbH3WnU4vu04Ar2Ny5AzDG3C9CANG+FBAx1qDX5","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":26527},"type":"module","_from":"file:3--rust2proto-0.1.3.tgz","exports":{".":"./lib.js","./*":"./*"},"scripts":{},"_npmUser":{"name":"i18n-now","email":"i18n.site@gmail.com"},"_resolved":"/private/var/folders/4x/n5x1dwrj39v_hl53vyprqcn80000gn/T/8deecaf947351d33bc59a03833b5a13e/3--rust2proto-0.1.3.tgz","_integrity":"sha512-EESUeHbFnXjRfCh7lPku/P5OMr9XCGsMsC4JjB8LyoCX55JOOhHaVr9aVePtd1DlVHNd/eLwE4pMqG/jiOXqJQ==","repository":{"url":"git+https://github.com/i18n-site/hpc.git","type":"git"},"_npmVersion":"10.9.0","description":"[test/main.coffee](./test/main.coffee) :","directories":{},"_nodeVersion":"22.12.0","dependencies":{"zx":"^8.3.0","js-yaml":"^4.1.0","@3-/read":"^0.1.4","@3-/utf8":"^0.0.4","@3-/camel":"^0.0.4","@3-/snake":"^0.0.3","@3-/write":"^0.0.2","@3-/protoscript":"^0.0.46"},"_hasShrinkwrap":false,"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/rust2proto_0.1.3_1737658796651_0.8278464405288133","host":"s3://npm-registry-packages-npm-production"}},"0.1.4":{"name":"@3-/rust2proto","version":"0.1.4","repository":{"type":"git","url":"git+https://github.com/i18n-site/hpc.git"},"homepage":"https://github.com/i18n-site/hpc/tree/dev/coffee/rust2proto","author":{"name":"i18n.site@gmail.com"},"license":"MulanPSL-2.0","exports":{".":"./lib.js","./*":"./*"},"devDependencies":{},"type":"module","dependencies":{"@3-/camel":"^0.0.4","@3-/protoscript":"^0.0.46","@3-/read":"^0.1.4","@3-/snake":"^0.0.3","@3-/utf8":"^0.0.4","@3-/write":"^0.0.2","js-yaml":"^4.1.0","zx":"^8.3.0"},"scripts":{},"_id":"@3-/rust2proto@0.1.4","description":"[test/main.coffee](./test/main.coffee) :","bugs":{"url":"https://github.com/i18n-site/hpc/issues"},"_integrity":"sha512-9DDZZmoDiASY4jArTmsNwDcDhQDBJ97IGpx2rbcL56BNvJlCdn2soPYL23n7rhNMfFh7OQ3nK3bz6pMPEmzsHQ==","_resolved":"/private/var/folders/4x/n5x1dwrj39v_hl53vyprqcn80000gn/T/5f72c9a913420adb61405d1c85f056a2/3--rust2proto-0.1.4.tgz","_from":"file:3--rust2proto-0.1.4.tgz","_nodeVersion":"22.12.0","_npmVersion":"10.9.0","dist":{"integrity":"sha512-9DDZZmoDiASY4jArTmsNwDcDhQDBJ97IGpx2rbcL56BNvJlCdn2soPYL23n7rhNMfFh7OQ3nK3bz6pMPEmzsHQ==","shasum":"5edded48f0a48382647b9c628a2a05bd7651d153","tarball":"https://registry.npmjs.org/@3-/rust2proto/-/rust2proto-0.1.4.tgz","fileCount":18,"unpackedSize":26741,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCJxS6+2ZgWeCxkgscUxc7cOhulWz+SF9XrRI/iZtIMjwIhAO2fzvImsC2Oz2rJMENHda/R1TF4v537qYjP+zkqpH2l"}]},"_npmUser":{"name":"i18n-now","email":"i18n.site@gmail.com"},"directories":{},"maintainers":[{"name":"i18n-now","email":"i18n.site@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/rust2proto_0.1.4_1737658889743_0.7719011282672505"},"_hasShrinkwrap":false}},"time":{"created":"2025-01-16T12:20:19.425Z","modified":"2025-01-23T19:01:30.139Z","0.1.1":"2025-01-16T12:20:19.774Z","0.1.2":"2025-01-21T17:03:23.613Z","0.1.3":"2025-01-23T18:59:56.911Z","0.1.4":"2025-01-23T19:01:29.943Z"},"bugs":{"url":"https://github.com/i18n-site/hpc/issues"},"author":{"name":"i18n.site@gmail.com"},"license":"MulanPSL-2.0","homepage":"https://github.com/i18n-site/hpc/tree/dev/coffee/rust2proto","repository":{"type":"git","url":"git+https://github.com/i18n-site/hpc.git"},"description":"[test/main.coffee](./test/main.coffee) :","maintainers":[{"name":"i18n-now","email":"i18n.site@gmail.com"}],"readme":"# @3-/rust2proto\n\n[test/main.coffee](./test/main.coffee) :\n\n```coffee\n#!/usr/bin/env coffee\n\n> assert/strict > equal\n  ../src/rustTypeToProtobufType\n\nfor [rust_type, proto_type] from [\n  [\n    'Vec<Box<u8>>'\n    'repeated uint32'\n  ]\n  [\n    'Vec<u8>'\n    'bytes'\n  ]\n  [\n    'Option<Vec<u8>>'\n    'optional bytes'\n  ]\n  [\n    'Option<Box<[u8]>>'\n    'optional bytes'\n  ]\n  [\n    '[u8;3]'\n    'bytes'\n  ]\n  [\n    'Option<[u8;3]>'\n    'optional bytes'\n  ]\n  [\n    'Option<[u16;3]>'\n    'optional repeated uint32'\n  ]\n]\n  gen_type = rustTypeToProtobufType(rust_type)\n  console.log rust_type, '→',gen_type\n  equal gen_type, proto_type\n```\n\noutput :\n\n```\nVec<Box<u8>> → repeated uint32\nVec<u8> → bytes\nOption<Vec<u8>> → optional bytes\nOption<Box<[u8]>> → optional bytes\n[u8;3] → bytes\nOption<[u8;3]> → optional bytes\nOption<[u16;3]> → optional repeated uint32\n```\n\n## About\n\nThis project is an open-source component of [i18n.site ⋅ Internationalization Solution](https://i18n.site).\n\n* [i18 : MarkDown Command Line Translation Tool](https://i18n.site/i18)\n\n  The translation perfectly maintains the Markdown format.\n\n  It recognizes file changes and only translates the modified files.\n\n  The translated Markdown content is editable; if you modify the original text and translate it again, manually edited translations will not be overwritten (as long as the original text has not been changed).\n\n* [i18n.site : MarkDown Multi-language Static Site Generator](https://i18n.site/i18n.site)\n\n  Optimized for a better reading experience\n\n## 关于\n\n本项目为 [i18n.site ⋅ 国际化解决方案](https://i18n.site) 的开源组件。\n\n* [i18 :  MarkDown命令行翻译工具](https://i18n.site/i18)\n\n  翻译能够完美保持 Markdown 的格式。能识别文件的修改，仅翻译有变动的文件。\n\n  Markdown 翻译内容可编辑；如果你修改原文并再次机器翻译，手动修改过的翻译不会被覆盖（如果这段原文没有被修改）。\n\n* [i18n.site : MarkDown多语言静态站点生成器](https://i18n.site/i18n.site) 为阅读体验而优化。\n","readmeFilename":"README.md"}