From 354271cb196f1462ed06139b3e0a02ef9492216d Mon Sep 17 00:00:00 2001 From: acheron <98934430+acheroncrypto@users.noreply.github.com> Date: Sun, 10 Nov 2024 23:51:39 +0100 Subject: [PATCH] docs: Add a tip about passing `cargo` args to the `build` command (#3355) --- docs/src/pages/docs/cli.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/src/pages/docs/cli.md b/docs/src/pages/docs/cli.md index c89602f627..24b63409b0 100644 --- a/docs/src/pages/docs/cli.md +++ b/docs/src/pages/docs/cli.md @@ -75,6 +75,15 @@ anchor build --verifiable Runs the build inside a docker image so that the output binary is deterministic (assuming a Cargo.lock file is used). This command must be run from within a single crate subdirectory within the workspace. For example, `programs//`. +{% callout title="Tip" %} +It's possible to pass arguments to the underlying `cargo build-sbf` command with `-- `. For example: + +``` +anchor build -- --features my-feature +``` + +{% /callout %} + ## Cluster ### Cluster list