From 3a44280093e77586baee31892db6942a7d3a7a10 Mon Sep 17 00:00:00 2001 From: E <79379754+oech3@users.noreply.github.com> Date: Wed, 29 Oct 2025 23:25:00 +0900 Subject: [PATCH] README.md: Show how to build all individual bins by cargo (#9069) * README.md: Build all individual bins by cargo * Improve cmd to build all ndividual bins * README.md: remove bracket --------- Co-authored-by: Daniel Hofstetter --- README.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 8e0617d34..9a01a62d1 100644 --- a/README.md +++ b/README.md @@ -134,11 +134,13 @@ example: cargo build --features "base32 cat echo rm" --no-default-features ``` -If you don't want to build the multicall binary and would prefer to build the -utilities as individual binaries, that is also possible. Each utility is -contained in its own package within the main repository, named "uu_UTILNAME". To -build individual utilities, use cargo to build just the specific packages (using -the `--package` [aka `-p`] option). For example: +If you want to build the utilities as individual binaries, that is also possible: + +```shell +cargo build --release --bins --workspace --exclude coreutils --exclude uu_runcon --exclude uu_chcon +``` +Each utility is contained in its own package within the main repository, named "uu_UTILNAME". To +build selected individual utilities, use the `--package` [aka `-p`] option. For example: ```shell cargo build -p uu_base32 -p uu_cat -p uu_echo -p uu_rm