-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
177 additions
and
10 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 |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: 🧪 | ||
|
||
on: | ||
push: | ||
branches: | ||
- "**" | ||
pull_request: | ||
branches: | ||
- main | ||
merge_group: | ||
|
||
jobs: | ||
run-tests-rust: | ||
name: Run Rust tests | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
rust-version: ["stable"] | ||
feature-flags: ['--features "strict"'] | ||
steps: | ||
- name: Set up Rust | ||
uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
with: | ||
toolchain: ${{ matrix.rust-version }} | ||
components: rustfmt | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Run unit tests | ||
run: cargo test ${{ matrix.feature-flags }} | ||
- name: Run unit tests in release mode | ||
run: cargo test --release ${{ matrix.feature-flags }} | ||
|
||
check-dependencies: | ||
name: Check dependencies | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
rust-version: ["stable"] | ||
steps: | ||
- name: Set up Rust | ||
uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
with: | ||
toolchain: ${{ matrix.rust-version }} | ||
components: rustfmt | ||
- name: Install cargo-upgrades | ||
run: cargo install cargo-upgrades | ||
- uses: actions/checkout@v3 | ||
- name: Check that dependencies are up to date | ||
run: | ||
cargo upgrades |
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,34 @@ | ||
name: 🧪📅 | ||
|
||
on: | ||
schedule: | ||
- cron: "0 7 * * 1" | ||
|
||
jobs: | ||
run-tests-rust: | ||
name: Run Rust tests | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
rust-version: ["stable", "beta", "nightly"] | ||
steps: | ||
- name: Set up Rust | ||
uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
with: | ||
toolchain: ${{ matrix.rust-version }} | ||
components: rustfmt | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Build rust library | ||
run: cargo build --features "strict" | ||
- name: Build rust library in release mode | ||
run: cargo build --release --features "strict" | ||
|
||
|
||
- name: Run unit tests | ||
run: cargo test --features "strict" | ||
- name: Run unit tests in release mode | ||
run: cargo test --release --features "strict" | ||
|
||
- name: Build docs | ||
run: cargo doc --features "strict" --no-deps |
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,32 @@ | ||
name: ✨ | ||
|
||
on: | ||
push: | ||
branches: | ||
- "**" | ||
pull_request: | ||
branches: | ||
- main | ||
merge_group: | ||
|
||
jobs: | ||
style-checks: | ||
name: Rust style checks | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
feature-flags: ['--features "strict"', ''] | ||
steps: | ||
- name: Set up Rust | ||
uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
with: | ||
toolchain: stable | ||
components: rustfmt,clippy | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Style checks | ||
run: | | ||
cargo fmt -- --check | ||
cargo clippy ${{ matrix.feature-flags }} -- -D warnings | ||
cargo clippy --tests ${{ matrix.feature-flags }} -- -D warnings | ||
cargo clippy --examples ${{ matrix.feature-flags }} -- -D warnings |
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,12 +1,11 @@ | ||
|
||
workspace = { members = ["c-api-tools-macros", "example_project"] } | ||
|
||
[features] | ||
strict = [] | ||
|
||
[package] | ||
name = "c-api-tools" | ||
version = "0.1.0-dev" | ||
version = "0.0.0-dev" | ||
edition = "2021" | ||
authors = [ | ||
"Timo Betcke <[email protected]>", | ||
|
@@ -25,13 +24,9 @@ name = "c_api_tools" | |
crate-type = ["lib", "cdylib"] | ||
|
||
[dependencies] | ||
itertools = "0.13.*" | ||
num = "0.4" | ||
c-api-tools-macros = { path = "./c-api-tools-macros" } | ||
|
||
[dev-dependencies] | ||
paste = "1.*" | ||
|
||
[build-dependencies] | ||
cbindgen = "0.27.0" | ||
|
||
|
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ strict = [] | |
|
||
[package] | ||
name = "c-api-tools-macros" | ||
version = "0.1.3-dev" | ||
version = "0.0.0-dev" | ||
edition = "2021" | ||
authors = [ | ||
"Matthew Scroggs <[email protected]>", | ||
|
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
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