This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
'sp-version' breaks no_std
builds that are not wasm
#8891
Labels
J2-unconfirmed
Issue might be valid, but it’s not yet known.
Comments
github-actions
bot
added
the
J2-unconfirmed
Issue might be valid, but it’s not yet known.
label
May 24, 2021
What kind of error you get? |
I get some duplicate lang items error. I could identify the problematic crate to be substrate/primitives/version/src/lib.rs Lines 83 to 95 in c2ec5bc
|
Do you use the macro? If not, it should not be responsible for what you are seeing. |
Ok, I could track it down. It was related to rust-lang/cargo#7915. Adding Thanks for your time! 👍 |
brenzi
pushed a commit
to scs/substrate-api-client
that referenced
this issue
Jun 26, 2021
Currently, this changes nothing, but this is an improvement of the cargo dependency resolution that might prevent `std` leakage into `no_std` builds for dev-dependencies of procedural macros. See: paritytech/substrate#8891
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The re-export of the
sp_version_proc_macro::runtime_version
insp-version
that was introduced here #8688. Breaksno_std
builds that are not wasm.This is inconvenient for us, as in SubstraTEE, we want to include arbitrary substrate-pallets in an sgx-enclave, which is a no-std but not wasm environment. As
sp-version
is a dependant offrame-system
, it is virtually impossible to use any pallets without patching sp-version.Is it an option to remove this re-export?
The text was updated successfully, but these errors were encountered: