# rust-template-example
[](https://github.com/PRO-2684/rust-template-example/blob/main/LICENSE)
[](https://github.com/PRO-2684/rust-template-example/blob/main/.github/workflows/release.yml)
[](https://github.com/PRO-2684/rust-template-example/releases)
[](https://github.com/PRO-2684/rust-template-example/releases)
[](https://crates.io/crates/rust-template-example)
[](https://crates.io/crates/rust-template-example)
[](https://docs.rs/rust-template-example)
An example showcasing the usage of https://github.com/PRO-2684/rust-template.
## ⚙️ Automatic Releases Setup
1. [Create a new GitHub repository](https://github.com/new) with the name `rust-template-example` and push this generated project to it.
2. Enable Actions for the repository, and grant "Read and write permissions" to the workflow [here](https://github.com/PRO-2684/rust-template-example/settings/actions).
3. [Generate an API token on crates.io](https://crates.io/settings/tokens/new), with the following setup:
- `Name`: `rust-template-example`
- `Expiration`: `No expiration`
- `Scopes`: `publish-new`, `publish-update`
- `Crates`: `rust-template-example`
4. [Add a repository secret](https://github.com/PRO-2684/rust-template-example/settings/secrets/actions/new) named `CARGO_TOKEN` with the generated token as its value.
5. Consider removing this section and updating this README with your own project information.
[Trusted Publishing](https://crates.io/docs/trusted-publishing) is a recent feature added to crates.io. To utilize it, first make sure you've already successfully published the crate to crates.io. Then, follow these steps:
1. [Add a new trusted publisher](https://crates.io/crates/rust-template-example/settings/new-trusted-publisher) to your crate.
- Set "Workflow filename" to `release.yml`.
- Keep other fields intact.
- Click "Add".
2. Modify [`release.yml`](.github/workflows/release.yml).
1. Comment out or remove the `publish-release` job.
2. Un-comment the `trusted-publishing` job.
3. Remove the `CARGO_TOKEN` [repository secret](https://github.com/PRO-2684/rust-template-example/settings/secrets/actions).
## 📥 Installation
### Using [`binstall`](https://github.com/cargo-bins/cargo-binstall)
```shell
cargo binstall rust-template-example
```
### Downloading from Releases
Navigate to the [Releases page](https://github.com/PRO-2684/rust-template-example/releases) and download respective binary for your platform. Make sure to give it execute permissions.
### Compiling from Source
```shell
cargo install rust-template-example
```
## 💡 Examples
TODO
## 📖 Usage
TODO
## 🎉 Credits
TODO