codama-idl / codama

Generate clients, CLIs, documentation and more from your Solana programs
MIT License
73 stars 16 forks source link

Rust Renderer: Add toolchain arg to formatter #56

Closed buffalojoec closed 4 months ago

buffalojoec commented 4 months ago

Problem

Projects using Kinobi may configure their rustfmt.toml to use nightly-only formatting configurations.

Currently, Kinobi always uses the stable toolchain when running cargo fmt upon generating Rust client code.

Summary of Changes

Add an option to RenderOptions for Rust toolchain, allowing users to configure a Rust toolchain for formatting.

changeset-bot[bot] commented 4 months ago

🦋 Changeset detected

Latest commit: 751ec599a8a15f8d61ac7f2337bc1ead8e72b744

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages | Name | Type | | ------------------------- | ----- | | @kinobi-so/renderers-rust | Patch | | @kinobi-so/renderers | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR