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
8 changes: 0 additions & 8 deletions .github/workflows/codecov.yml

This file was deleted.

3 changes: 3 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ jobs:

rust-version-check:
uses: lurk-lab/ci-workflows/.github/workflows/rust-version-check.yml@main

typos:
uses: lurk-lab/ci-workflows/.github/workflows/typos.yml@main
79 changes: 0 additions & 79 deletions CONTRIBUTING.md

This file was deleted.

23 changes: 15 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,27 @@
# template-rust-lib
Base template for a Rust library crate with CI, config files, and branch protection

## Notes
- The generated repo will have a protected `main` branch with the following required status checks:
- `linux-tests`
- `code-quality/msrv`
- `code-quality/lints`
- `code-quality/wasm-build`
- If the generated repo is public, it will enforce a merge queue using `squash and merge` by default
- Run the following after generating the new repo:
## 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
$ grep -ir template . --exclude-dir .git --exclude deny.toml
# Replace all occurrences as needed
$ grep -r "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`, `msrv`, 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
- Enable full write access for Lurk Lab members by adding the `lurk-dev` team in `Settings->Collaborators and teams`
- Edit licenses and `deny.toml` as needed

## License

Expand Down