-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
18 lines (16 loc) · 845 Bytes
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[package]
name = "runtime-string-test"
version = "0.1.0"
edition = "2021"
[dependencies]
log = { version = "0.4.22", default-features = false }
sp-runtime = { default-features = false, git = "https://github.com/clangenb/polkadot-sdk", branch = "cl/fix-alloc-in-sp-runtime" }
# Compile crate with the following crates to get the error:
# error[E0433]: failed to resolve: use of undeclared crate or module `alloc`
# --> src/main.rs:4:18
# |
#4 | let string = sp_runtime::format_runtime_string!("Hello Worlds");
# | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `alloc`
# |
# = note: this error originates in the macro `sp_runtime::format_runtime_string` (in Nightly builds, run with -Z macro-backtrace for more info)
#sp-runtime = { version = "38.0.0", default-features = false }