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

Commit

Permalink
docs: example of using cargo run with features (#14696)
Browse files Browse the repository at this point in the history
* cargo run docs

* typo
  • Loading branch information
liamaharon authored Aug 1, 2023
1 parent 6d19bc2 commit 0e7b02d
Showing 1 changed file with 4 additions and 1 deletion.
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

0 comments on commit 0e7b02d

Please sign in to comment.