-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #261 from epage/template
chore Update from '_rust/main' template
- Loading branch information
Showing
14 changed files
with
489 additions
and
257 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,12 @@ | ||
msrv = "1.60.0" # MSRV | ||
warn-on-all-wildcard-imports = true | ||
allow-expect-in-tests = true | ||
allow-unwrap-in-tests = true | ||
allow-dbg-in-tests = true | ||
allow-print-in-tests = true | ||
disallowed-methods = [ | ||
{ path = "std::option::Option::map_or", reason = "use `map(..).unwrap_or(..)`" }, | ||
{ path = "std::option::Option::map_or_else", reason = "use `map(..).unwrap_or_else(..)`" }, | ||
{ path = "std::result::Result::map_or", reason = "use `map(..).unwrap_or(..)`" }, | ||
{ path = "std::result::Result::map_or_else", reason = "use `map(..).unwrap_or_else(..)`" }, | ||
] |
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 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 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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: rust-next | ||
|
||
permissions: | ||
contents: read | ||
|
||
on: | ||
schedule: | ||
- cron: '5 5 5 * *' | ||
|
||
env: | ||
RUST_BACKTRACE: 1 | ||
CARGO_TERM_COLOR: always | ||
CLICOLOR: 1 | ||
|
||
jobs: | ||
test: | ||
name: Test | ||
strategy: | ||
matrix: | ||
os: ["ubuntu-latest", "windows-latest", "macos-latest"] | ||
rust: ["stable", "beta"] | ||
include: | ||
- os: ubuntu-latest | ||
rust: "nightly" | ||
continue-on-error: ${{ matrix.rust != 'stable' }} | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
- name: Install Rust | ||
uses: dtolnay/rust-toolchain@stable | ||
with: | ||
toolchain: ${{ matrix.rust }} | ||
- uses: Swatinem/rust-cache@v2 | ||
- uses: taiki-e/install-action@cargo-hack | ||
- name: Build | ||
run: cargo test --no-run --workspace --all-features | ||
- name: Test | ||
run: cargo hack test --workspace --feature-powerset | ||
- name: Run crate example | ||
run: cargo run --example default |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.