Skip to content

Commit

Permalink
Update the bundler xtask and cargo subcommand docs
Browse files Browse the repository at this point in the history
  • Loading branch information
robbert-vdh committed Mar 2, 2022
1 parent 9d5de10 commit 66012f9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
9 changes: 5 additions & 4 deletions cargo_nih_plug/README.md
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down
7 changes: 4 additions & 3 deletions nih_plug_xtask/README.md
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit 66012f9

Please sign in to comment.