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
26 changes: 13 additions & 13 deletions Cargo.lock

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

30 changes: 13 additions & 17 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -154,25 +154,25 @@ ark-std = "0.5"


# Light Protocol
light-hash-set = { version = "2.1.0", path = "program-libs/hash-set" }
light-indexed-merkle-tree = { version = "2.1.0", path = "program-libs/indexed-merkle-tree" }
light-concurrent-merkle-tree = { version = "2.1.0", path = "program-libs/concurrent-merkle-tree" }
light-hash-set = { version = "3.0.0", path = "program-libs/hash-set" }
light-indexed-merkle-tree = { version = "3.0.0", path = "program-libs/indexed-merkle-tree" }
light-concurrent-merkle-tree = { version = "3.0.0", path = "program-libs/concurrent-merkle-tree" }
light-sparse-merkle-tree = { version = "0.1.0", path = "sparse-merkle-tree" }
light-client = { path = "sdk-libs/client", version = "0.14.0" }
light-hasher = { path = "program-libs/hasher", version = "3.1.0" }
light-hasher = { path = "program-libs/hasher", version = "4.0.0" }
light-macros = { path = "program-libs/macros", version = "2.1.0" }
light-merkle-tree-reference = { path = "program-tests/merkle-tree", version = "2.0.0" }
light-merkle-tree-reference = { path = "program-tests/merkle-tree", version = "3.0.0" }
light-heap = { path = "program-libs/heap", version = "2.0.0" }
light-prover-client = { path = "prover/client", version = "2.0.0" }
light-sdk = { path = "sdk-libs/sdk", version = "0.13.0" }
light-sdk-pinocchio = { path = "sdk-libs/sdk-pinocchio", version = "0.13.0" }
light-sdk-macros = { path = "sdk-libs/macros", version = "0.13.0" }
light-sdk-types = { path = "sdk-libs/sdk-types", version = "0.13.0" }
light-compressed-account = { path = "program-libs/compressed-account", version = "0.4.0" }
light-account-checks = { path = "program-libs/account-checks", version = "0.3.0" }
light-verifier = { path = "program-libs/verifier", version = "3.0.0" }
light-zero-copy = { path = "program-libs/zero-copy", version = "0.3.0" }
light-zero-copy-derive = { path = "program-libs/zero-copy-derive", version = "0.3.0" }
light-compressed-account = { path = "program-libs/compressed-account", version = "0.5.0" }
light-account-checks = { path = "program-libs/account-checks", version = "0.4.0" }
light-verifier = { path = "program-libs/verifier", version = "4.0.0" }
light-zero-copy = { path = "program-libs/zero-copy", version = "0.4.0" }
light-zero-copy-derive = { path = "program-libs/zero-copy-derive", version = "0.4.0" }
photon-api = { path = "sdk-libs/photon-api", version = "0.51.0" }
forester-utils = { path = "forester-utils", version = "2.0.0" }
account-compression = { path = "programs/account-compression", version = "2.0.0", features = [
Expand All @@ -192,10 +192,10 @@ create-address-test-program = { path = "program-tests/create-address-test-progra
"cpi",
] }
light-program-test = { path = "sdk-libs/program-test", version = "0.14.0" }
light-batched-merkle-tree = { path = "program-libs/batched-merkle-tree", version = "0.4.2" }
light-merkle-tree-metadata = { path = "program-libs/merkle-tree-metadata", version = "0.4.0" }
light-batched-merkle-tree = { path = "program-libs/batched-merkle-tree", version = "0.5.0" }
light-merkle-tree-metadata = { path = "program-libs/merkle-tree-metadata", version = "0.5.0" }
aligned-sized = { path = "program-libs/aligned-sized", version = "1.1.0" }
light-bloom-filter = { path = "program-libs/bloom-filter", version = "0.3.0" }
light-bloom-filter = { path = "program-libs/bloom-filter", version = "0.4.0" }
light-bounded-vec = { version = "2.0.0" }
light-poseidon = { version = "0.3.0" }
light-test-utils = { path = "program-tests/utils", version = "1.2.1" }
Expand Down Expand Up @@ -248,7 +248,3 @@ dependent-version = "upgrade"
consolidate-commits = false
# Don't verify (skip tests/build checks)
verify = false

[workspace.metadata.release.rate-limit]
new-packages = 5
existing-packages = 5
2 changes: 1 addition & 1 deletion program-libs/account-checks/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "light-account-checks"
version = "0.3.0"
version = "0.4.0"
description = "Checks for solana accounts."
repository = "https://github.com/Lightprotocol/light-protocol"
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion program-libs/batched-merkle-tree/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "light-batched-merkle-tree"
version = "0.4.2"
version = "0.5.0"
description = "Batch Merkle tree implementation."
repository = "https://github.com/Lightprotocol/light-protocol"
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion program-libs/bloom-filter/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "light-bloom-filter"
version = "0.3.0"
version = "0.4.0"
description = "Experimental bloom filter."
repository = "https://github.com/Lightprotocol/light-protocol"
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion program-libs/compressed-account/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "light-compressed-account"
version = "0.4.0"
version = "0.5.0"
description = "Compressed account struct and common utility functions used in Light Protocol."
repository = "https://github.com/Lightprotocol/light-protocol"
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion program-libs/concurrent-merkle-tree/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "light-concurrent-merkle-tree"
version = "2.1.0"
version = "3.0.0"
edition = "2021"
description = "Concurrent Merkle tree implementation"
repository = "https://github.com/Lightprotocol/light-protocol"
Expand Down
2 changes: 1 addition & 1 deletion program-libs/hash-set/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "light-hash-set"
version = "2.1.0"
version = "3.0.0"
description = "Hash set which can be stored on a Solana account"
repository = "https://github.com/Lightprotocol/light-protocol"
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion program-libs/hasher/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "light-hasher"
version = "3.1.0"
version = "4.0.0"
description = "Trait for generic usage of hash functions on Solana"
repository = "https://github.com/Lightprotocol/light-protocol"
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion program-libs/indexed-merkle-tree/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "light-indexed-merkle-tree"
version = "2.1.0"
version = "3.0.0"
description = "Implementation of indexed (and concurrent) Merkle tree in Rust"
repository = "https://github.com/Lightprotocol/light-protocol"
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion program-libs/merkle-tree-metadata/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "light-merkle-tree-metadata"
version = "0.4.0"
version = "0.5.0"
description = "Merkle tree metadata for light-concurrent-merkle-tree, light-indexed-merkle-tree, light-batched-merkle-tree."
repository = "https://github.com/Lightprotocol/light-protocol"
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion program-libs/verifier/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "light-verifier"
version = "3.0.0"
version = "4.0.0"
description = "ZKP proof verifier used in Light Protocol"
repository = "https://github.com/Lightprotocol/light-protocol"
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion program-libs/zero-copy-derive/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "light-zero-copy-derive"
version = "0.3.0"
version = "0.4.0"
edition = "2021"
license = "Apache-2.0"
description = "Proc macro for zero-copy deserialization"
Expand Down
2 changes: 1 addition & 1 deletion program-libs/zero-copy/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "light-zero-copy"
version = "0.3.0"
version = "0.4.0"
description = "Zero copy vector and utils for Solana programs."
repository = "https://github.com/Lightprotocol/light-protocol"
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion program-tests/merkle-tree/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "light-merkle-tree-reference"
version = "2.0.0"
version = "3.0.0"
description = "Non-sparse reference Merkle tree implementation"
repository = "https://github.com/Lightprotocol/light-protocol"
license = "Apache-2.0"
Expand Down
47 changes: 24 additions & 23 deletions scripts/create-release-pr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,36 +103,15 @@ VERSION_CHANGES=$(echo -e "$VERSION_CHANGES")
echo "Version changes:"
echo "$VERSION_CHANGES"

# Create release branch
BRANCH_NAME="release/${RELEASE_TYPE}"
PR_TITLE="chore: bump ${RELEASE_TYPE} versions"

echo "Will create:"
echo " Branch: $BRANCH_NAME"
echo " PR: $PR_TITLE"
echo ""
read -p "Create release branch and PR with these changes? (y/N) " -n 1 -r
echo
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
echo "Cancelled."
exit 1
fi

echo "Creating release branch..."
git checkout -b "$BRANCH_NAME"

# Commit changes
git add -A
git commit -m "chore(${RELEASE_TYPE}): bump versions"

echo ""
echo "========================================="
echo "Running cargo release dry-run validation..."
echo "========================================="
echo ""

# Validate packages using the validation script (comparing against target branch)
if "$SCRIPT_DIR/validate-packages.sh" "$TARGET_BRANCH" "$BRANCH_NAME"; then
# Note: Changes are in working directory but not yet committed
if "$SCRIPT_DIR/validate-packages.sh" "$TARGET_BRANCH" "HEAD"; then
echo ""
echo "All crates validated successfully"
else
Expand All @@ -150,6 +129,28 @@ else
fi
echo ""

# Create release branch
BRANCH_NAME="release/${RELEASE_TYPE}"
PR_TITLE="chore: bump ${RELEASE_TYPE} versions"

echo "Will create:"
echo " Branch: $BRANCH_NAME"
echo " PR: $PR_TITLE"
echo ""
read -p "Create release branch and PR with these changes? (y/N) " -n 1 -r
echo
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
echo "Cancelled."
exit 1
fi

echo "Creating release branch..."
git checkout -b "$BRANCH_NAME"

# Commit changes
git add -A
git commit -m "chore(${RELEASE_TYPE}): bump versions"

# Push branch
echo "Pushing branch to origin..."
git push -u origin "$BRANCH_NAME"
Expand Down
13 changes: 8 additions & 5 deletions scripts/validate-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,20 @@ echo ""
if [ -n "$EXECUTE_FLAG" ]; then
echo "Running: cargo release publish $PACKAGE_ARGS --execute --no-confirm"
else
echo "Running: cargo release publish $PACKAGE_ARGS --allow-branch '*' --no-verify"
echo "Running: cargo publish $PACKAGE_ARGS --dry-run"
fi
echo "----------------------------------------"

# cargo-release handles dependency ordering
# Without --execute: dry-run validation (allow any branch, skip git checks for uncommitted changes)
# With --execute: actual publish to crates.io (requires main or release/* branch and clean working tree)
# Native cargo 1.90.0+ handles dependency ordering for interdependent workspace crates
# Without --execute: dry-run validation using native cargo publish
# With --execute: use cargo-release for actual publish to crates.io
if [ -n "$EXECUTE_FLAG" ]; then
cargo release publish $PACKAGE_ARGS --execute --no-confirm
else
cargo release publish $PACKAGE_ARGS --allow-branch '*' --no-verify
# Use native cargo publish --dry-run with all packages at once
# This allows interdependent workspace crates to validate together
# Allow dirty state and skip verification due to cargo bug with unpublished dep hashes
cargo publish $PACKAGE_ARGS --dry-run --allow-dirty --no-verify
fi

if [ $? -eq 0 ]; then
Expand Down
Loading