Skip to content

Commit

Permalink
build(deps-dev): bump @codama/renderers-rust from 1.0.4 to 1.0.5 (#77)
Browse files Browse the repository at this point in the history
* build(deps-dev): bump @codama/renderers-rust from 1.0.4 to 1.0.5

Bumps [@codama/renderers-rust](https://github.com/codama-idl/codama) from 1.0.4 to 1.0.5.
- [Release notes](https://github.com/codama-idl/codama/releases)
- [Commits](https://github.com/codama-idl/codama/compare/@codama/[email protected]...@codama/[email protected])

---
updated-dependencies:
- dependency-name: "@codama/renderers-rust"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Fix formatting for new renderer

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jon C <[email protected]>
  • Loading branch information
dependabot[bot] and joncinque authored Dec 30, 2024
1 parent 869985d commit 0028d59
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 114 deletions.
3 changes: 2 additions & 1 deletion clients/rust/src/generated/instructions/add_memo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ impl AddMemo {
}
}

#[derive(BorshDeserialize, BorshSerialize)]
#[derive(BorshSerialize, BorshDeserialize, Clone, Debug, Eq, PartialEq)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub struct AddMemoInstructionData {}

impl AddMemoInstructionData {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
},
"devDependencies": {
"@codama/renderers-js": "^1.1.1",
"@codama/renderers-rust": "^1.0.4",
"@codama/renderers-rust": "^1.0.5",
"@iarna/toml": "^2.2.5",
"codama": "^1.2.0",
"typescript": "^5.7.2",
Expand Down
120 changes: 9 additions & 111 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion scripts/generate-clients.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import 'zx/globals';
import { createFromRoot } from 'codama';
import { renderVisitor as renderJavaScriptVisitor } from '@codama/renderers-js';
import { renderVisitor as renderRustVisitor } from '@codama/renderers-rust';
import { workingDirectory } from './utils.mjs';
import { getToolchainArgument, workingDirectory } from './utils.mjs';

// Instanciate Codama.
const codama = createFromRoot(
Expand All @@ -24,5 +24,6 @@ codama.accept(
renderRustVisitor(path.join(rustClient, 'src', 'generated'), {
formatCode: true,
crateFolder: rustClient,
toolchain: getToolchainArgument('format'),
})
);

0 comments on commit 0028d59

Please sign in to comment.