You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using cairo-lang-starknet as a dependency in your own Rust crate it turns out that cairo-lang-casm does not build.
The problem stems from the fact that cairo-* crates depend at a workspace level on
cairo-vm = "0.1.0"
which means that all cairo-vm versions from the range >= 0.1.0 && <0.2.0are valid here.
Unfortunately cairo-vm version 0.1.1 introduces breaking changes and thus cairo-lang-starknet (among others) fails to build.
To Reproduce
Steps to reproduce the behavior:
cargo new --lib example
cd example/
cargo add cairo-lang-starknet
cargo check
Cargo check fails.
Expected behavior
Cargo check passes.
Additional context
I imagine that cairo-vm 0.1.1 could be for yanked and re-released as 0.2.0 on crates.io which would fix all depending crates that use the cairo-vm = "0.1.0" dependency.
Right now I am using a fork of cairo which forces "=0.1.0" for cairo-vm.
The text was updated successfully, but these errors were encountered:
Hi @CHr15F0x, we are working on a better fix for this issue. For now your approach seems like the best option. We are going to update the README to include this!
Describe the bug
When using cairo-lang-starknet as a dependency in your own Rust crate it turns out that cairo-lang-casm does not build.
The problem stems from the fact that
cairo-*
crates depend at a workspace level onwhich means that all
cairo-vm
versions from the range>= 0.1.0 && <0.2.0
are valid here.Unfortunately
cairo-vm
version0.1.1
introduces breaking changes and thuscairo-lang-starknet
(among others) fails to build.To Reproduce
Steps to reproduce the behavior:
Cargo check fails.
Expected behavior
Cargo check passes.
Additional context
I imagine that
cairo-vm 0.1.1
could be for yanked and re-released as0.2.0
on crates.io which would fix all depending crates that use thecairo-vm = "0.1.0"
dependency.Right now I am using a fork of cairo which forces
"=0.1.0"
forcairo-vm
.The text was updated successfully, but these errors were encountered: