[cargo-hakari] add edition = 2021 to new project template #1219
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow file serves as an example for cargo-hakari CI integration. | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
name: cargo hakari | |
jobs: | |
workspace-hack-check: | |
name: Check workspace-hack | |
runs-on: ubuntu-latest | |
env: | |
RUSTFLAGS: -D warnings | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | |
- uses: dtolnay/rust-toolchain@stable | |
- name: Install cargo-hakari | |
uses: taiki-e/install-action@3451569d988f3b0b3eaccd1d1b539a75ec96f192 # v2 | |
with: | |
tool: cargo-hakari | |
- name: Check workspace-hack Cargo.toml is up-to-date | |
run: cargo hakari generate --diff | |
- name: Check all crates depend on workspace-hack | |
run: cargo hakari manage-deps --dry-run |