Skip to content

Commit

Permalink
release for 0.7.0 (#238)
Browse files Browse the repository at this point in the history
* release for 0.7.0

* changelog

* fix
  • Loading branch information
chenyan-dfinity authored Jun 4, 2021
1 parent e80b241 commit ccd690b
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 24 deletions.
8 changes: 5 additions & 3 deletions Cargo.lock

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

39 changes: 24 additions & 15 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,38 @@

# Changelog

## 2021-04-22 (Rust 0.7.0-beta.1)
## 2021-06-03

### Breaking changes
### Spec

* Update spec to introduce subtyping check in deserialization [#168](https://github.com/dfinity/candid/pull/168)
* Deserialization requires both `Deserialize` and `CandidType` trait
* `de::ArgumentDecoder`, `ser::ArgumentEncoder` moved to `utils::{ArgumentDecoder, ArgumentEncoder}`
* `types::subtype` returns `Result<()>` instead of `bool` for better error message
* Disable subtyping conversion for opt rules in `IDLValue.annotate_type`
* Display type annotations for number types
* Coq proof for subtype check
* Update test suite to conform with the new spec

### Rust (0.7.0)

### Non-breaking changes
#### Breaking changes

* Require full subtype checking in deserialization. This removes undefined behavior when trying to decode
variant and empty vector at types that are not supertype of the wire type.
* Deserialization requires both `Deserialize` and `CandidType` trait.
* `de::ArgumentDecoder`, `ser::ArgumentEncoder` moved to `utils::{ArgumentDecoder, ArgumentEncoder}`.
* `types::subtype` returns `Result<()>` instead of `bool` for better error message.
* Disable subtyping conversion for opt rules in `IDLValue.annotate_type`.
* Display type annotations for number types.

#### Non-breaking changes

* Better error messages in deserialization
* Update test suite to conform with the new spec
* `didc hash` to compute hash of a field name
* `didc decode` can decode blob format
* Remove unnessary `reqwest` dependency
* Implement CandidType for `str`

### Pending issues
### Tools

* Update opt rule for subtyping and coercion
* Performance regression in decoding struct type, likely due to `Type` clone
* Integration test with production canisters
* `didc bind` to support Motoko bindings
* `didc hash` to compute hash of a field name
* `didc decode` can decode blob format
* Candid UI canister

## 2021-04-07 (Rust 0.6.19 -- 0.6.21)

Expand Down
4 changes: 2 additions & 2 deletions rust/candid/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "candid"
version = "0.7.0-beta.1"
version = "0.7.0"
edition = "2018"
authors = ["DFINITY Team"]
description = "Candid is an interface description language (IDL) for interacting with canisters running on the Internet Computer."
Expand All @@ -23,7 +23,7 @@ byteorder = "1.4.3"
candid_derive = { path = "../candid_derive", version = "=0.4.4" }
codespan-reporting = "0.11"
hex = "0.4.2"
ic-types = "0.1.2"
ic-types = "0.1.3"
lalrpop-util = "0.19.0"
leb128 = "0.2.4"
logos = "0.12"
Expand Down
2 changes: 1 addition & 1 deletion test/construct.test.did
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
Encoding tests for construct types

Corresponding to spec version version 0.1.2
Corresponding to spec version version 0.1.3
*/

// Type definitions
Expand Down
2 changes: 1 addition & 1 deletion test/overshoot.test.did
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Corresponding to spec version version 0.1.2
Corresponding to spec version version 0.1.3

The tests in this file involve large leb-encoded values that indicate sizes (of
tables, arrays, blobs, etc.). In all cases, a decode should be able to catch
Expand Down
2 changes: 1 addition & 1 deletion test/prim.test.did
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
Encoding tests for primitive types

Corresponding to spec version version 0.1.2
Corresponding to spec version version 0.1.3
*/

// fundamentally wrong
Expand Down
2 changes: 1 addition & 1 deletion test/reference.test.did
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
Encoding tests for reference types

Corresponding to spec version version 0.1.2
Corresponding to spec version version 0.1.3
*/

// principal
Expand Down

0 comments on commit ccd690b

Please sign in to comment.