diff --git a/Cargo.toml b/Cargo.toml index b9321a2..4e69ee0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,6 +10,11 @@ repository = "https://github.com/bulletxyz/bullet-rust-sdk" [workspace.dependencies] bon = "3.9.0" bullet-exchange-interface = { version = "0.3", features = ["schema"] } +# Versioned path dep so release-plz cascades rust crate bumps into the wasm +# crate (otherwise a path-only dep is treated as "no version requirement" and +# the wasm crate's version stays frozen while rust bumps). release-plz keeps +# the version field in lockstep with rust/Cargo.toml on every release PR. +bullet-rust-sdk = { path = "rust", version = "0.0.13" } # Optimize WASM binary size without affecting the rust crate [profile.release] lto = true diff --git a/wasm/Cargo.toml b/wasm/Cargo.toml index 4265340..7200a29 100644 --- a/wasm/Cargo.toml +++ b/wasm/Cargo.toml @@ -11,7 +11,7 @@ publish = false # ships to npm as @bulletxyz/sdk-wasm, not crates.io crate-type = ["cdylib", "rlib"] [dependencies] -bullet-rust-sdk = { path = "../rust" } +bullet-rust-sdk = { workspace = true } bullet-exchange-interface.workspace = true wasm-bindgen = "0.2"