You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: concordium-std/CHANGELOG.md
+7-3Lines changed: 7 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,9 +3,13 @@
3
3
## Unreleased
4
4
5
5
- Removed the native test `StateTrie`
6
-
- The crate now targets [`wasm32v1-none`](https://doc.rust-lang.org/rustc/platform-support/wasm32v1-none.html) as the supported WASM target. The crate also no longer has an `std` crate feature.
7
-
Smart contracts using `concordium-std` should specify `#[no_std]` and compile to `wasm32v1-none`.
8
-
The `concordium-std` crate still supports compiling to targets like x86 linux (for unit testing e.g.), in which case the crate will add the Rust `std` crate as a dependency.
6
+
- The crate is now intended for use on the [`wasm32v1-none`](https://doc.rust-lang.org/rustc/platform-support/wasm32v1-none.html) target, which is a `no_std` target.
7
+
Smart contracts using `concordium-std` should specify `#[no_std]` and compile to the target `wasm32v1-none`. The previously supported target `wasm32-unknown-unknown`
8
+
(which has a partly stubbed `std` implementation) is no longer supported with `concordium-std`. The crate feature `std` has likewise been removed.
9
+
The allocator used by default by `concordium-std` is [`dlmalloc`](https://crates.io/crates/dlmalloc). The crate feature `bump_alloc`
10
+
will switch to use the custom, lightweight `bump_alloc` allocator.
11
+
Notice that `dlmalloc` is the same as used by the `std` implementation of `wasm32-unknown-unknown`.
12
+
The `concordium-std` crate still supports compiling to targets like x64 linux (for unit testing e.g.), in which case the crate will add the Rust `std` crate as a dependency.
9
13
- The crate feature `p7` has been removed. The functionality it guarded (related to protocol P7) is unconditionally compiled.
10
14
- The crate feature `crypto-primitives` has been removed. It had no effect anymore (was previously used by the now deprecated test infrastructure).
11
15
- The types `StateMap` and `StateSet` and related types no longer requires the low-level state type to be specified.
concordium-quickcheck = ["getrandom", "quickcheck", "concordium-contracts-common/concordium-quickcheck"] # // decide what to do with this feature flag as part of https://linear.app/concordium/issue/COR-2474/property-based-tests-on-wasm32-target
34
35
# Enabling debug feature changes the #[concoridum_dbg] macro to log messages via the WASM interpreter
35
36
debug = []
36
-
# Custom allocator. See module documentation for bump_alloc in this crate
37
+
# Use the dlmalloc allocator
38
+
dlmalloc = ["dep:dlmalloc"]
39
+
# Use the custom bump allocator instead of dlmalloc. See module documentation for bump_alloc in this crate.
37
40
bump_alloc = []
38
41
39
-
[lib]
40
-
# cdylib is needed below to compile into a wasm module with internal unit tests.
41
-
crate-type = ["cdylib", "rlib"]
42
-
43
42
[dev-dependencies]
44
43
trybuild = "1.0"
45
44
@@ -48,3 +47,5 @@ trybuild = "1.0"
48
47
# target on docs.rs. This is useful because the some parts of documentation only
0 commit comments