Skip to content

Commit 2108161

Browse files
authored
v0.2.9 (#97)
* v0.2.9 Signed-off-by: FL03 <jo3mccain@icloud.com> * update workflows Signed-off-by: FL03 <jo3mccain@icloud.com> * update SECURITY.md Signed-off-by: FL03 <jo3mccain@icloud.com> * update Signed-off-by: FL03 <jo3mccain@icloud.com> * update Signed-off-by: FL03 <jo3mccain@icloud.com> * update Signed-off-by: FL03 <jo3mccain@icloud.com> * update Signed-off-by: FL03 <jo3mccain@icloud.com> * update Signed-off-by: FL03 <jo3mccain@icloud.com> * update rust.yml Signed-off-by: FL03 <jo3mccain@icloud.com> * update rust.yml Signed-off-by: FL03 <jo3mccain@icloud.com> * update rust.yml Signed-off-by: FL03 <jo3mccain@icloud.com> * update rust.yml Signed-off-by: FL03 <jo3mccain@icloud.com> * update Signed-off-by: FL03 <jo3mccain@icloud.com> * update Signed-off-by: FL03 <jo3mccain@icloud.com> * update Signed-off-by: FL03 <jo3mccain@icloud.com> * update Signed-off-by: FL03 <jo3mccain@icloud.com> * update Signed-off-by: FL03 <jo3mccain@icloud.com> * update .github/workflows Signed-off-by: FL03 <jo3mccain@icloud.com> * update Signed-off-by: FL03 <jo3mccain@icloud.com> * update Signed-off-by: FL03 <jo3mccain@icloud.com> * update Signed-off-by: FL03 <jo3mccain@icloud.com> * update Signed-off-by: FL03 <jo3mccain@icloud.com> * update Signed-off-by: FL03 <jo3mccain@icloud.com> * update rust.yml Signed-off-by: FL03 <jo3mccain@icloud.com> * update Signed-off-by: FL03 <jo3mccain@icloud.com> * update rust.yml Signed-off-by: FL03 <jo3mccain@icloud.com> * update Signed-off-by: FL03 <jo3mccain@icloud.com> * update Signed-off-by: FL03 <jo3mccain@icloud.com> * update Cargo.lock Signed-off-by: FL03 <jo3mccain@icloud.com> --------- Signed-off-by: FL03 <jo3mccain@icloud.com>
1 parent f417cd2 commit 2108161

85 files changed

Lines changed: 2261 additions & 1204 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/ISSUE_TEMPLATE/tracking.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,24 @@
11
---
2+
name: Tracking Issue
3+
24
about: A template for creating issues dedicated to tracking other issues and pull requests
35
assignees: [ FL03 ]
46
labels: [ 'tracking' ]
5-
name: Tracking Issue
67
title: 'Tracking issue for '
78
type: Feature
89
---
910

10-
_A concise explanation of the issue (or feature) being tracked._
11+
<!-- A concise explanation of the issue (or feature) being tracked. -->
1112

1213
## Overview
1314

14-
Detail the issue or feature being tracked. Include any relevant context, such as the problem it solves or the motivation behind it.
15+
<!--
16+
Detail the issue or feature being tracked. Include any relevant context, such as the problem it solves or the motivation behind it.
17+
-->
1518

16-
## Issues
19+
## Related Issues and Pull Requests
1720

18-
- []
21+
- [#issue-number](link-to-issue) - Brief description of the issue or PR
1922

2023
## Roadmap
2124

.github/workflows/clippy.yml

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,20 @@ concurrency:
77
on:
88
pull_request:
99
branches: [ main, master ]
10-
types: [ opened, reopened, closed ]
10+
types: [ opened, reopened, synchronize ]
11+
paths:
12+
- "**/clippy.yml"
13+
- "**/*.rs"
14+
- "**/Cargo.*"
15+
push:
16+
branches: [ main, master ]
17+
tags: [ latest, v*.*.*, "*-nightly" ]
18+
paths:
19+
- "**/clippy.yml"
20+
- "**/*.rs"
21+
- "**/Cargo.*"
1122
release:
12-
types: [ created ]
23+
types: [ created, edited ]
1324
repository_dispatch:
1425
types: [ clippy ]
1526
workflow_dispatch:
@@ -18,31 +29,26 @@ permissions:
1829
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
1930
contents: read
2031
security-events: write
32+
statuses: write
2133

2234
jobs:
2335
clippy:
2436
runs-on: ubuntu-latest
2537
steps:
2638
-
27-
name: checkout
39+
name: Checkout
2840
uses: actions/checkout@v4
2941
-
30-
name: setup rustup
42+
name: Setup Rust
3143
uses: actions-rust-lang/setup-rust-toolchain@v1
3244
with:
3345
cache-key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
34-
cache-workspaces: true
3546
components: clippy, rustfmt
3647
-
37-
name: cache
38-
uses: Swatinem/rust-cache@v2
39-
with:
40-
prefix-key: "${{ github.ref_name }}"
41-
-
42-
name: setup cargo
48+
name: Setup the for sarif output
4349
run: cargo install clippy-sarif sarif-fmt
4450
-
45-
name: clippy
51+
name: Run Clippy
4652
run:
4753
cargo clippy
4854
--all-features
Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1-
name: crates-io
1+
name: release
22

33
concurrency:
44
cancel-in-progress: false
55
group: ${{ github.workflow }}-${{ github.ref }}
66

77
env:
8-
CARGO_PACKAGE_NAME: ${{ github.event.repository.name }}
9-
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
108
CARGO_TERM_COLOR: always
11-
RUST_BACKTRACE: 1
9+
RUST_BACKTRACE: full
1210

1311
on:
1412
release:
@@ -18,12 +16,19 @@ on:
1816
workflow_dispatch:
1917

2018
permissions:
21-
contents: read
22-
deployments: read
19+
contents: write
20+
discussions: write
2321
packages: write
2422

2523
jobs:
2624
crates-io:
25+
env:
26+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
27+
environment:
28+
name: crates-io
29+
url: https://crates.io/crates/scsys
30+
outputs:
31+
url: https://crates.io/crates/${{ matrix.package }}
2732
strategy:
2833
max-parallel: 1
2934
fail-fast: false
@@ -47,15 +52,7 @@ jobs:
4752
name: Setup Rust
4853
with:
4954
cache-key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
50-
cache-workspaces: true
5155
-
5256
name: Publish (${{ matrix.package }})
5357
run: cargo publish --locked --package ${{ matrix.package }}
54-
release:
55-
needs: crates-io
56-
runs-on: ubuntu-latest
57-
if: github.event_name == 'release' && github.event.action == 'published'
58-
steps:
59-
-
60-
uses: actions/checkout@v4
61-
name: Checkout
58+
id: publish

.github/workflows/rust.yml

Lines changed: 99 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: rust
22

3-
concurrency:
3+
concurrency:
44
cancel-in-progress: false
55
group: ${{ github.workflow }}-${{ github.ref }}
66

@@ -13,99 +13,146 @@ on:
1313
branches: [ main, master ]
1414
types: [ opened, synchronize, reopened ]
1515
paths:
16-
- '**/workflows/rust.yml'
17-
- '**/*.rs'
18-
- '**/Cargo.*'
16+
- "**/rust.yml"
17+
- "**/*.rs"
18+
- "**/Cargo.*"
1919
push:
2020
branches: [ main, master ]
2121
tags: [ latest, v*, "*-nightly" ]
2222
repository_dispatch:
2323
types: [ rust ]
2424
workflow_dispatch:
25+
inputs:
26+
benchmark:
27+
default: true
28+
description: 'Run benchmarks'
29+
required: true
30+
type: boolean
31+
no_std:
32+
default: false
33+
description: 'Run tests with no_std feature'
34+
required: true
35+
type: boolean
2536

26-
permissions:
27-
contents: read
28-
deployments: read
37+
permissions:
38+
contents: write
2939

3040
jobs:
3141
build:
42+
runs-on: ubuntu-latest
3243
strategy:
3344
fail-fast: false
3445
matrix:
35-
os: [ ubuntu-latest ] # [ ubuntu-latest, macos-latest, windows-latest ]
36-
target: [ x86_64-unknown-linux-gnu, wasm32-wasip1, wasm32-wasip2 ]
37-
runs-on: ${{ matrix.os }}
46+
target: [x86_64-unknown-linux-gnu] # [ x86_64-unknown-linux-gnu, x86_64-apple-darwin, x86_64-pc-windows-msvc, wasm32-unknown-unknown, wasm32-wasip1, wasm32-wasip2 ]
3847
steps:
39-
-
48+
-
4049
name: Checkout
4150
uses: actions/checkout@v4
42-
-
51+
-
4352
name: Setup Rust
4453
uses: actions-rust-lang/setup-rust-toolchain@v1
4554
with:
4655
cache-key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
47-
cache-workspaces: true
4856
target: ${{ matrix.target }}
49-
-
50-
name: Build
51-
run: cargo build -r -v --workspace --locked --features full --target ${{ matrix.target }}
57+
-
58+
name: Build the workspace
59+
run: cargo build -r --locked --workspace --all-features --target ${{ matrix.target }}
60+
benchmark:
61+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') || github.event.action == 'repository_dispatch' && github.event.action == 'rust' || github.event_name == 'workflow_dispatch' && github.event.inputs.benchmark
62+
needs: build
63+
runs-on: ubuntu-latest
64+
strategy:
65+
fail-fast: false
66+
matrix:
67+
target: [ x86_64-unknown-linux-gnu ] # [ x86_64-unknown-linux-gnu, wasm32-unknown-unknown, wasm32-wasip1, wasm32-wasip2 ]
68+
steps:
69+
-
70+
name: Checkout
71+
uses: actions/checkout@v4
72+
-
73+
name: Setup Rust
74+
uses: actions-rust-lang/setup-rust-toolchain@v1
75+
with:
76+
cache-key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
77+
target: ${{ matrix.target }}
78+
-
79+
name: Benchmark the workspace
80+
run: cargo bench -v --locked --workspace --features full --target ${{ matrix.target }}
5281
test:
5382
needs: build
83+
runs-on: ubuntu-latest
5484
strategy:
5585
fail-fast: false
5686
matrix:
57-
os: [ ubuntu-latest ]
58-
toolchain: [ stable, nightly ]
59-
runs-on: ${{ matrix.os }}
87+
features: [ full ]
88+
target: [ x86_64-unknown-linux-gnu ] # [ x86_64-unknown-linux-gnu, wasm32-unknown-unknown, wasm32-wasip1, wasm32-wasip2 ]
6089
steps:
61-
-
90+
-
6291
name: Checkout
6392
uses: actions/checkout@v4
64-
-
93+
-
6594
name: Setup Rust
6695
uses: actions-rust-lang/setup-rust-toolchain@v1
6796
with:
6897
cache-key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
69-
cache-workspaces: true
70-
toolchain: ${{ matrix.toolchain }}
71-
override: true
72-
-
98+
target: ${{ matrix.target }}
99+
-
100+
name: Test (${{ matrix.features }})
101+
run: cargo test -r --locked --workspace --target ${{ matrix.target}} --features ${{ matrix.features }}
102+
test_std:
103+
needs: build
104+
runs-on: ubuntu-latest
105+
strategy:
106+
fail-fast: false
107+
matrix:
108+
features: [ default, all ]
109+
target: [ x86_64-unknown-linux-gnu ]
110+
steps:
111+
-
112+
name: Checkout
113+
uses: actions/checkout@v4
114+
-
115+
name: Setup Rust
116+
uses: actions-rust-lang/setup-rust-toolchain@v1
117+
with:
118+
cache-key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
119+
target: ${{ matrix.target }}
120+
-
121+
if: matrix.features == 'default'
73122
name: Test (default)
74-
run: cargo t -q -r --workspace --locked
75-
-
76-
name: Test (full)
77-
run: cargo t -q -r --workspace --locked --features full
78-
-
79-
name: Test (alloc)
80-
if: matrix.toolchain == 'nightly'
81-
continue-on-error: true
82-
env:
83-
RUSTFLAGS: "-C panic=abort -Z panic_abort_tests"
84-
run: cargo t -q -r --workspace --locked --no-default-features --features alloc
85-
-
86-
name: Test (no_std)
87-
continue-on-error: true
88-
if: matrix.toolchain == 'nightly'
89-
env:
90-
RUSTFLAGS: "-C panic=abort -Z panic_abort_tests"
91-
run: cargo t -q -r --workspace --locked --no-default-features
92-
benchmark:
123+
run: cargo test -r --locked --workspace --target ${{ matrix.target}}
124+
-
125+
if: matrix.features == 'all'
126+
name: Test (all-features)
127+
run: cargo test -r --locked --workspace --target ${{ matrix.target}} --all-features
128+
test_no_std:
93129
needs: build
130+
runs-on: ubuntu-latest
131+
env:
132+
RUSTFLAGS: "-C panic=abort -Z panic_abort_tests"
94133
strategy:
95134
fail-fast: false
96135
matrix:
97-
os: [ ubuntu-latest ]
98-
runs-on: ${{ matrix.os }}
136+
features: [ alloc, no_std ]
137+
package: [ scsys-core ]
99138
steps:
100-
-
139+
-
101140
name: Checkout
102141
uses: actions/checkout@v4
103-
-
142+
-
104143
name: Setup Rust
105144
uses: actions-rust-lang/setup-rust-toolchain@v1
106145
with:
107146
cache-key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
108-
cache-workspaces: true
109-
-
110-
name: Benchmark
111-
run: cargo bench --verbose --workspace --features full
147+
toolchain: nightly
148+
override: true
149+
-
150+
if: matrix.features != 'no_std'
151+
continue-on-error: true
152+
name: Test (${{ matrix.features }})
153+
run: cargo test -r --locked --workspace --no-default-features --package ${{ matrix.package }} --features ${{ matrix.features }}
154+
-
155+
if: matrix.features == 'no_std'
156+
continue-on-error: true
157+
name: Test (no_std)
158+
run: cargo test -r --locked --workspace --no-default-features --package ${{ matrix.package }}

0 commit comments

Comments
 (0)