Skip to content
Snippets Groups Projects
Unverified Commit 149c7093 authored by Przemek Rzad's avatar Przemek Rzad Committed by GitHub
Browse files

Add missing features in templates' node packages (#5294)


Corrects the issue we had
[here](https://github.com/paritytech/polkadot-sdk-parachain-template/pull/10),
in which `cargo build --release` worked but `cargo build --package
parachain-template-node --release` failed with missing features.

The command has been added to CI to make sure it works, but at the same
we're changing it in the readme to just `cargo build --release` for
simplification.

Labeling silent because those packages are un-published as part of the
regular release process.

---------

Signed-off-by: default avatarOliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Co-authored-by: default avatarShawn Tabrizi <shawntabrizi@gmail.com>
Co-authored-by: default avatarOliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
parent 47c1b4cd
No related merge requests found
Pipeline #488620 waiting for manual action with stages
in 1 hour, 18 minutes, and 28 seconds
......@@ -42,7 +42,7 @@ packages required to compile this template - please take note of the Rust compil
🔨 Use the following command to build the node without launching it:
```sh
cargo build --package minimal-template-node --release
cargo build --release
```
🐳 Alternatively, build the docker image:
......
......@@ -57,4 +57,7 @@ minimal-template-runtime = { workspace = true }
substrate-build-script-utils = { workspace = true, default-features = true }
[features]
default = []
default = ["std"]
std = [
"minimal-template-runtime/std",
]
......@@ -44,7 +44,7 @@ packages required to compile this template - please take note of the Rust compil
🔨 Use the following command to build the node without launching it:
```sh
cargo build --package parachain-template-node --release
cargo build --release
```
🐳 Alternatively, build the docker image:
......
......@@ -79,7 +79,12 @@ color-print = { workspace = true }
substrate-build-script-utils = { workspace = true, default-features = true }
[features]
default = []
default = ["std"]
std = [
"log/std",
"parachain-template-runtime/std",
"xcm/std",
]
runtime-benchmarks = [
"cumulus-primitives-core/runtime-benchmarks",
"frame-benchmarking-cli/runtime-benchmarks",
......
......@@ -28,7 +28,7 @@ installation](#alternatives-installations) options.
Use the following command to build the node without launching it:
```sh
cargo build --package solochain-template-node --release
cargo build --release
```
### Embedded Docs
......
......@@ -66,7 +66,10 @@ solochain-template-runtime = { workspace = true }
substrate-build-script-utils = { workspace = true, default-features = true }
[features]
default = []
default = ["std"]
std = [
"solochain-template-runtime/std",
]
# Dependencies that are only required if runtime benchmarking should be build.
runtime-benchmarks = [
"frame-benchmarking-cli/runtime-benchmarks",
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment