sp-api: Make the generated code act based on `std` in `sp-api` (#14267)
* sp-api: Make the generated code act based on `std` in `sp-api` Instead of letting the macro generate code that checks if the `std` feature is enabled, it will now generate code that checks if the `std` feature is enabled for the `sp-api` crate. The old implementation basically required that the crate in which the macro was used, had a `std` feature. Now we don't have this requirement anymore and act accordingly the feature in `sp-api` directly. * Missing feature! --------- Co-authored-by: parity-processbot <>
Showing
- substrate/frame/executive/Cargo.toml 1 addition, 0 deletionssubstrate/frame/executive/Cargo.toml
- substrate/primitives/api/proc-macro/src/decl_runtime_apis.rs 12 additions, 9 deletionssubstrate/primitives/api/proc-macro/src/decl_runtime_apis.rs
- substrate/primitives/api/proc-macro/src/impl_runtime_apis.rs 172 additions, 172 deletionssubstrate/primitives/api/proc-macro/src/impl_runtime_apis.rs
- substrate/primitives/api/src/lib.rs 3 additions, 0 deletionssubstrate/primitives/api/src/lib.rs
- substrate/primitives/api/test/Cargo.toml 0 additions, 5 deletionssubstrate/primitives/api/test/Cargo.toml
- substrate/primitives/core/src/lib.rs 12 additions, 0 deletionssubstrate/primitives/core/src/lib.rs
Please register or sign in to comment