From 67b1799c335f6aeff44e90c5ee463cbd93287bb1 Mon Sep 17 00:00:00 2001 From: Ivan Petkov Date: Mon, 26 Dec 2022 08:59:37 -0800 Subject: [PATCH] README: add a comment about setting pname --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 72ff80c..97ddc08 100644 --- a/README.md +++ b/README.md @@ -457,6 +457,11 @@ Notably, it is possible to set: * `cargoExtraArgs = "--workspace --exclude qux";` to build the entire cargo workspace _except for the `qux` crate_. +Consider setting `pname = "NAME_OF_THE_EXECUTABLE";` when building a single +executable from the workspace. Having the name of the package match the +executable name will allow the result to easily run via `nix run` without +further configuration. + ## License This project is licensed under the [MIT license].