Skip to content

Commit 81ce306

Browse files
authored
release v0.6.0 (#445)
Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
1 parent 540ec03 commit 81ce306

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+92
-94
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ This is a development pre-release.
66

77
Supported `polkadot-sdk` rev: `unstable2507`
88

9+
## v0.6.0
10+
11+
This is a development pre-release.
12+
13+
Supported `polkadot-sdk` rev: `unstable2507`
14+
915
### Added
1016
- The comprehensive revive compiler book documentation page: https://paritytech.github.io/revive/
1117
- Support for solc v0.8.33.
@@ -24,6 +30,7 @@ Supported `polkadot-sdk` rev: `unstable2507`
2430
- The missing `STOP` instruction at the end of `code` blocks.
2531
- The missing bounds check in the internal sbrk implementation.
2632
- The call gas is no longer ignored.
33+
- The `settings.polkavm.memoryConfig` object and its fields are now in camelCase.
2734

2835
## v0.5.0
2936

Cargo.lock

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,21 @@ rust-version = "1.85.0"
1515

1616
[workspace.dependencies]
1717
lld-sys = { version = "0.1.0", path = "crates/lld-sys" }
18-
resolc = { version = "0.5.0", path = "crates/resolc", default-features = false }
19-
revive-benchmarks = { version = "0.1.0", path = "crates/benchmarks" }
18+
resolc = { version = "0.6.0", path = "crates/resolc", default-features = false }
19+
revive-benchmarks = { version = "0.3.0", path = "crates/benchmarks" }
2020
revive-build-utils = { version = "0.2.0", path = "crates/build-utils" }
2121
revive-builtins = { version = "0.1.0", path = "crates/builtins" }
22-
revive-common = { version = "0.2.1", path = "crates/common" }
23-
revive-differential = { version = "0.2.0", path = "crates/differential" }
22+
revive-common = { version = "0.3.0", path = "crates/common" }
23+
revive-differential = { version = "0.3.0", path = "crates/differential" }
2424
revive-explorer = { version = "0.1.0", path = "crates/explore" }
25-
revive-integration = { version = "0.3.0", path = "crates/integration" }
26-
revive-linker = { version = "0.2.0", path = "crates/linker" }
27-
revive-llvm-context = { version = "0.5.0", path = "crates/llvm-context" }
28-
revive-runner = { version = "0.3.0", path = "crates/runner" }
29-
revive-runtime-api = { version = "0.4.0", path = "crates/runtime-api" }
30-
revive-solc-json-interface = { version = "0.4.0", path = "crates/solc-json-interface", default-features = false }
25+
revive-integration = { version = "0.4.0", path = "crates/integration" }
26+
revive-linker = { version = "0.3.0", path = "crates/linker" }
27+
revive-llvm-context = { version = "0.6.0", path = "crates/llvm-context" }
28+
revive-runner = { version = "0.4.0", path = "crates/runner" }
29+
revive-runtime-api = { version = "0.5.0", path = "crates/runtime-api" }
30+
revive-solc-json-interface = { version = "0.5.0", path = "crates/solc-json-interface", default-features = false }
3131
revive-stdlib = { version = "0.2.0", path = "crates/stdlib" }
32-
revive-yul = { version = "0.4.0", path = "crates/yul" }
32+
revive-yul = { version = "0.5.0", path = "crates/yul" }
3333

3434
hex = "0.4.3"
3535
cc = "1.2"

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,10 @@ bench-resolc: test-resolc
110110
| criterion-table > crates/resolc/BENCHMARKS_M4PRO.md
111111

112112
bench-yul: test-yul
113-
cargo criterion --package revive-yul --bench parse --message-format=json \
114-
| criterion-table > crates/yul/BENCHMARKS_PARSE_M4PRO.md
115-
cargo criterion --package revive-yul --bench lower --message-format=json \
116-
| criterion-table > crates/yul/BENCHMARKS_LOWER_M4PRO.md
113+
cargo criterion --package revive-benchmarks --bench parse --message-format=json \
114+
| criterion-table > crates/benchmarks/BENCHMARKS_PARSE_M4PRO.md
115+
cargo criterion --package revive-benchmarks --bench lower --message-format=json \
116+
| criterion-table > crates/benchmarks/BENCHMARKS_LOWER_M4PRO.md
117117

118118
clean:
119119
cargo clean ; \

book/src/user_guide/differences.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,6 @@ In the constructor code, the offset is ignored and this always returns `0`.
4747

4848
Only supported in constructor code.
4949

50-
### `invalid`
51-
52-
Traps the contract but does not consume the remaining gas.
53-
5450
### `create`, `create2`
5551

5652
Deployments on revive work different than on EVM. In a nutshell: Instead of supplying the deploy code concatenated with the constructor arguments (the EVM deploy model), the [revive runtime expects two pointers](https://docs.rs/pallet-revive/latest/pallet_revive/trait.SyscallDoc.html#tymethod.instantiate):

book/src/user_guide/std_json.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ A boolean value allowing to enable debug information. Corresponds to `resolc -g`
1414

1515
Used to apply PVM specific memory configuration settings.
1616

17-
#### `settings.polkavm.heapSize`
17+
#### `settings.polkavm.memoryConifg.heapSize`
1818

1919
A numerical value allowing to configure the contract heap size. Corresponds to `resolc --heap-size`.
2020

21-
#### `settings.polkavm.stackSize`
21+
#### `settings.polkavm.memoryConifg.stackSize`
2222

2323
A numerical value allowing to configure the contract stack size. Corresponds to `resolc --stack-size`.
2424

File renamed without changes.
File renamed without changes.

crates/benchmarks/Cargo.toml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "revive-benchmarks"
3-
version.workspace = true
3+
version = "0.3.0"
44
license.workspace = true
55
edition.workspace = true
66
repository.workspace = true
@@ -22,7 +22,19 @@ revive-runner = { workspace = true, optional = true }
2222

2323
[dev-dependencies]
2424
criterion = { workspace = true }
25+
inkwell = { workspace = true }
26+
27+
revive-llvm-context = { workspace = true }
28+
revive-yul = { workspace = true }
2529

2630
[[bench]]
2731
name = "execute"
2832
harness = false
33+
34+
[[bench]]
35+
name = "parse"
36+
harness = false
37+
38+
[[bench]]
39+
name = "lower"
40+
harness = false

0 commit comments

Comments
 (0)