Skip to content

Commit

Permalink
chore: release 0.6.0 (#1124)
Browse files Browse the repository at this point in the history
* rust crates have been released
* upgrade dependencies to v1.18.22. this is the earliest non-yanked
  version for v1.x compatibility.

Co-authored-by: swen <swen-code@swens-MacBook-Air-2.local>
Co-authored-by: Swen <swen.schaeferjohann@code.berlin>
  • Loading branch information
3 people authored Aug 29, 2024
1 parent 69bb242 commit 3ea7aa0
Show file tree
Hide file tree
Showing 9 changed files with 227 additions and 167 deletions.
306 changes: 183 additions & 123 deletions Cargo.lock

Large diffs are not rendered by default.

58 changes: 29 additions & 29 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ overflow-checks = true
opt-level = 2

[workspace.dependencies]
solana-banks-interface = "=1.18.17"
solana-program = "=1.18.17"
solana-sdk = "=1.18.17"
solana-program-test = "=1.18.17"
solana-client = "=1.18.17"
solana-cli-output = "=1.18.17"
solana-transaction-status = "=1.18.17"
solana-account-decoder = "=1.18.17"
solana-rpc = "=1.18.17"
solana-banks-interface = "=1.18.22"
solana-program = "=1.18.22"
solana-sdk = "=1.18.22"
solana-program-test = "=1.18.22"
solana-client = "=1.18.22"
solana-cli-output = "=1.18.22"
solana-transaction-status = "=1.18.22"
solana-account-decoder = "=1.18.22"
solana-rpc = "=1.18.22"

anchor-lang = "=0.29.0"
anchor-spl = "=0.29.0"
Expand All @@ -53,23 +53,23 @@ syn = { version = "2.0", features = ["full"] }
tokio = { version = "1.39.1", features = ["rt", "macros", "rt-multi-thread"] }

[patch.crates-io]
"solana-account-decoder" = { git = "https://github.com/lightprotocol/agave", branch = "v1.18.17-enforce-cpi-tracking" }
"solana-accounts-db" = { git = "https://github.com/lightprotocol/agave", branch = "v1.18.17-enforce-cpi-tracking" }
"solana-banks-client" = { git = "https://github.com/lightprotocol/agave", branch = "v1.18.17-enforce-cpi-tracking" }
"solana-banks-interface" = { git = "https://github.com/lightprotocol/agave", branch = "v1.18.17-enforce-cpi-tracking" }
"solana-banks-server" = { git = "https://github.com/lightprotocol/agave", branch = "v1.18.17-enforce-cpi-tracking" }
"solana-program" = { git = "https://github.com/lightprotocol/agave", branch = "v1.18.17-enforce-cpi-tracking" }
"solana-cli-output" = { git = "https://github.com/lightprotocol/agave", branch = "v1.18.17-enforce-cpi-tracking" }
"solana-program-test" = { git = "https://github.com/lightprotocol/agave", branch = "v1.18.17-enforce-cpi-tracking" }
"solana-program-runtime" = { git = "https://github.com/lightprotocol/agave", branch = "v1.18.17-enforce-cpi-tracking" }
"solana-rpc" = { git = "https://github.com/lightprotocol/agave", branch = "v1.18.17-enforce-cpi-tracking" }
"solana-rpc-client" = { git = "https://github.com/lightprotocol/agave", branch = "v1.18.17-enforce-cpi-tracking" }
"solana-rpc-client-api" = { git = "https://github.com/lightprotocol/agave", branch = "v1.18.17-enforce-cpi-tracking" }
"solana-runtime" = { git = "https://github.com/lightprotocol/agave", branch = "v1.18.17-enforce-cpi-tracking" }
"solana-sdk" = { git = "https://github.com/lightprotocol/agave", branch = "v1.18.17-enforce-cpi-tracking" }
"solana-sdk-macro" = { git = "https://github.com/lightprotocol/agave", branch = "v1.18.17-enforce-cpi-tracking" }
"solana-client" = { git = "https://github.com/lightprotocol/agave", branch = "v1.18.17-enforce-cpi-tracking" }
"solana-zk-token-sdk" = { git = "https://github.com/lightprotocol/agave", branch = "v1.18.17-enforce-cpi-tracking" }
"solana-frozen-abi" = { git = "https://github.com/lightprotocol/agave", branch = "v1.18.17-enforce-cpi-tracking" }
"solana-frozen-abi-macro" = { git = "https://github.com/lightprotocol/agave", branch = "v1.18.17-enforce-cpi-tracking" }
"solana-transaction-status" = { git = "https://github.com/lightprotocol/agave", branch = "v1.18.17-enforce-cpi-tracking" }
"solana-account-decoder" = { git = "https://github.com/lightprotocol/agave", branch = "v1.18.22-enforce-cpi-tracking" }
"solana-accounts-db" = { git = "https://github.com/lightprotocol/agave", branch = "v1.18.22-enforce-cpi-tracking" }
"solana-banks-client" = { git = "https://github.com/lightprotocol/agave", branch = "v1.18.22-enforce-cpi-tracking" }
"solana-banks-interface" = { git = "https://github.com/lightprotocol/agave", branch = "v1.18.22-enforce-cpi-tracking" }
"solana-banks-server" = { git = "https://github.com/lightprotocol/agave", branch = "v1.18.22-enforce-cpi-tracking" }
"solana-program" = { git = "https://github.com/lightprotocol/agave", branch = "v1.18.22-enforce-cpi-tracking" }
"solana-cli-output" = { git = "https://github.com/lightprotocol/agave", branch = "v1.18.22-enforce-cpi-tracking" }
"solana-program-test" = { git = "https://github.com/lightprotocol/agave", branch = "v1.18.22-enforce-cpi-tracking" }
"solana-program-runtime" = { git = "https://github.com/lightprotocol/agave", branch = "v1.18.22-enforce-cpi-tracking" }
"solana-rpc" = { git = "https://github.com/lightprotocol/agave", branch = "v1.18.22-enforce-cpi-tracking" }
"solana-rpc-client" = { git = "https://github.com/lightprotocol/agave", branch = "v1.18.22-enforce-cpi-tracking" }
"solana-rpc-client-api" = { git = "https://github.com/lightprotocol/agave", branch = "v1.18.22-enforce-cpi-tracking" }
"solana-runtime" = { git = "https://github.com/lightprotocol/agave", branch = "v1.18.22-enforce-cpi-tracking" }
"solana-sdk" = { git = "https://github.com/lightprotocol/agave", branch = "v1.18.22-enforce-cpi-tracking" }
"solana-sdk-macro" = { git = "https://github.com/lightprotocol/agave", branch = "v1.18.22-enforce-cpi-tracking" }
"solana-client" = { git = "https://github.com/lightprotocol/agave", branch = "v1.18.22-enforce-cpi-tracking" }
"solana-zk-token-sdk" = { git = "https://github.com/lightprotocol/agave", branch = "v1.18.22-enforce-cpi-tracking" }
"solana-frozen-abi" = { git = "https://github.com/lightprotocol/agave", branch = "v1.18.22-enforce-cpi-tracking" }
"solana-frozen-abi-macro" = { git = "https://github.com/lightprotocol/agave", branch = "v1.18.22-enforce-cpi-tracking" }
"solana-transaction-status" = { git = "https://github.com/lightprotocol/agave", branch = "v1.18.22-enforce-cpi-tracking" }
4 changes: 2 additions & 2 deletions examples/name-service/programs/name-service/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ light-utils = { path = "../../../../utils", version = "0.4.2" }
light-verifier = { path = "../../../../circuit-lib/verifier", version = "0.4.2" }

[target.'cfg(not(target_os = "solana"))'.dependencies]
solana-sdk = "1.18.11"
solana-sdk = { workspace = true }

[dev-dependencies]
light-test-utils = { path = "../../../../test-utils", version = "0.4.2" }
solana-program-test = "1.18.11"
solana-program-test = { workspace = true }
tokio = "1.36.0"
4 changes: 2 additions & 2 deletions js/compressed-token/src/idl/light_compressed_token.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export type LightCompressedToken = {
version: '0.5.0';
version: '0.6.2';
name: 'light_compressed_token';
instructions: [
{
Expand Down Expand Up @@ -1681,7 +1681,7 @@ export type LightCompressedToken = {
];
};
export const IDL: LightCompressedToken = {
version: '0.5.0',
version: '0.6.2',
name: 'light_compressed_token',
instructions: [
{
Expand Down
4 changes: 2 additions & 2 deletions js/stateless.js/src/idls/account_compression.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export type AccountCompression = {
version: '0.5.0';
version: '0.6.2';
name: 'account_compression';
constants: [
{
Expand Down Expand Up @@ -1165,7 +1165,7 @@ export type AccountCompression = {
};

export const IDL: AccountCompression = {
version: '0.5.0',
version: '0.6.2',
name: 'account_compression',
constants: [
{
Expand Down
4 changes: 2 additions & 2 deletions js/stateless.js/src/idls/light_compressed_token.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export type LightCompressedToken = {
version: '0.5.0';
version: '0.6.2';
name: 'light_compressed_token';
instructions: [
{
Expand Down Expand Up @@ -1681,7 +1681,7 @@ export type LightCompressedToken = {
];
};
export const IDL: LightCompressedToken = {
version: '0.5.0',
version: '0.6.2',
name: 'light_compressed_token',
instructions: [
{
Expand Down
4 changes: 2 additions & 2 deletions js/stateless.js/src/idls/light_registry.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export type LightRegistry = {
version: '0.5.0';
version: '0.6.2';
name: 'light_registry';
constants: [
{
Expand Down Expand Up @@ -1296,7 +1296,7 @@ export type LightRegistry = {
};

export const IDL: LightRegistry = {
version: '0.5.0',
version: '0.6.2',
name: 'light_registry',
constants: [
{
Expand Down
4 changes: 2 additions & 2 deletions js/stateless.js/src/idls/light_system_program.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export type LightSystemProgram = {
version: '0.5.0';
version: '0.6.2';
name: 'light_system_program';
constants: [
{
Expand Down Expand Up @@ -1070,7 +1070,7 @@ export type LightSystemProgram = {
};

export const IDL: LightSystemProgram = {
version: '0.5.0',
version: '0.6.2',
name: 'light_system_program',
constants: [
{
Expand Down
6 changes: 3 additions & 3 deletions scripts/release-all-rust-crates.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ echo "Tagging and releasing all Rust projects..."
echo "Logging in to crates.io..."
cargo login "${CRATES_IO_TOKEN}"
# TODO: allow dynamic releases, and add gh release workflow
# PACKAGES=("aligned-sized" "light-heap" "light-bounded-vec" "light-utils" "light-hasher" "light-macros" "light-hash-set" "light-merkle-tree-reference" "light-concurrent-merkle-tree" "light-indexed-merkle-tree" "light-prover-client" "light-verifier" "account-compression" "light-registry" "light-system-program" "light-compressed-token" "light-test-utils" "light-sdk")
PACKAGES=("photon-api" "light-test-utils" "light-sdk")
PACKAGES=("aligned-sized" "light-heap" "light-bounded-vec" "light-utils" "light-hasher" "light-macros" "light-hash-set" "light-merkle-tree-reference" "light-concurrent-merkle-tree" "light-indexed-merkle-tree" "light-prover-client" "light-verifier" "account-compression" "light-system-program" "light-registry" "light-compressed-token" "photon-api" "light-test-utils" "light-sdk")

for PACKAGE in "${PACKAGES[@]}"; do
PKG_VERSION=$(cargo pkgid -p "$PACKAGE" | cut -d "#" -f2)
VERSION=${PKG_VERSION#*@}
Expand All @@ -23,6 +23,6 @@ for PACKAGE in "${PACKAGES[@]}"; do
for attempt in {1..3}; do
echo "Attempt $attempt: Publishing $PACKAGE..."
cargo release publish --package "$PACKAGE" --execute --no-confirm && break || echo "Attempt $attempt failed, retrying in 20..."
sleep 20
sleep 13
done
done

0 comments on commit 3ea7aa0

Please sign in to comment.