1
0
Fork 0

Update the bundler xtask and cargo subcommand docs

This commit is contained in:
Robbert van der Helm 2022-03-02 11:19:35 +01:00
parent 9d5de10d16
commit 66012f9787
2 changed files with 9 additions and 7 deletions

View file

@ -1,8 +1,9 @@
# NIH-plug: cargo subcommand for bundling plugins
This is NIH-plug's `cargo xtask` command, as a `cargo` subcommand. This way you
can use it outside of NIH-plug projects. If you're using NIH-plug, you'll want
to use the xtask integration directly instead, see:
This is NIH-plug's `cargo xtask` command, but as a `cargo` subcommand. This way
you can use it outside of NIH-plug projects. If you're using NIH-plug, you'll
want to use the xtask integration directly instead so you don't need to worry
about keeping the command up to date, see:
<https://github.com/robbert-vdh/nih-plug/tree/master/nih_plug_xtask>.
Since this has not yet been published to `crates.io`, you'll need to install
@ -12,7 +13,7 @@ this using:
cargo install --git https://github.com/robbert-vdh/nih-plug.git cargo-nih-plug
```
Once that's installed, you can bundle plugins using:
Once that's installed, you can compile and bundle plugins using:
```shell
cargo nih-plug bundle <package_name> --release

View file

@ -1,9 +1,10 @@
# NIH-plug: bundler and other utilities
This is NIH-plug's `cargo xtask` command, but as a library. This way you can use
it in your own projects without forking this repo or copying the binary into
your own repo. This is necessary until Cargo supports [running binaries from
dependencies directly](https://github.com/rust-lang/rfcs/pull/3168).
it in your own projects without having to either fork this repo or vendor the
binary into your own repo. This is necessary until Cargo supports [running
binaries from dependencies
directly](https://github.com/rust-lang/rfcs/pull/3168).
To use this, add an `xtask` binary to your project using `cargo new --bin xtask`
and add it to the Cargo workspace in your repository's main `Cargo.toml` file: