https://github.com/argumentcomputer/template-rust-lib
Base template for a Rust library crate with CI, config files, and branch protection
https://github.com/argumentcomputer/template-rust-lib
Last synced: 2 months ago
JSON representation
Base template for a Rust library crate with CI, config files, and branch protection
- Host: GitHub
- URL: https://github.com/argumentcomputer/template-rust-lib
- Owner: argumentcomputer
- License: apache-2.0
- Created: 2024-02-09T21:07:14.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-09-09T20:41:04.000Z (9 months ago)
- Last Synced: 2025-09-09T23:58:01.508Z (9 months ago)
- Language: Rust
- Size: 28.3 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# template-rust-lib
Base template for a Rust library with CI, config files, and branch protection
## Usage
- Generate a new repo via the green "Use this template" button
- Run the following to remove template language:
```
# Replace all occurrences with the desired library name
$ rg -i template --glob '!deny.toml'
# Update Rust toolchain if desired
$ rg "EDIT AS NEEDED"
# Then rewrite this `README`
```
- Create a branch protection rule for `main` and enable the following as needed:
- Require a pull request before merging
- Require 1 approval
- Dismiss stale pull request approvals when new commits are pushed
- Require approval of the most recent reviewable push
- Require status checks to pass before merging (optional, after CI has been triggered)
- E.g. `linux-test` and `lints`
- Require a merge queue using `squash and merge` (optional, only allowed if repo is public)
- Allow force pushes if needed to bypass above restrictions when necessary
- Edit licenses and `deny.toml` as needed
## License
MIT or Apache 2.0