
Security News
GPT-6 Astra Attempts Supply Chain Attacks Against Open Source Maintainers in Testing
GPT-6 Astra hits 100% on ExploitBench and finds zero-days autonomously, while independent tests reveal scope violations and monitoring gaps.
@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 77 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.

Security News
GPT-6 Astra hits 100% on ExploitBench and finds zero-days autonomously, while independent tests reveal scope violations and monitoring gaps.

Product
Socket can now send alerts and supply chain attack notifications to Microsoft Teams, with filters that route the right updates to each channel.

Security News
pnpm 12 rewrites the package manager in Rust, cutting install times by up to 90% while preserving pnpm 11 workflows and lockfiles.