Skip to content

Commit

Permalink
refactor!: move Rust code generation logic from candid_parser. (#480)
Browse files Browse the repository at this point in the history
* refactor!(bindgen): move Rust codegen logic from candid_parser

* changelog

* revert unnecessary changes
  • Loading branch information
lwshang authored Apr 12, 2024
1 parent 681008a commit dc582ae
Show file tree
Hide file tree
Showing 5 changed files with 700 additions and 10 deletions.
3 changes: 3 additions & 0 deletions Cargo.lock

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

24 changes: 19 additions & 5 deletions src/ic-cdk-bindgen/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,37 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [unreleased]

- Re-generate bindings if the canister ids changed (e.g. when switching networks) or when the path to the candid file of a dependency changed.
### Changed

- Refactor!: move Rust code generation logic from candid_parser. (#480)

### Fixed

- Re-generate bindings if the canister ids changed (e.g. when switching networks) or when the path to the candid file of a dependency changed. (#479)

## [0.1.3] - 2024-02-27

- Resolve CANISTER_CANDID_PATH and CANISTER_ID from standardized environment variables (uppercase canister names).
### Added

- Resolve CANISTER_CANDID_PATH and CANISTER_ID from standardized environment variables (uppercase canister names). (#467)
- The support for legacy (non-uppercase) env vars is kept.
- It will be removed in next major release (v0.2).

## [0.1.2] - 2023-11-23

- Change `candid` dependency to the new `candid_parser` library.
### Changed

- Change `candid` dependency to the new `candid_parser` library. (#448)
More details here: https://github.com/dfinity/candid/blob/master/Changelog.md#2023-11-16-rust-0100

## [0.1.1] - 2023-09-18

- Update `candid` dependency to 0.9.6 which change the Rust bindings.
### Changed

- Update `candid` dependency to 0.9.6 which change the Rust bindings. (#424)

## [0.1.0] - 2023-07-13

- First release.
### Added

- First release. (#416)
3 changes: 3 additions & 0 deletions src/ic-cdk-bindgen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,7 @@ keywords = ["internet-computer", "types", "dfinity", "canister", "cdk"]
include = ["src", "Cargo.toml", "LICENSE", "README.md"]

[dependencies]
candid.workspace = true
candid_parser.workspace = true
convert_case = "0.6"
pretty = "0.12"
Loading

0 comments on commit dc582ae

Please sign in to comment.