Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 8 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,43 +17,28 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: dtolnay/rust-toolchain@stable
with:
toolchain: "1.85.0"
components: clippy, rustfmt
- uses: DeterminateSystems/nix-installer-action@main

- uses: Swatinem/rust-cache@v2

- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y pkg-config libssl-dev cmake clang llvm
- uses: DeterminateSystems/magic-nix-cache-action@main

- name: Check
run: cargo check --workspace
run: nix develop --command cargo check --workspace

- name: Clippy
run: cargo clippy --workspace -- -D warnings
run: nix develop --command cargo clippy --workspace -- -D warnings

- name: Format
run: cargo fmt --all -- --check
run: nix develop --command cargo fmt --all -- --check

test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: dtolnay/rust-toolchain@stable
with:
toolchain: "1.85.0"

- uses: Swatinem/rust-cache@v2
- uses: DeterminateSystems/nix-installer-action@main

- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y pkg-config libssl-dev cmake clang llvm
- uses: DeterminateSystems/magic-nix-cache-action@main

- name: Test
run: cargo test --workspace
run: nix develop --command cargo test --workspace
43 changes: 42 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 21 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,25 @@
[package]
name = "pack"
[workspace]
members = [
"crates/pack-abi",
"crates/pack-derive",
"crates/pack-guest",
"crates/pack-guest-macros",
]

[workspace.package]
version = "0.2.0"
edition = "2021"

[workspace.dependencies]
pack-abi = { version = "0.2.0", path = "crates/pack-abi" }
pack-derive = { version = "0.2.0", path = "crates/pack-derive" }
pack-guest = { version = "0.2.0", path = "crates/pack-guest" }
pack-guest-macros = { version = "0.2.0", path = "crates/pack-guest-macros" }

[package]
name = "pack"
version.workspace = true
edition.workspace = true
description = "A package runtime with extended WIT support for recursive types"

[[bin]]
Expand Down Expand Up @@ -35,7 +53,7 @@ wasm-encoder = "0.219"
sha2 = "0.10"

# Re-export pack-abi types for unified Value/FromValue/ConversionError
pack-abi = { path = "crates/pack-abi", features = ["std", "serde"] }
pack-abi = { workspace = true, features = ["std", "serde"] }

[dev-dependencies]
wat = "1.0" # For writing test modules in WAT
Expand Down
6 changes: 3 additions & 3 deletions crates/pack-abi/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "pack-abi"
version = "0.1.0"
edition = "2021"
version.workspace = true
edition.workspace = true
description = "Graph-encoded ABI for Pack runtime - supports recursive types"

[features]
Expand All @@ -16,6 +16,6 @@ hashbrown = "0.14"
# SHA-256 for type hashing (no_std compatible)
sha2 = { version = "0.10", default-features = false }
# Optional derive macro
pack-derive = { path = "../pack-derive", optional = true }
pack-derive = { workspace = true, optional = true }
# Optional serde support for host-side usage
serde = { version = "1.0", default-features = false, features = ["derive", "alloc"], optional = true }
Loading
Loading