Skip to content

Commit 6e07ec9

Browse files
authored
Memory, Params -> Resources + macros (#12)
1 parent 5cded9c commit 6e07ec9

90 files changed

Lines changed: 13589 additions & 10289 deletions

File tree

Some content is hidden

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

.github/workflows/ci.yml

Lines changed: 28 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -16,62 +16,66 @@ jobs:
1616
test:
1717
name: Test
1818
runs-on: ubuntu-latest
19-
strategy:
20-
matrix:
21-
rust:
22-
- stable
23-
- 1.89.0 # Rust minimum version
2419
steps:
2520
- uses: actions/checkout@v4
26-
21+
2722
- name: Install Rust
2823
uses: dtolnay/rust-toolchain@master
2924
with:
30-
toolchain: ${{ matrix.rust }}
31-
25+
toolchain: 1.95.0
26+
components: rustfmt, clippy
27+
3228
- name: Cache cargo registry
3329
uses: actions/cache@v4
3430
with:
3531
path: ~/.cargo/registry
3632
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
37-
33+
3834
- name: Cache cargo index
3935
uses: actions/cache@v4
4036
with:
4137
path: ~/.cargo/git
4238
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
43-
39+
4440
- name: Cache cargo build
4541
uses: actions/cache@v4
4642
with:
4743
path: target
4844
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
49-
45+
5046
- name: Check formatting
5147
run: cargo fmt --all -- --check
52-
if: matrix.rust == 'stable'
53-
48+
5449
- name: Run clippy
5550
run: cargo clippy --all-targets --all-features -- -D warnings
56-
if: matrix.rust == 'stable'
5751

58-
- name: Build
52+
- name: Build (default features)
5953
run: cargo build
6054

55+
- name: Build (all features)
56+
run: cargo build --all-features
57+
6158
- name: Check benchmarks
62-
run: cargo check --benches
63-
if: matrix.rust == 'stable'
59+
run: cargo check --benches --all-features
6460

65-
- name: Check examples
61+
- name: Check examples (default features)
6662
run: cargo check --examples
67-
if: matrix.rust == 'stable'
68-
69-
- name: Run tests
63+
64+
- name: Check examples (all features)
65+
# Examples gated behind `required-features` (e.g. scheduler_*) only get
66+
# a build check when their feature is enabled.
67+
run: cargo check --examples --all-features
68+
69+
- name: Run tests (default features)
7070
run: cargo test --lib
71-
71+
72+
- name: Run tests (all features)
73+
# Required to run `tracing_tests` which is `#[cfg(feature = "tracing")]`,
74+
# plus full scheduler coverage.
75+
run: cargo test --lib --all-features
76+
7277
- name: Run doctests
73-
run: cargo test --doc
74-
if: matrix.rust == 'stable'
78+
run: cargo test --doc --all-features
7579

7680
security_audit:
7781
name: Security Audit

.github/workflows/docs.yml

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,36 @@ concurrency:
1616
cancel-in-progress: false
1717

1818
jobs:
19-
deploy:
20-
environment:
21-
name: "github-pages"
22-
url: ${{ steps.deployment.outputs.page_url }}
19+
build:
2320
runs-on: ubuntu-latest
2421
steps:
2522
- name: Checkout
2623
uses: actions/checkout@v4
2724

25+
- name: Install Zola
26+
uses: taiki-e/install-action@v2
27+
with:
28+
tool: zola
29+
30+
- name: Build site
31+
working-directory: docs
32+
run: zola build
33+
2834
- name: Setup Pages
2935
uses: actions/configure-pages@v4
3036

3137
- name: Upload artifact
3238
uses: actions/upload-pages-artifact@v3
3339
with:
34-
path: 'docs'
40+
path: 'docs/public'
3541

42+
deploy:
43+
needs: build
44+
environment:
45+
name: "github-pages"
46+
url: ${{ steps.deployment.outputs.page_url }}
47+
runs-on: ubuntu-latest
48+
steps:
3649
- name: Deploy to GitHub Pages
3750
id: deployment
3851
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
/target
22
**/.DS_Store
33

4+
# Zola build output
5+
docs/public/
6+
47
# Avoid agent files
58
.claude/
69
CLAUDE.md

Cargo.lock

Lines changed: 69 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)