I am following this tutorial and when I add this code to my untime/Cargo.toml
[features]
default = ["std"]
std = [
"codec/std",
"scale-info/std",
"frame-executive/std",
"frame-support/std",
"frame-system-rpc-runtime-api/std",
"frame-system/std",
"pallet-aura/std",
"pallet-balances/std",
"pallet-contracts/std",
"pallet-contracts-primitives/std",
]
but when I test it out with cargo check -p node-template-runtime
I get this error:
error: failed to load manifest for workspace member `/home/bosr/rust/substrate-node-template/node`
Caused by:
failed to parse manifest at `/home/bosr/rust/substrate-node-template/node/Cargo.toml`
Caused by:
feature `std` includes `codec/std`, but `codec` is not a dependency
What is the name of the dependency I need to add to make it work? I tried codec
but the compiler tells me error: no matching package named
codec found