From 9cbe7fdbf473af4694641aef870c719bdbdf5fde Mon Sep 17 00:00:00 2001 From: Liam Aharon Date: Tue, 1 Aug 2023 19:49:37 +1000 Subject: [PATCH] docs: example of using `cargo run` with features (#14696) * cargo run docs * typo --- substrate/Cargo.toml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/substrate/Cargo.toml b/substrate/Cargo.toml index bbbb8563f5..9ee8142e23 100644 --- a/substrate/Cargo.toml +++ b/substrate/Cargo.toml @@ -32,7 +32,10 @@ node-cli = { path = "bin/node/cli" } # Exists here to be backwards compatible and to support `cargo run` in the workspace. # # Just uses the `node-cli` main binary. `node-cli` itself also again exposes the node as -# `substrate-node`. Using `node-cli` directly you can also enable features. +# `substrate-node`. + +# `cargo run` on its own doesn't support features. To use features you must explicitly use +# `node-cli` in your command, e.g. `cargo run -p node-cli --features try-runtime ...`. [[bin]] name = "substrate" path = "bin/node/cli/bin/main.rs"