Skip to content

Commit

Permalink
release (#281)
Browse files Browse the repository at this point in the history
* release

* update candid ui
  • Loading branch information
chenyan-dfinity authored Sep 30, 2021
1 parent dcbfc12 commit 061c8b7
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 51 deletions.
96 changes: 48 additions & 48 deletions Cargo.lock

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

4 changes: 4 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@

# Changelog

## 2021-09-30 (Rust 0.7.8)

* Fix `subtype` function to take only one env. To check subtyping from two did files, use `env.merge_type(env2, ty2)` to merge the env and rename variable names.

## 2021-09-09

* Release ARM binary for `didc`
Expand Down
2 changes: 1 addition & 1 deletion rust/candid/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "candid"
version = "0.7.7"
version = "0.7.8"
edition = "2018"
authors = ["DFINITY Team"]
description = "Candid is an interface description language (IDL) for interacting with canisters running on the Internet Computer."
Expand Down
2 changes: 1 addition & 1 deletion tools/didc/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "didc"
version = "0.1.0"
version = "0.1.1"
authors = ["DFINITY Team"]
edition = "2018"

Expand Down
3 changes: 2 additions & 1 deletion tools/ui/src/didjs/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ fn subtype(new: String, old: String) -> Result<(), String> {
let new_actor = check_prog(&mut new_env, &new).unwrap().unwrap();
let old_actor = check_prog(&mut old_env, &old).unwrap().unwrap();
let mut gamma = std::collections::HashSet::new();
subtype::subtype(&mut gamma, &new_env, &new_actor, &old_env, &old_actor)
let old_actor = new_env.merge_type(old_env, old_actor);
subtype::subtype(&mut gamma, &new_env, &new_actor, &old_actor)
.or_else(|e| Err(e.to_string()))
}

Expand Down

0 comments on commit 061c8b7

Please sign in to comment.