Questions tagged [cargo]
The cargo tag has no usage guidance.
13
questions
0
votes
1
answer
32
views
Error: 'tikv-jemalloc-sys v0.4.3+5.2.1-patched.2' fails to build after upgrading substrate-based chain to polkadot-v0.9.22 on WSL2
After upgrading our chain and its relevant dependencies to polkadot-v0.9.22 I am getting the following build error for 'tikv-jemalloc-sys v0.4.3+5.2.1-patched.2'
I have also tried to add parity-util-...
2
votes
1
answer
49
views
Error: failed to run custom build command for `tikv-jemalloc-sys v0.4.3+5.2.1-patched.2`
I was trying to build the substrate-node-template (https://docs.substrate.io/tutorials/v3/create-your-first-substrate-chain/) for the first time. I am using WSL2 with Ubuntu 22.04 LTS.
I came to the ...
3
votes
3
answers
161
views
cargo contract throws error about supplied arguments in ` #[ink(constructor)]` for version 3.0.1
In my smart contract, all the ink dependencies are set to =3.0.1 because of this issue:
Cargo contract 3.0.1
When I tried to execute the cargo contract build or even cargo +nightly contract build to ...
0
votes
2
answers
68
views
"error: failed to select a version for `parity-util-mem`"
Currently dealing with an issue building my chain where parity-util-mem is conflicting with parity-util-mem-ban duplicates and I dont know the exact way to specify a certain version for all ...
4
votes
5
answers
183
views
Cargo contract 3.0.1
Ink! 3.1.0 has been released today, and it seems that it has been automatically embed/used in the cargo-contract command.
The result is that newly compiled contract are no more compatible with node ...
0
votes
1
answer
33
views
Enabling the std feature on environmental crate
I'm trying to use the environmental crate (link: https://docs.rs/environmental/1.1.3/src/environmental/lib.rs.html#64) to work with EVM and ethereum transactions. But it seems like adding either ...
3
votes
1
answer
32
views
Which toolchain should I use to build Substrate
My current toolchains and targets look like this
installed toolchains
--------------------
stable-x86_64-unknown-linux-gnu (default)
nightly-2022-01-01-x86_64-unknown-linux-gnu
nightly-x86_64-unknown-...
1
vote
1
answer
41
views
How to resolve conflicted dependency versions when import frame_support
I'm trying to pull on-chain asset data from Basilisk via subxt. The name field of this asset_details struct is a BoundedVec and I need to be able to run the into_inner() method to get the vec from ...
0
votes
0
answers
17
views
Unresolved import `sp_core::to_substrate_wasm_fn_return_value` [duplicate]
When building the runtime useing cargo build --release I'm running into this error:
error[E0432]: unresolved import `sp_core::to_substrate_wasm_fn_return_value`
--> /home/christian/.cargo/git/...
5
votes
1
answer
47
views
Building a substrate node template with a global cargo `target` directory
I'm trying to build a substrate-node-template with the following command:
cargo build
I have my cargo target-dir set inside a global ~/.cargo/config.toml file:
[build]
target-dir = "/home/foo/....
2
votes
1
answer
31
views
What is the difference between dependencies and dev-dependencies in Cargo.toml
My question is What is the difference between dependencies and dev-dependencies in Cargo.toml. And for developing pallet, now I have to declare crate in dependencies
2
votes
1
answer
40
views
Failed to get frame-benchmarking as a dependency of package
After pulling from the tutorials/solutions/add-a-pallet, The build process with cargo gives an error.
cargo build --release
See error
Expected vs. Actual Behavior
The build process is not complete.
...
2
votes
3
answers
59
views
Build the Substrate Kitties Chain Tutorial Cargo Error
I was following the tutorial: https://docs.substrate.io/tutorials/v3/kitties/pt1/
and as said in the tutorial I installed kickstart using: cargo install kickstart
And after that cloned a copy of the ...