Skip to content

Commit

Permalink
docs(readme): explain new features
Browse files Browse the repository at this point in the history
  • Loading branch information
fosskers committed Apr 21, 2022
1 parent 8d0ba5b commit da89913
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ cargo install cargo-aur

## Usage

### Basics

Navigate to a Rust project, and run:

```
Expand Down Expand Up @@ -62,6 +64,24 @@ At this point, it is up to you to:
Some of these steps may be automated in `cargo aur` at a later date if there is
sufficient demand.

### Custom Binary Names

If you specify a `[[bin]]` section in your `Cargo.toml` and set the `name`
field, this will be used as the binary name to install within the PKGBUILD.

### `depends` and `optdepends`

If your package requires other Arch packages at runtime, you can specify these
within your `Cargo.toml` like this:

```toml
[package.metadata]
depends = ["nachos", "pizza"]
optdepends = ["sushi", "ramen"]
```

And these settings will be copied to your PKGBUILD.

### Static Binaries

Run with `--musl` to produce a release binary that is statically linked via
Expand Down

0 comments on commit da89913

Please sign in to comment.