Skip to content

Commit 59cd349

Browse files
committed
Initialize tracekit workspace with core components, including cache simulation toolkit, workload generators, and CLI tools. Add support for various trace formats and benchmark metrics. Update CI workflows for workspace compatibility.
1 parent 40f3b1a commit 59cd349

37 files changed

Lines changed: 4852 additions & 58 deletions

.github/workflows/benchmarks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- uses: Swatinem/rust-cache@v2
2828

2929
- name: Run benchmarks
30-
run: cargo bench --no-fail-fast | tee bench-output.txt
30+
run: cargo bench --workspace --no-fail-fast | tee bench-output.txt
3131

3232
- name: Upload benchmark output
3333
uses: actions/upload-artifact@v6

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
with:
3838
components: clippy
3939
- name: Run clippy
40-
run: cargo clippy --all-targets --all-features -- -D warnings
40+
run: cargo clippy --workspace --all-targets --all-features -- -D warnings
4141

4242
# Build and test on multiple platforms
4343
test:
@@ -53,9 +53,9 @@ jobs:
5353
- uses: actions-rust-lang/setup-rust-toolchain@v1
5454
- uses: Swatinem/rust-cache@v2
5555
- name: Build
56-
run: cargo build --verbose
56+
run: cargo build --workspace --verbose
5757
- name: Run tests
58-
run: cargo test --all-features --all-targets
58+
run: cargo test --workspace --all-features --all-targets
5959

6060
# Documentation build check
6161
docs:
@@ -68,7 +68,7 @@ jobs:
6868
toolchain: stable
6969
- uses: Swatinem/rust-cache@v2
7070
- name: Build documentation
71-
run: cargo doc --no-deps --all-features
71+
run: cargo doc --workspace --no-deps --all-features
7272
env:
7373
RUSTDOCFLAGS: -Dwarnings
7474

@@ -93,4 +93,4 @@ jobs:
9393
toolchain: 1.85.0 # MSRV for Rust 2024 edition
9494
- uses: Swatinem/rust-cache@v2
9595
- name: Check MSRV
96-
run: cargo check --all-features
96+
run: cargo check --workspace --all-features

.github/workflows/maintenance.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ jobs:
2929
- uses: actions-rust-lang/setup-rust-toolchain@v1
3030
- uses: Swatinem/rust-cache@v2
3131
- name: Build and test
32-
run: cargo test --all-features --all-targets
32+
run: cargo test --workspace --all-features --all-targets

.github/workflows/release.yml

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,23 +33,26 @@ jobs:
3333
- uses: Swatinem/rust-cache@v2
3434

3535
- name: Format check
36-
run: cargo fmt --check
36+
run: cargo fmt --all --check
3737

3838
- name: Clippy
39-
run: cargo clippy --all-targets --all-features -- -D warnings
39+
run: cargo clippy --workspace --all-targets --all-features -- -D warnings
4040

4141
- name: Tests
42-
run: cargo test --all-features --all-targets
42+
run: cargo test --workspace --all-features --all-targets
4343

4444
- name: Docs
45-
run: cargo doc --no-deps --all-features
45+
run: cargo doc --workspace --no-deps --all-features
4646
env:
4747
RUSTDOCFLAGS: -Dwarnings
4848

4949
- name: Package verification
5050
run: |
51-
cargo package
52-
cargo publish --dry-run
51+
# Verify each crate can be packaged
52+
cargo package --package tracekit
53+
cargo package --package tracekit-formats
54+
cargo package --package tracekit-cachekit
55+
cargo package --package tracekit-cli
5356
5457
release:
5558
name: GitHub Release
@@ -69,7 +72,18 @@ jobs:
6972
steps:
7073
- uses: actions/checkout@v6
7174
- uses: actions-rust-lang/setup-rust-toolchain@v1
72-
- name: Publish crate
75+
- name: Publish crates
7376
env:
7477
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
75-
run: cargo publish
78+
run: |
79+
# Publish in dependency order with delays to allow crates.io indexing
80+
cargo publish --package tracekit
81+
echo "Waiting for crates.io to index tracekit..."
82+
sleep 30
83+
84+
cargo publish --package tracekit-formats
85+
cargo publish --package tracekit-cachekit
86+
echo "Waiting for crates.io to index dependencies..."
87+
sleep 30
88+
89+
cargo publish --package tracekit-cli

.idea/.gitignore

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

.idea/misc.xml

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

.idea/modules.xml

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

.idea/tracekit.iml

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

0 commit comments

Comments
 (0)