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
24 changes: 22 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,17 @@ jobs:
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock', '**/Cargo.toml') }}

- name: Validate lockfile
run: |
cp Cargo.lock Cargo.lock.bak
cargo generate-lockfile
if ! diff -q Cargo.lock Cargo.lock.bak >/dev/null; then
echo "::error::Cargo.lock is out of sync. Run 'cargo update' or 'rm Cargo.lock && cargo build' locally and commit the updated Cargo.lock."
exit 1
fi
rm Cargo.lock.bak

- name: Check formatting
run: cargo fmt --all -- --check
Expand Down Expand Up @@ -78,7 +88,17 @@ jobs:
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock', '**/Cargo.toml') }}

- name: Validate lockfile
run: |
cp Cargo.lock Cargo.lock.bak
cargo generate-lockfile
if ! diff -q Cargo.lock Cargo.lock.bak >/dev/null; then
echo "::error::Cargo.lock is out of sync. Run 'cargo update' or 'rm Cargo.lock && cargo build' locally and commit the updated Cargo.lock."
exit 1
fi
rm Cargo.lock.bak

- name: Run all workspace tests
run: cargo test --workspace
Expand Down
102 changes: 58 additions & 44 deletions Cargo.lock

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

5 changes: 5 additions & 0 deletions asap-common/sketch-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,8 @@ serde.workspace = true
rmp-serde = "1.1"
xxhash-rust = { version = "0.8", features = ["xxh32"] }
dsrs = { git = "https://github.com/ProjectASAP/datasketches-rs" }
sketchlib-rust = { git = "https://github.com/ProjectASAP/sketchlib-rust" }
clap = { version = "4.0", features = ["derive"] }

[dev-dependencies]
ctor = "0.2"
Loading
Loading