Skip to content

Commit

Permalink
Misc fix (#469)
Browse files Browse the repository at this point in the history
* fix merge_init_types and instantiate_candid

* flamegraph for upgrade

* add pub for struct fields

* impl CandidType for cmp::Reverse

* changelog

* fix
  • Loading branch information
chenyan-dfinity committed Sep 27, 2023
1 parent 11094b2 commit 3033772
Show file tree
Hide file tree
Showing 20 changed files with 237 additions and 197 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Expand Up @@ -32,6 +32,6 @@ jobs:
- name: fmt
run: cargo fmt -v -- --check
- name: lint
run: cargo clippy --tests -- -D clippy::all
run: cargo clippy --features all --tests -- -D clippy::all
- name: doc
run: cargo doc
94 changes: 36 additions & 58 deletions Cargo.lock

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

2 changes: 2 additions & 0 deletions Cargo.toml
Expand Up @@ -4,3 +4,5 @@ members = [
"rust/candid_derive",
"tools/didc",
]
resolver = "2"

13 changes: 13 additions & 0 deletions Changelog.md
@@ -1,6 +1,19 @@

# Changelog

## 2023-09-27

### Rust 0.9.8

* Implement `CandidType` for `std::cmp::Reverse`.
* Rust codegen: add `pub` for struct fields.
* Fix `merge_init_types` and `instantiate_candid` when the main actor refers to a variable.

### Candid UI

* Draw flamegraph for canister upgrade
* Upstream fix from `merge_init_types`

## Rust 0.9.7

* Add `utils::merge_init_args` to parse and merge `candid:args` metadata, and add the same endpoint in Candid UI.
Expand Down
2 changes: 1 addition & 1 deletion rust/candid/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "candid"
version = "0.9.7"
version = "0.9.8"
edition = "2021"
authors = ["DFINITY Team"]
description = "Candid is an interface description language (IDL) for interacting with canisters running on the Internet Computer."
Expand Down

0 comments on commit 3033772

Please sign in to comment.