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: source/mainnet/smart-contracts/guides/no-std.rst
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,7 @@ You can update your `Cargo.toml` file by using:
46
46
In ``concordium-std`` version in the range of ``>=6.0.0`` and ``<10.0.0``, ``wee_alloc`` is a feature and needs to be explicitly enabled.
47
47
In ``concordium-std`` version ``>=10.0.0``, `bump_alloc <https://docs.rs/concordium-std/10.0.0/concordium_std/#use-a-custom-allocator>`_ is a feature and needs to be explicitly enabled.
48
48
When ``std`` feature is enabled, the allocator provided by the Rust standard library is used
49
-
by default but when the ``wee_alloc/bump_alloc`` feature is enabled in addition, `bump_alloc <https://docs.rs/concordium-std/10.0.0/concordium_std/#use-a-custom-allocator>`_ ( or `wee_alloc <https://docs.rs/wee_alloc/>`_) is used instead.
49
+
by default but when the ``wee_alloc``/``bump_alloc`` feature is enabled in addition, `bump_alloc <https://docs.rs/concordium-std/10.0.0/concordium_std/#use-a-custom-allocator>`_ ( or `wee_alloc <https://docs.rs/wee_alloc/>`_) is used instead.
50
50
51
51
You can enable the ``std`` feature and the ``wee_alloc`` feature in ``concordium-std`` version in the range of ``>=6.0.0`` and ``<10.0.0`` by using:
52
52
@@ -62,7 +62,7 @@ You can update your `Cargo.toml` file by using:
62
62
[dependencies]
63
63
concordium-std = {version = "10.0", features = ["bump_alloc"]}
64
64
65
-
Alternatively, if you want to test with and without ``wee_alloc/bump_alloc`` enabled add a ``wee_alloc/bump_alloc`` feature to the smart contract crate as follows:
65
+
Alternatively, if you want to test with and without ``wee_alloc``/``bump_alloc`` enabled add a ``wee_alloc``/``bump_alloc`` feature to the smart contract crate as follows:
66
66
67
67
.. code-block:: rust
68
68
@@ -78,8 +78,8 @@ You can update your `Cargo.toml` file by using:
78
78
79
79
$cargo concordium build
80
80
81
-
When ``no_std`` is used either ``wee_alloc/bump_alloc`` must be enabled, or another global allocator
82
-
must be set in the smart contract. You can add the ``wee_alloc/bump_alloc`` feature by using e.g.:
81
+
When ``no_std`` is used either ``wee_alloc``/``bump_alloc`` must be enabled, or another global allocator
82
+
must be set in the smart contract. You can add the ``wee_alloc``/``bump_alloc`` feature by using e.g.:
0 commit comments