Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

docs: example of using cargo run with features #14696

Merged
merged 2 commits into from
Aug 1, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down