Skip to content

Commit 75d3b99

Browse files
authored
Craft ink! 3.0-rc2 release (#536)
* [releases] add release notes for ink! 3.0-rc2 * [*] bump crate versions to ink! 3.0-rc2 * [releases] add missing ink! 3.0-rc2 release note
1 parent 22b3014 commit 75d3b99

File tree

24 files changed

+147
-120
lines changed

24 files changed

+147
-120
lines changed

RELEASES.md

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,31 @@
1-
# Version 3.0 (2020-10-09)
1+
# Version 3.0-rc2 (2020-10-22)
2+
3+
This is the 2nd release candidate for ink! 3.0.
4+
5+
On top of the changes introduced in the first release candidate for ink! 3.0 we introduced
6+
the following improvements, new features and bug fixes:
7+
8+
- The `ink_storage` crate now comes with a new `BinaryHeap` data structure
9+
that has a very similar interface to the well known Rust standard library
10+
`BinaryHeap`. It features specific optimizations to reduce the storage reads
11+
and writes required for its operations.
12+
- Fixed a bug with `ink_storage::Lazy` that corrupted the storage of
13+
other storage data structures if it was unused in a contract execution.
14+
- The `ink_storage::alloc::Box` type now implements `scale_info::TypeInfo` which
15+
now allows it to be fully used inside other storage data structures such as
16+
`ink_storage::collections::Vec`. The missing of this implementation was
17+
considered a bug.
18+
- The `LazyHashMap` low-level storage abstraction is now re-exported from within
19+
the `ink_storage::lazy` module and docs are inlined.
20+
- Added note about the `ink_core` split into `ink_env` and `ink_storage` crates
21+
to the release notes of ink! 3.0-rc1.
22+
- The `Cargo.toml` documentation now properly links to the one deployed at docs.rs.
23+
On top of that crate level documentation for the `ink_allocator` crate has been
24+
added.
25+
- Add new ERC-20 example contract based on a trait implementation. Also modernized
26+
the old non-trait based ERC-20 example token contract.
27+
28+
# Version 3.0-rc1 (2020-10-09)
229

330
Be prepared for the ink! 3.0 release notes because the whole version was basically a rewrite of
431
all the major components that make up ink!. With our experience gained from previous releases

crates/allocator/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ink_allocator"
3-
version = "3.0.0-rc1"
3+
version = "3.0.0-rc2"
44
authors = ["Parity Technologies <admin@parity.io>", "Robin Freyler <robin@parity.io>"]
55
edition = "2018"
66

crates/env/Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ink_env"
3-
version = "3.0.0-rc1"
3+
version = "3.0.0-rc2"
44
authors = ["Parity Technologies <admin@parity.io>", "Robin Freyler <robin@parity.io>"]
55
edition = "2018"
66

@@ -15,10 +15,10 @@ categories = ["no-std", "embedded"]
1515
include = ["Cargo.toml", "src/**/*.rs", "README.md", "LICENSE"]
1616

1717
[dependencies]
18-
ink_metadata = { version = "3.0.0-rc1", path = "../metadata/", default-features = false, features = ["derive"], optional = true }
19-
ink_allocator = { version = "3.0.0-rc1", path = "../allocator/", default-features = false }
20-
ink_primitives = { version = "3.0.0-rc1", path = "../primitives/", default-features = false }
21-
ink_prelude = { version = "3.0.0-rc1", path = "../prelude/", default-features = false }
18+
ink_metadata = { version = "3.0.0-rc2", path = "../metadata/", default-features = false, features = ["derive"], optional = true }
19+
ink_allocator = { version = "3.0.0-rc2", path = "../allocator/", default-features = false }
20+
ink_primitives = { version = "3.0.0-rc2", path = "../primitives/", default-features = false }
21+
ink_prelude = { version = "3.0.0-rc2", path = "../prelude/", default-features = false }
2222

2323
scale = { package = "parity-scale-codec", version = "1.3", default-features = false, features = ["derive", "full"] }
2424
derive_more = { version = "0.99", default-features = false, features = ["from", "display"] }

crates/lang/Cargo.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ink_lang"
3-
version = "3.0.0-rc1"
3+
version = "3.0.0-rc2"
44
authors = ["Parity Technologies <admin@parity.io>", "Robin Freyler <robin@parity.io>"]
55
edition = "2018"
66

@@ -15,12 +15,12 @@ categories = ["no-std", "embedded"]
1515
include = ["Cargo.toml", "src/**/*.rs", "README.md", "LICENSE"]
1616

1717
[dependencies]
18-
ink_env = { version = "3.0.0-rc1", path = "../env", default-features = false }
19-
ink_storage = { version = "3.0.0-rc1", path = "../storage", default-features = false }
20-
ink_primitives = { version = "3.0.0-rc1", path = "../primitives", default-features = false }
21-
ink_metadata = { version = "3.0.0-rc1", path = "../metadata", default-features = false, optional = true }
22-
ink_prelude = { version = "3.0.0-rc1", path = "../prelude/", default-features = false }
23-
ink_lang_macro = { version = "3.0.0-rc1", path = "macro", default-features = false }
18+
ink_env = { version = "3.0.0-rc2", path = "../env", default-features = false }
19+
ink_storage = { version = "3.0.0-rc2", path = "../storage", default-features = false }
20+
ink_primitives = { version = "3.0.0-rc2", path = "../primitives", default-features = false }
21+
ink_metadata = { version = "3.0.0-rc2", path = "../metadata", default-features = false, optional = true }
22+
ink_prelude = { version = "3.0.0-rc2", path = "../prelude/", default-features = false }
23+
ink_lang_macro = { version = "3.0.0-rc2", path = "macro", default-features = false }
2424

2525
scale = { package = "parity-scale-codec", version = "1.3", default-features = false, features = ["derive", "full"] }
2626
derive_more = { version = "0.99", default-features = false, features = ["from"] }

crates/lang/codegen/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ink_lang_codegen"
3-
version = "3.0.0-rc1"
3+
version = "3.0.0-rc2"
44
authors = ["Parity Technologies <admin@parity.io>", "Robin Freyler <robin@parity.io>"]
55
edition = "2018"
66

@@ -18,7 +18,7 @@ include = ["Cargo.toml", "src/**/*.rs", "README.md", "LICENSE"]
1818
name = "ink_lang_codegen"
1919

2020
[dependencies]
21-
ir = { version = "3.0.0-rc1", package = "ink_lang_ir", path = "../ir", default-features = false }
21+
ir = { version = "3.0.0-rc2", package = "ink_lang_ir", path = "../ir", default-features = false }
2222
quote = "1"
2323
syn = { version = "1.0", features = ["parsing", "full", "extra-traits"] }
2424
proc-macro2 = "1.0"

crates/lang/ir/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ink_lang_ir"
3-
version = "3.0.0-rc1"
3+
version = "3.0.0-rc2"
44
authors = ["Parity Technologies <admin@parity.io>", "Robin Freyler <robin@parity.io>"]
55
edition = "2018"
66

crates/lang/macro/Cargo.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ink_lang_macro"
3-
version = "3.0.0-rc1"
3+
version = "3.0.0-rc2"
44
authors = ["Parity Technologies <admin@parity.io>", "Robin Freyler <robin@parity.io>"]
55
edition = "2018"
66

@@ -15,19 +15,19 @@ categories = ["no-std", "embedded"]
1515
include = ["Cargo.toml", "src/**/*.rs", "README.md", "LICENSE"]
1616

1717
[dependencies]
18-
ink_lang_ir = { version = "3.0.0-rc1", path = "../ir", default-features = false }
19-
ink_lang_codegen = { version = "3.0.0-rc1", path = "../codegen", default-features = false }
20-
ink_primitives = { version = "3.0.0-rc1", path = "../../primitives/", default-features = false }
18+
ink_lang_ir = { version = "3.0.0-rc2", path = "../ir", default-features = false }
19+
ink_lang_codegen = { version = "3.0.0-rc2", path = "../codegen", default-features = false }
20+
ink_primitives = { version = "3.0.0-rc2", path = "../../primitives/", default-features = false }
2121

2222
scale = { package = "parity-scale-codec", version = "1.3", default-features = false, features = ["derive"] }
2323
syn = "1"
2424
proc-macro2 = "1"
2525

2626
[dev-dependencies]
27-
ink_metadata = { version = "3.0.0-rc1", path = "../../metadata/" }
28-
ink_env = { version = "3.0.0-rc1", path = "../../env/" }
29-
ink_storage = { version = "3.0.0-rc1", path = "../../storage/" }
30-
ink_lang = { version = "3.0.0-rc1", path = ".." }
27+
ink_metadata = { version = "3.0.0-rc2", path = "../../metadata/" }
28+
ink_env = { version = "3.0.0-rc2", path = "../../env/" }
29+
ink_storage = { version = "3.0.0-rc2", path = "../../storage/" }
30+
ink_lang = { version = "3.0.0-rc2", path = ".." }
3131

3232
trybuild = "1.0.24"
3333
scale-info = { version = "0.4", default-features = false, features = ["derive"] }

crates/metadata/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ink_metadata"
3-
version = "3.0.0-rc1"
3+
version = "3.0.0-rc2"
44
authors = ["Parity Technologies <admin@parity.io>", "Robin Freyler <robin@parity.io>"]
55
edition = "2018"
66

@@ -15,8 +15,8 @@ categories = ["no-std", "embedded"]
1515
include = ["Cargo.toml", "src/**/*.rs", "README.md", "LICENSE"]
1616

1717
[dependencies]
18-
ink_prelude = { version = "3.0.0-rc1", path = "../prelude/", default-features = false }
19-
ink_primitives = { version = "3.0.0-rc1", path = "../primitives/", default-features = false }
18+
ink_prelude = { version = "3.0.0-rc2", path = "../prelude/", default-features = false }
19+
ink_primitives = { version = "3.0.0-rc2", path = "../primitives/", default-features = false }
2020

2121
serde = { version = "1.0", default-features = false, features = ["derive", "alloc"] }
2222
impl-serde = "0.3.1"

crates/prelude/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ink_prelude"
3-
version = "3.0.0-rc1"
3+
version = "3.0.0-rc2"
44
authors = ["Parity Technologies <admin@parity.io>", "Robin Freyler <robin@parity.io>"]
55
edition = "2018"
66

crates/primitives/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ink_primitives"
3-
version = "3.0.0-rc1"
3+
version = "3.0.0-rc2"
44
authors = ["Parity Technologies <admin@parity.io>", "Robin Freyler <robin@parity.io>"]
55
edition = "2018"
66

@@ -15,7 +15,7 @@ categories = ["no-std", "embedded"]
1515
include = ["/Cargo.toml", "src/**/*.rs", "/README.md", "/LICENSE"]
1616

1717
[dependencies]
18-
ink_prelude = { version = "3.0.0-rc1", path = "../prelude/", default-features = false }
18+
ink_prelude = { version = "3.0.0-rc2", path = "../prelude/", default-features = false }
1919
tiny-keccak = { version = "2.0", features = ["keccak"] }
2020
scale = { package = "parity-scale-codec", version = "1.3", default-features = false, features = ["derive", "full"] }
2121
scale-info = { version = "0.4", default-features = false, features = ["derive"], optional = true }

0 commit comments

Comments
 (0)