Skip to content
Merged
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
4 changes: 2 additions & 2 deletions dagger/rust-sdk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ version = "0.1.0"
edition = "2024"

[dependencies]
dagger-sdk = "0.21.4"
dagger-sdk = "=0.21.12"
eyre = "0.6"
tokio = { version = "1", features = ["macros", "rt-multi-thread"] }
tokio = { version = "1", features = ["macros", "rt-multi-thread"] }
19 changes: 14 additions & 5 deletions dagger/rust-sdk/README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,25 @@
# Dagger Rust SDK for SBOM Tools

This module provides a Rust SDK entrypoint for Dagger-based CI/CD activities focused on the Go/Swift bindings MVP.
This Rust SDK client builds the Linux FFI library and runs ABI and Go checks. The
locked SDK version is 0.21.12, which starts the matching Dagger CLI and engine
when no session is supplied.

Supported commands:

- `build-staticlib`: build debug static library artifact
- `release-staticlib`: build release static library artifact
- `test-abi`: run ABI contract tests
- `ci-all`: run the full MVP CI bundle (default)
- `test-go`: build the release static library once, then run the Go wrapper
suite and focused dedup tests against that library in the Go 1.22 container
- `ci-all`: run the workspace, FFI, ABI and Go checks (default)

Usage:
Run from the repository root with Docker and a stable Rust toolchain:

```sh
cargo run --manifest-path dagger/rust-sdk/Cargo.toml -- ci-all
```
RUSTUP_TOOLCHAIN=stable ./scripts/run-dagger-ci.sh
RUSTUP_TOOLCHAIN=stable ./scripts/run-dagger-ci.sh test-go
```

The second command is the Linux Go pilot. Compare it with the existing native
Ubuntu Go job on the same commit. Native macOS validation uses the GitHub
Actions runner and its own Rust library build.
Loading
Loading