
Company News
Jerod Santo Joins Socket as Head of Media
Allow myself to introduce... myself.
@kinobi-so/renderers-rust
Advanced tools
This package generates Rust clients from your Kinobi IDLs.
pnpm install @kinobi-so/renderers-rust
[!NOTE] This package is not included in the main
kinobipackage.However, note that the
rendererspackage re-exports therenderVisitorfunction of this package asrenderRustVisitor.
Once you have a Kinobi IDL, you can use the renderVisitor of this package to generate Rust clients. You will need to provide the base directory where the generated files will be saved and an optional set of options to customize the output.
// node ./kinobi.mjs
import { renderVisitor } from '@kinobi-so/renderers-rust';
const pathToGeneratedFolder = path.join(__dirname, 'clients', 'rust', 'src', 'generated');
const options = {}; // See below.
kinobi.accept(renderVisitor(pathToGeneratedFolder, options));
The renderVisitor accepts the following options.
| Name | Type | Default | Description |
|---|---|---|---|
deleteFolderBeforeRendering | boolean | true | Whether the base directory should be cleaned before generating new files. |
formatCode | boolean | false | Whether we should use cargo fmt to format the generated code. When set to true, the crateFolder option must be provided. |
toolchain | string | "+stable" | The toolchain to use when formatting the generated code. |
crateFolder | string | none | The path to the root folder of the Rust crate. This option is required when formatCode is set to true. |
dependencyMap | Record<ImportFrom, string> | {} | A mapping between import aliases and their actual crate name or path in Rust. |
renderParentInstructions | boolean | false | When using nested instructions, whether the parent instructions should also be rendered. When set to false (default), only the instruction leaves are being rendered. |
FAQs
Renders Rust clients for your programs
The npm package @kinobi-so/renderers-rust receives a total of 137 weekly downloads. As such, @kinobi-so/renderers-rust popularity was classified as not popular.
We found that @kinobi-so/renderers-rust demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.

Company News
Allow myself to introduce... myself.

Research
/Security News
A Twitch browser extension on Chrome and Firefox forwards users’ live OAuth session tokens through proxies controlled by a Russian bot service.

Security News
Anthropic found biased reasoning and recklessness drove Claude Mythos 5 to publish malware on PyPI and compromise a security vendor.