diff --git a/Cargo.lock b/Cargo.lock index a41117340..1db53330f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,6 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 [[package]] name = "addr2line" @@ -562,8 +562,9 @@ dependencies = [ [[package]] name = "cairo-lang-casm" -version = "2.8.5" -source = "git+https://github.com/starkware-libs/cairo?rev=d453e4197414990ea803190dc2af8375471cbb1f#d453e4197414990ea803190dc2af8375471cbb1f" +version = "2.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bde2a7d6c835c4920ef8a45b30f6e3e3f8d02c36533338eed6faf42b0aca7581" dependencies = [ "cairo-lang-utils", "indoc", @@ -575,8 +576,9 @@ dependencies = [ [[package]] name = "cairo-lang-compiler" -version = "2.8.5" -source = "git+https://github.com/starkware-libs/cairo?rev=d453e4197414990ea803190dc2af8375471cbb1f#d453e4197414990ea803190dc2af8375471cbb1f" +version = "2.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec519da181d4ea9a3184a8a4ec9ed597a6f080c4505717a5fca174e739aff2ec" dependencies = [ "anyhow", "cairo-lang-defs", @@ -600,16 +602,18 @@ dependencies = [ [[package]] name = "cairo-lang-debug" -version = "2.8.5" -source = "git+https://github.com/starkware-libs/cairo?rev=d453e4197414990ea803190dc2af8375471cbb1f#d453e4197414990ea803190dc2af8375471cbb1f" +version = "2.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6be5007f324a01655e3cb68f364ca2ec1b7572680466db87c9a3b79a21719787" dependencies = [ "cairo-lang-utils", ] [[package]] name = "cairo-lang-defs" -version = "2.8.5" -source = "git+https://github.com/starkware-libs/cairo?rev=d453e4197414990ea803190dc2af8375471cbb1f#d453e4197414990ea803190dc2af8375471cbb1f" +version = "2.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ad2380d307ea77b38d76f17a15f5a9ed06ea07418ea55fa0bfde0cef4262231" dependencies = [ "cairo-lang-debug", "cairo-lang-diagnostics", @@ -624,8 +628,9 @@ dependencies = [ [[package]] name = "cairo-lang-diagnostics" -version = "2.8.5" -source = "git+https://github.com/starkware-libs/cairo?rev=d453e4197414990ea803190dc2af8375471cbb1f#d453e4197414990ea803190dc2af8375471cbb1f" +version = "2.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9106d4a80140aa57452d89ffd876f7ee02a106e1a217d6cbb2dbd8c6c47e60d0" dependencies = [ "cairo-lang-debug", "cairo-lang-filesystem", @@ -635,8 +640,9 @@ dependencies = [ [[package]] name = "cairo-lang-doc" -version = "2.8.5" -source = "git+https://github.com/starkware-libs/cairo?rev=d453e4197414990ea803190dc2af8375471cbb1f#d453e4197414990ea803190dc2af8375471cbb1f" +version = "2.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0d908aed4e0d8d4790b3a3435f238574bce5a1793a40de7039cb7e57dd37f020" dependencies = [ "cairo-lang-debug", "cairo-lang-defs", @@ -655,8 +661,9 @@ dependencies = [ [[package]] name = "cairo-lang-eq-solver" -version = "2.8.5" -source = "git+https://github.com/starkware-libs/cairo?rev=d453e4197414990ea803190dc2af8375471cbb1f#d453e4197414990ea803190dc2af8375471cbb1f" +version = "2.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "07f41cf86d0c9cd7e536fb01e557ead81cc87f5821ed8ea14b646a7426312ea6" dependencies = [ "cairo-lang-utils", "good_lp", @@ -664,8 +671,9 @@ dependencies = [ [[package]] name = "cairo-lang-filesystem" -version = "2.8.5" -source = "git+https://github.com/starkware-libs/cairo?rev=d453e4197414990ea803190dc2af8375471cbb1f#d453e4197414990ea803190dc2af8375471cbb1f" +version = "2.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d5a197bb16c9a90f480abbe47046297e715c1db3a1c682f8b1d17d609675278c" dependencies = [ "cairo-lang-debug", "cairo-lang-utils", @@ -679,8 +687,9 @@ dependencies = [ [[package]] name = "cairo-lang-formatter" -version = "2.8.5" -source = "git+https://github.com/starkware-libs/cairo?rev=d453e4197414990ea803190dc2af8375471cbb1f#d453e4197414990ea803190dc2af8375471cbb1f" +version = "2.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cdb25eab8ea9530c6e71defc72761e0e63429a847002c1b843365b420344a06c" dependencies = [ "anyhow", "cairo-lang-diagnostics", @@ -698,8 +707,9 @@ dependencies = [ [[package]] name = "cairo-lang-language-server" -version = "2.8.5" -source = "git+https://github.com/starkware-libs/cairo?rev=d453e4197414990ea803190dc2af8375471cbb1f#d453e4197414990ea803190dc2af8375471cbb1f" +version = "2.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9f549a9579d0e3f34ad1b2b1eed2eae2285a38e4813cb16c8cda89dd0624380" dependencies = [ "anyhow", "cairo-lang-compiler", @@ -743,8 +753,9 @@ dependencies = [ [[package]] name = "cairo-lang-lowering" -version = "2.8.5" -source = "git+https://github.com/starkware-libs/cairo?rev=d453e4197414990ea803190dc2af8375471cbb1f#d453e4197414990ea803190dc2af8375471cbb1f" +version = "2.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "46f6e28e10bdea39560d624a7d8d4cf6979b8121df2e303c2ee6212a8d3df502" dependencies = [ "cairo-lang-debug", "cairo-lang-defs", @@ -820,8 +831,9 @@ checksum = "c49906d6b1c215e5814be7c5c65ecf2328898b335bee8c2409ec07cfb5530daf" [[package]] name = "cairo-lang-parser" -version = "2.8.5" -source = "git+https://github.com/starkware-libs/cairo?rev=d453e4197414990ea803190dc2af8375471cbb1f#d453e4197414990ea803190dc2af8375471cbb1f" +version = "2.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1579124d1e0f0a3cf3d29de7ae690ba86abb3531d75763c9431d4597ed27b3e" dependencies = [ "cairo-lang-diagnostics", "cairo-lang-filesystem", @@ -839,8 +851,9 @@ dependencies = [ [[package]] name = "cairo-lang-plugins" -version = "2.8.5" -source = "git+https://github.com/starkware-libs/cairo?rev=d453e4197414990ea803190dc2af8375471cbb1f#d453e4197414990ea803190dc2af8375471cbb1f" +version = "2.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fa0690d5fc8ee3f89ffc25de189966e20693961dfca330ac42050ecf4c4a0469" dependencies = [ "cairo-lang-defs", "cairo-lang-diagnostics", @@ -855,10 +868,17 @@ dependencies = [ "smol_str", ] +[[package]] +name = "cairo-lang-primitive-token" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "123ac0ecadf31bacae77436d72b88fa9caef2b8e92c89ce63a125ae911a12fae" + [[package]] name = "cairo-lang-proc-macros" -version = "2.8.5" -source = "git+https://github.com/starkware-libs/cairo?rev=d453e4197414990ea803190dc2af8375471cbb1f#d453e4197414990ea803190dc2af8375471cbb1f" +version = "2.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca16796ee01313a77ed176e1583969d76df50453970d1b9407bdaa5d388ea33e" dependencies = [ "cairo-lang-debug", "quote", @@ -867,8 +887,9 @@ dependencies = [ [[package]] name = "cairo-lang-project" -version = "2.8.5" -source = "git+https://github.com/starkware-libs/cairo?rev=d453e4197414990ea803190dc2af8375471cbb1f#d453e4197414990ea803190dc2af8375471cbb1f" +version = "2.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "266ebace89b85b42869ee2967e876bd6cb18bb2a0fe3b4ea5c28d203949e55b4" dependencies = [ "cairo-lang-filesystem", "cairo-lang-utils", @@ -879,8 +900,9 @@ dependencies = [ [[package]] name = "cairo-lang-runnable-utils" -version = "2.8.5" -source = "git+https://github.com/starkware-libs/cairo?rev=d453e4197414990ea803190dc2af8375471cbb1f#d453e4197414990ea803190dc2af8375471cbb1f" +version = "2.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ea44f96ec7cc3bfd8909ff243a0c1d709157a4884af08cacd2566581193c859a" dependencies = [ "cairo-lang-casm", "cairo-lang-sierra", @@ -895,8 +917,9 @@ dependencies = [ [[package]] name = "cairo-lang-runner" -version = "2.8.5" -source = "git+https://github.com/starkware-libs/cairo?rev=d453e4197414990ea803190dc2af8375471cbb1f#d453e4197414990ea803190dc2af8375471cbb1f" +version = "2.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0bb0ed1f611b25c711bc34982599f4ef4a8c8296cb7a674b8cb65d8d635b32fd" dependencies = [ "ark-ff", "ark-secp256k1", @@ -924,8 +947,9 @@ dependencies = [ [[package]] name = "cairo-lang-semantic" -version = "2.8.5" -source = "git+https://github.com/starkware-libs/cairo?rev=d453e4197414990ea803190dc2af8375471cbb1f#d453e4197414990ea803190dc2af8375471cbb1f" +version = "2.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac4c3311d4d7fc2f983c3a6790fed69e6852c69c9d9488c90c853e28b906f712" dependencies = [ "cairo-lang-debug", "cairo-lang-defs", @@ -949,8 +973,9 @@ dependencies = [ [[package]] name = "cairo-lang-sierra" -version = "2.8.5" -source = "git+https://github.com/starkware-libs/cairo?rev=d453e4197414990ea803190dc2af8375471cbb1f#d453e4197414990ea803190dc2af8375471cbb1f" +version = "2.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc454786dd73ffe8fbb598f7beb46b95c94fb112a9e84d4c6642920fd3ab131e" dependencies = [ "anyhow", "cairo-lang-utils", @@ -975,8 +1000,9 @@ dependencies = [ [[package]] name = "cairo-lang-sierra-ap-change" -version = "2.8.5" -source = "git+https://github.com/starkware-libs/cairo?rev=d453e4197414990ea803190dc2af8375471cbb1f#d453e4197414990ea803190dc2af8375471cbb1f" +version = "2.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e18f2c76d88019801d192d2c5d4ede72988b238969ffd2909f3af8d4cc865199" dependencies = [ "cairo-lang-eq-solver", "cairo-lang-sierra", @@ -990,8 +1016,9 @@ dependencies = [ [[package]] name = "cairo-lang-sierra-gas" -version = "2.8.5" -source = "git+https://github.com/starkware-libs/cairo?rev=d453e4197414990ea803190dc2af8375471cbb1f#d453e4197414990ea803190dc2af8375471cbb1f" +version = "2.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8fa4bdd9d6dd37ddecacff755846b6902e85f2b2f28beb4a83184b948fc07995" dependencies = [ "cairo-lang-eq-solver", "cairo-lang-sierra", @@ -1005,8 +1032,9 @@ dependencies = [ [[package]] name = "cairo-lang-sierra-generator" -version = "2.8.5" -source = "git+https://github.com/starkware-libs/cairo?rev=d453e4197414990ea803190dc2af8375471cbb1f#d453e4197414990ea803190dc2af8375471cbb1f" +version = "2.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a8a7cdce1de0ed38d8576100d5091ea6c62a661a49525927fbef3037f768ea18" dependencies = [ "cairo-lang-debug", "cairo-lang-defs", @@ -1028,8 +1056,9 @@ dependencies = [ [[package]] name = "cairo-lang-sierra-to-casm" -version = "2.8.5" -source = "git+https://github.com/starkware-libs/cairo?rev=d453e4197414990ea803190dc2af8375471cbb1f#d453e4197414990ea803190dc2af8375471cbb1f" +version = "2.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "79f9eed2f7518d4c5c17a7e5ec9b0227368258887709c64b65898102045796c5" dependencies = [ "assert_matches", "cairo-lang-casm", @@ -1048,8 +1077,9 @@ dependencies = [ [[package]] name = "cairo-lang-sierra-type-size" -version = "2.8.5" -source = "git+https://github.com/starkware-libs/cairo?rev=d453e4197414990ea803190dc2af8375471cbb1f#d453e4197414990ea803190dc2af8375471cbb1f" +version = "2.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "515f5d4f3feea3490da34401751daee2f40399503de4bd5f9cedebb01539e456" dependencies = [ "cairo-lang-sierra", "cairo-lang-utils", @@ -1057,8 +1087,9 @@ dependencies = [ [[package]] name = "cairo-lang-starknet" -version = "2.8.5" -source = "git+https://github.com/starkware-libs/cairo?rev=d453e4197414990ea803190dc2af8375471cbb1f#d453e4197414990ea803190dc2af8375471cbb1f" +version = "2.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0dfb7780e555c41afb395f85137c02e01ac46dd6a9449600c502879028b77fd8" dependencies = [ "anyhow", "cairo-lang-compiler", @@ -1086,8 +1117,9 @@ dependencies = [ [[package]] name = "cairo-lang-starknet-classes" -version = "2.8.5" -source = "git+https://github.com/starkware-libs/cairo?rev=d453e4197414990ea803190dc2af8375471cbb1f#d453e4197414990ea803190dc2af8375471cbb1f" +version = "2.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c084abc17f16b8c975c23897ff88a5d5df7d9240c241aa92198e4954d5da999" dependencies = [ "cairo-lang-casm", "cairo-lang-sierra", @@ -1108,11 +1140,13 @@ dependencies = [ [[package]] name = "cairo-lang-syntax" -version = "2.8.5" -source = "git+https://github.com/starkware-libs/cairo?rev=d453e4197414990ea803190dc2af8375471cbb1f#d453e4197414990ea803190dc2af8375471cbb1f" +version = "2.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc64c19279354975d45cf325e5618287c7fe01dbcbd0341db0f5429375e3a854" dependencies = [ "cairo-lang-debug", "cairo-lang-filesystem", + "cairo-lang-primitive-token", "cairo-lang-utils", "num-bigint", "num-traits 0.2.19", @@ -1123,8 +1157,9 @@ dependencies = [ [[package]] name = "cairo-lang-syntax-codegen" -version = "2.8.5" -source = "git+https://github.com/starkware-libs/cairo?rev=d453e4197414990ea803190dc2af8375471cbb1f#d453e4197414990ea803190dc2af8375471cbb1f" +version = "2.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "80bede54808f2e5d26a8702711009eefe4a12e5a8f3a427ba9b081073c8e9d36" dependencies = [ "genco", "xshell", @@ -1132,8 +1167,9 @@ dependencies = [ [[package]] name = "cairo-lang-test-plugin" -version = "2.8.5" -source = "git+https://github.com/starkware-libs/cairo?rev=d453e4197414990ea803190dc2af8375471cbb1f#d453e4197414990ea803190dc2af8375471cbb1f" +version = "2.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9bb5a0d6a87a6721e38f6d4a342cf6adf39b08281ea4b20c6e723c5d77df0e12" dependencies = [ "anyhow", "cairo-lang-compiler", @@ -1158,8 +1194,9 @@ dependencies = [ [[package]] name = "cairo-lang-test-runner" -version = "2.8.5" -source = "git+https://github.com/starkware-libs/cairo?rev=d453e4197414990ea803190dc2af8375471cbb1f#d453e4197414990ea803190dc2af8375471cbb1f" +version = "2.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e9c8088d7f808891f132e1c61d370d8c96b51cff7f1c6c00bfd76baf84e9e94" dependencies = [ "anyhow", "cairo-lang-compiler", @@ -1180,8 +1217,9 @@ dependencies = [ [[package]] name = "cairo-lang-test-utils" -version = "2.8.5" -source = "git+https://github.com/starkware-libs/cairo?rev=d453e4197414990ea803190dc2af8375471cbb1f#d453e4197414990ea803190dc2af8375471cbb1f" +version = "2.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d80cf53b879c72dbb73e4a23de0727ed476e6afbd4a706f23eb3e7064d44ff2c" dependencies = [ "cairo-lang-formatter", "cairo-lang-utils", @@ -1192,8 +1230,9 @@ dependencies = [ [[package]] name = "cairo-lang-utils" -version = "2.8.5" -source = "git+https://github.com/starkware-libs/cairo?rev=d453e4197414990ea803190dc2af8375471cbb1f#d453e4197414990ea803190dc2af8375471cbb1f" +version = "2.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3e89f1a4669e07f30a56a20d4bcc4eb43d78675e5bcb9af3bdbcf7f245330114" dependencies = [ "env_logger", "hashbrown 0.14.5", @@ -4879,7 +4918,7 @@ dependencies = [ [[package]] name = "scarb" -version = "2.8.5" +version = "2.9.1" dependencies = [ "anyhow", "assert_fs", @@ -4974,7 +5013,7 @@ dependencies = [ [[package]] name = "scarb-build-metadata" -version = "2.8.5" +version = "2.9.1" dependencies = [ "cargo_metadata", "semver", @@ -4982,7 +5021,7 @@ dependencies = [ [[package]] name = "scarb-cairo-language-server" -version = "2.8.5" +version = "2.9.1" dependencies = [ "assert_fs", "cairo-lang-language-server", @@ -4994,7 +5033,7 @@ dependencies = [ [[package]] name = "scarb-cairo-run" -version = "2.8.5" +version = "2.9.1" dependencies = [ "anyhow", "assert_fs", @@ -5016,7 +5055,7 @@ dependencies = [ [[package]] name = "scarb-cairo-test" -version = "2.8.5" +version = "2.9.1" dependencies = [ "anyhow", "assert_fs", @@ -5036,7 +5075,7 @@ dependencies = [ [[package]] name = "scarb-doc" -version = "2.8.5" +version = "2.9.1" dependencies = [ "anyhow", "assert_fs", diff --git a/Cargo.toml b/Cargo.toml index dfb94a787..27ed0166e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,7 +21,7 @@ members = [ "resolver" = "2" [workspace.package] -version = "2.8.5" +version = "2.9.1" edition = "2021" authors = ["Software Mansion "] @@ -35,25 +35,25 @@ anyhow = "1" assert_fs = "1" async-trait = "0.1" axum = { version = "0.6", features = ["http2"] } -cairo-lang-compiler = { git = "https://github.com/starkware-libs/cairo", rev = "d453e4197414990ea803190dc2af8375471cbb1f" } -cairo-lang-defs = { git = "https://github.com/starkware-libs/cairo", rev = "d453e4197414990ea803190dc2af8375471cbb1f" } -cairo-lang-diagnostics = { git = "https://github.com/starkware-libs/cairo", rev = "d453e4197414990ea803190dc2af8375471cbb1f" } -cairo-lang-doc = { git = "https://github.com/starkware-libs/cairo", rev = "d453e4197414990ea803190dc2af8375471cbb1f" } -cairo-lang-filesystem = { git = "https://github.com/starkware-libs/cairo", rev = "d453e4197414990ea803190dc2af8375471cbb1f" } -cairo-lang-formatter = { git = "https://github.com/starkware-libs/cairo", rev = "d453e4197414990ea803190dc2af8375471cbb1f" } -cairo-lang-language-server = { git = "https://github.com/starkware-libs/cairo", rev = "d453e4197414990ea803190dc2af8375471cbb1f" } -cairo-lang-lowering = { git = "https://github.com/starkware-libs/cairo", rev = "d453e4197414990ea803190dc2af8375471cbb1f" } -cairo-lang-parser = { git = "https://github.com/starkware-libs/cairo", rev = "d453e4197414990ea803190dc2af8375471cbb1f" } -cairo-lang-runner = { git = "https://github.com/starkware-libs/cairo", rev = "d453e4197414990ea803190dc2af8375471cbb1f" } -cairo-lang-semantic = { git = "https://github.com/starkware-libs/cairo", rev = "d453e4197414990ea803190dc2af8375471cbb1f" } -cairo-lang-sierra = { git = "https://github.com/starkware-libs/cairo", rev = "d453e4197414990ea803190dc2af8375471cbb1f" } -cairo-lang-sierra-to-casm = { git = "https://github.com/starkware-libs/cairo", rev = "d453e4197414990ea803190dc2af8375471cbb1f" } -cairo-lang-starknet = { git = "https://github.com/starkware-libs/cairo", rev = "d453e4197414990ea803190dc2af8375471cbb1f" } -cairo-lang-starknet-classes = { git = "https://github.com/starkware-libs/cairo", rev = "d453e4197414990ea803190dc2af8375471cbb1f" } -cairo-lang-syntax = { git = "https://github.com/starkware-libs/cairo", rev = "d453e4197414990ea803190dc2af8375471cbb1f" } -cairo-lang-test-plugin = { git = "https://github.com/starkware-libs/cairo", rev = "d453e4197414990ea803190dc2af8375471cbb1f" } -cairo-lang-test-runner = { git = "https://github.com/starkware-libs/cairo", rev = "d453e4197414990ea803190dc2af8375471cbb1f" } -cairo-lang-utils = { git = "https://github.com/starkware-libs/cairo", rev = "d453e4197414990ea803190dc2af8375471cbb1f", features = ["env_logger"] } +cairo-lang-compiler = "2.9.1" +cairo-lang-defs = "2.9.1" +cairo-lang-diagnostics = "2.9.1" +cairo-lang-doc = "2.9.1" +cairo-lang-filesystem = "2.9.1" +cairo-lang-formatter = "2.9.1" +cairo-lang-language-server = "2.9.1" +cairo-lang-lowering = "2.9.1" +cairo-lang-parser = "2.9.1" +cairo-lang-runner = "2.9.1" +cairo-lang-semantic = "2.9.1" +cairo-lang-sierra = "2.9.1" +cairo-lang-sierra-to-casm = "2.9.1" +cairo-lang-starknet = "2.9.1" +cairo-lang-starknet-classes = "2.9.1" +cairo-lang-syntax = "2.9.1" +cairo-lang-test-plugin = "2.9.1" +cairo-lang-test-runner = "2.9.1" +cairo-lang-utils = { version = "2.9.1", features = ["env_logger"] } camino = { version = "1", features = ["serde1"] } cargo_metadata = ">=0.18" clap = { version = "4", features = ["derive", "env", "string"] } diff --git a/extensions/scarb-doc/src/metadata/compilation.rs b/extensions/scarb-doc/src/metadata/compilation.rs index a178fad15..d9b7c74d1 100644 --- a/extensions/scarb-doc/src/metadata/compilation.rs +++ b/extensions/scarb-doc/src/metadata/compilation.rs @@ -134,6 +134,9 @@ fn get_crate_settings_for_component( coupons: package .experimental_features .contains(&String::from("coupons")), + associated_item_constraints: package + .experimental_features + .contains(&String::from("associated_item_constraints")), }; let dependencies = component diff --git a/scarb/src/compiler/db.rs b/scarb/src/compiler/db.rs index 9b55f2b2f..429dd5813 100644 --- a/scarb/src/compiler/db.rs +++ b/scarb/src/compiler/db.rs @@ -171,6 +171,8 @@ fn build_project_config(unit: &CairoCompilationUnit) -> Result { negative_impls: experimental_features .contains(&SmolStr::new_inline("negative_impls")), coupons: experimental_features.contains(&SmolStr::new_inline("coupons")), + associated_item_constraints: experimental_features + .contains(&SmolStr::new_static("associated_item_constraints")), }, }, ) diff --git a/scarb/tests/metadata.rs b/scarb/tests/metadata.rs index 2e213f023..e33f801d5 100644 --- a/scarb/tests/metadata.rs +++ b/scarb/tests/metadata.rs @@ -1356,7 +1356,9 @@ fn includes_experimental_features() { ProjectBuilder::start() .name("hello") .version("0.1.0") - .manifest_package_extra(r#"experimental-features = ["negative_impls"]"#) + .manifest_package_extra( + r#"experimental-features = ["negative_impls", "associated_item_constraints"]"#, + ) .build(&t); let metadata = Scarb::quick_snapbox() @@ -1367,12 +1369,21 @@ fn includes_experimental_features() { .current_dir(&t) .stdout_json::(); - assert!(packages_by_name(metadata) + let packages = packages_by_name(metadata); + + assert!(packages + .get("hello") + .unwrap() + .clone() + .experimental_features + .contains(&String::from("negative_impls"))); + + assert!(packages .get("hello") .unwrap() .clone() .experimental_features - .contains(&String::from("negative_impls"))) + .contains(&String::from("associated_item_constraints"))); } #[test]