Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 19 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,17 +131,26 @@ before extracting if you want to confirm integrity:
sha256sum -c SHA256SUMS --ignore-missing
```

### Build and install with cargo
### Install from crates.io

Install the `erbridge` binary onto your system's `PATH` via `cargo install`:
```sh
cargo install erbridge --locked
```

This downloads the published release, builds it and copies the binary to `~/.cargo/bin/erbridge`
(make sure that directory is on your `PATH`; `cargo install` prints a warning if it isn't).
`--locked` builds with the dependency versions the release was tested with. Run
`cargo install erbridge --locked --force` to update to a newer release. Needs Rust 1.89 or newer.

### Build and install from source

From a checkout of this repository:

```sh
cargo install --path crates/erbridge
cargo install --path crates/erbridge --locked
```

This builds a release binary and copies it to `~/.cargo/bin/erbridge` (make sure that
directory is on your `PATH`; `cargo install` prints a warning if it isn't). Run
`cargo install --path crates/erbridge --force` to reinstall after pulling new changes.
Run it again with `--force` to reinstall after pulling new changes.

### Run as a systemd service (Linux)

Expand Down Expand Up @@ -252,8 +261,8 @@ cargo install --path crates/erbridge # was: cargo install --path .

(`cargo build --release` at the repository root still produces `target/release/erbridge`.)

**Using erbridge as a library: three changes.** Nothing was ever published to crates.io, so this
only affects programs that depend on it by `path` or `git`.
**Using erbridge as a library: three changes.** Before 0.3 nothing was published to crates.io, so this
only affects programs that depended on it by `path` or `git`.

- The library is now the `erbridge-core` crate, imported as `erbridge_core` (it was `erbridge`).
The `cli` and `tui` modules are no longer part of it.
Expand Down Expand Up @@ -467,8 +476,8 @@ task.await??;

`run_serve_with_shutdown` works the same way for the `serve` role, and returns once every
listener and tunnelled connection is closed and its port released. `run_serve` and
`run_connect` are the same without a shutdown handle. The crate is not published to
crates.io yet; depend on it with a `git` or `path` dependency.
`run_connect` are the same without a shutdown handle. Add it to a project
with `cargo add erbridge-core`; the API docs are on [docs.rs](https://docs.rs/erbridge-core).

## Tests

Expand Down
2 changes: 1 addition & 1 deletion crates/erbridge/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ terminal UI. It can also run as a multi-tenant server: many users, each with
their own token and hostname, routed by TLS SNI without decrypting the traffic.

```sh
cargo install erbridge
cargo install erbridge --locked
erbridge --help
```

Expand Down
Loading