Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
11 changes: 9 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,20 @@ jobs:
exit 1
fi

- name: Verify all crates use workspace version
- name: Verify all publishable crates use workspace version
Comment thread
arkrishn94 marked this conversation as resolved.
run: |
bad_crates=()
for manifest in $(cargo metadata --no-deps --format-version 1 | jq -r '.packages[].manifest_path'); do
dir=$(dirname "$manifest")
name=$(basename "$dir")
if [ "$manifest" != "$(pwd)/Cargo.toml" ] && ! grep -qE 'version\s*=\s*\{\s*workspace\s*=\s*true\s*\}|version\.workspace\s*=\s*true' "$manifest"; then
# Skip the root manifest and crates with publish = false
if [ "$manifest" = "$(pwd)/Cargo.toml" ]; then
continue
fi
if grep -qE '^\s*publish\s*=\s*false' "$manifest"; then
continue
fi
if ! grep -qE 'version\s*=\s*\{\s*workspace\s*=\s*true\s*\}|version\.workspace\s*=\s*true' "$manifest"; then
bad_crates+=("$name")
fi
done
Expand Down
30 changes: 15 additions & 15 deletions Cargo.lock

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

28 changes: 14 additions & 14 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ default-members = [
resolver = "3"

[workspace.package]
version = "0.50.1" # Obeying semver
version = "0.51.0" # Obeying semver
Comment thread
arkrishn94 marked this conversation as resolved.
description = "DiskANN is a fast approximate nearest neighbor search library for high dimensional data"
authors = ["Microsoft"]
documentation = "https://github.com/microsoft/DiskANN"
Expand All @@ -48,22 +48,22 @@ undocumented_unsafe_blocks = "warn"

[workspace.dependencies]
# Base And Numerics
diskann-wide = { path = "diskann-wide", version = "0.50.1" }
diskann-vector = { path = "diskann-vector", version = "0.50.1" }
diskann-linalg = { path = "diskann-linalg", version = "0.50.1" }
diskann-utils = { path = "diskann-utils", default-features = false, version = "0.50.1" }
diskann-quantization = { path = "diskann-quantization", default-features = false, version = "0.50.1" }
diskann-platform = { path = "diskann-platform", version = "0.50.1" }
diskann-wide = { path = "diskann-wide", version = "0.51.0" }
diskann-vector = { path = "diskann-vector", version = "0.51.0" }
diskann-linalg = { path = "diskann-linalg", version = "0.51.0" }
diskann-utils = { path = "diskann-utils", default-features = false, version = "0.51.0" }
diskann-quantization = { path = "diskann-quantization", default-features = false, version = "0.51.0" }
diskann-platform = { path = "diskann-platform", version = "0.51.0" }
# Algorithm
diskann = { path = "diskann", version = "0.50.1" }
diskann = { path = "diskann", version = "0.51.0" }
# Providers
diskann-providers = { path = "diskann-providers", default-features = false, version = "0.50.1" }
diskann-disk = { path = "diskann-disk", version = "0.50.1" }
diskann-label-filter = { path = "diskann-label-filter", version = "0.50.1" }
diskann-providers = { path = "diskann-providers", default-features = false, version = "0.51.0" }
diskann-disk = { path = "diskann-disk", version = "0.51.0" }
diskann-label-filter = { path = "diskann-label-filter", version = "0.51.0" }
# Infra
diskann-benchmark-runner = { path = "diskann-benchmark-runner", version = "0.50.1" }
diskann-benchmark-core = { path = "diskann-benchmark-core", version = "0.50.1" }
diskann-tools = { path = "diskann-tools", version = "0.50.1" }
diskann-benchmark-runner = { path = "diskann-benchmark-runner", version = "0.51.0" }
diskann-benchmark-core = { path = "diskann-benchmark-core", version = "0.51.0" }
diskann-tools = { path = "diskann-tools", version = "0.51.0" }

# External dependencies (shared versions)
anyhow = "1.0.98"
Expand Down
Loading