Skip to content

Commit

Permalink
Prepare release 2.7.0-rc.2
Browse files Browse the repository at this point in the history
  • Loading branch information
maciektr committed Jul 12, 2024
1 parent 7d3c740 commit 46bb2fd
Show file tree
Hide file tree
Showing 9 changed files with 135 additions and 104 deletions.
169 changes: 100 additions & 69 deletions Cargo.lock

Large diffs are not rendered by default.

50 changes: 25 additions & 25 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ members = [
"resolver" = "2"

[workspace.package]
version = "2.6.4"
version = "2.7.0-rc.2"
edition = "2021"

authors = ["Software Mansion <contact@swmansion.com>"]
Expand All @@ -35,30 +35,30 @@ anyhow = "1"
assert_fs = "1"
async-trait = "0.1"
axum = { version = "0.6", features = ["http2"] }
cairo-lang-casm = { git = "https://github.com/starkware-libs/cairo", rev = "600e495aaaeab66103b1d6e703fc346595b01373" }
cairo-lang-compiler = { git = "https://github.com/starkware-libs/cairo", rev = "600e495aaaeab66103b1d6e703fc346595b01373" }
cairo-lang-debug = { git = "https://github.com/starkware-libs/cairo", rev = "600e495aaaeab66103b1d6e703fc346595b01373" }
cairo-lang-defs = { git = "https://github.com/starkware-libs/cairo", rev = "600e495aaaeab66103b1d6e703fc346595b01373" }
cairo-lang-diagnostics = { git = "https://github.com/starkware-libs/cairo", rev = "600e495aaaeab66103b1d6e703fc346595b01373" }
cairo-lang-doc = { git = "https://github.com/starkware-libs/cairo", rev = "600e495aaaeab66103b1d6e703fc346595b01373" }
cairo-lang-filesystem = { git = "https://github.com/starkware-libs/cairo", rev = "600e495aaaeab66103b1d6e703fc346595b01373" }
cairo-lang-formatter = { git = "https://github.com/starkware-libs/cairo", rev = "600e495aaaeab66103b1d6e703fc346595b01373" }
cairo-lang-language-server = { git = "https://github.com/starkware-libs/cairo", rev = "600e495aaaeab66103b1d6e703fc346595b01373" }
cairo-lang-lowering = { git = "https://github.com/starkware-libs/cairo", rev = "600e495aaaeab66103b1d6e703fc346595b01373" }
cairo-lang-parser = { git = "https://github.com/starkware-libs/cairo", rev = "600e495aaaeab66103b1d6e703fc346595b01373" }
cairo-lang-project = { git = "https://github.com/starkware-libs/cairo", rev = "600e495aaaeab66103b1d6e703fc346595b01373" }
cairo-lang-runner = { git = "https://github.com/starkware-libs/cairo", rev = "600e495aaaeab66103b1d6e703fc346595b01373" }
cairo-lang-semantic = { git = "https://github.com/starkware-libs/cairo", rev = "600e495aaaeab66103b1d6e703fc346595b01373" }
cairo-lang-sierra = { git = "https://github.com/starkware-libs/cairo", rev = "600e495aaaeab66103b1d6e703fc346595b01373" }
cairo-lang-sierra-generator = { git = "https://github.com/starkware-libs/cairo", rev = "600e495aaaeab66103b1d6e703fc346595b01373" }
cairo-lang-sierra-to-casm = { git = "https://github.com/starkware-libs/cairo", rev = "600e495aaaeab66103b1d6e703fc346595b01373" }
cairo-lang-sierra-type-size = { git = "https://github.com/starkware-libs/cairo", rev = "600e495aaaeab66103b1d6e703fc346595b01373" }
cairo-lang-starknet = { git = "https://github.com/starkware-libs/cairo", rev = "600e495aaaeab66103b1d6e703fc346595b01373" }
cairo-lang-starknet-classes = { git = "https://github.com/starkware-libs/cairo", rev = "600e495aaaeab66103b1d6e703fc346595b01373" }
cairo-lang-syntax = { git = "https://github.com/starkware-libs/cairo", rev = "600e495aaaeab66103b1d6e703fc346595b01373" }
cairo-lang-test-plugin = { git = "https://github.com/starkware-libs/cairo", rev = "600e495aaaeab66103b1d6e703fc346595b01373" }
cairo-lang-test-runner = { git = "https://github.com/starkware-libs/cairo", rev = "600e495aaaeab66103b1d6e703fc346595b01373" }
cairo-lang-utils = { git = "https://github.com/starkware-libs/cairo", rev = "600e495aaaeab66103b1d6e703fc346595b01373", features = ["env_logger"] }
cairo-lang-casm = "2.7.0-rc.2"
cairo-lang-compiler = "2.7.0-rc.2"
cairo-lang-debug = "2.7.0-rc.2"
cairo-lang-defs = "2.7.0-rc.2"
cairo-lang-diagnostics = "2.7.0-rc.2"
cairo-lang-doc = "2.7.0-rc.2"
cairo-lang-filesystem = "2.7.0-rc.2"
cairo-lang-formatter = "2.7.0-rc.2"
cairo-lang-language-server = "2.7.0-rc.2"
cairo-lang-lowering = "2.7.0-rc.2"
cairo-lang-parser = "2.7.0-rc.2"
cairo-lang-project = "2.7.0-rc.2"
cairo-lang-runner = "2.7.0-rc.2"
cairo-lang-semantic = "2.7.0-rc.2"
cairo-lang-sierra = "2.7.0-rc.2"
cairo-lang-sierra-generator = "2.7.0-rc.2"
cairo-lang-sierra-to-casm = "2.7.0-rc.2"
cairo-lang-sierra-type-size = "2.7.0-rc.2"
cairo-lang-starknet = "2.7.0-rc.2"
cairo-lang-starknet-classes = "2.7.0-rc.2"
cairo-lang-syntax = "2.7.0-rc.2"
cairo-lang-test-plugin = "2.7.0-rc.2"
cairo-lang-test-runner = "2.7.0-rc.2"
cairo-lang-utils = { version = "2.7.0-rc.2", features = ["env_logger"] }
camino = { version = "1", features = ["serde1"] }
cargo_metadata = ">=0.18"
clap = { version = "4", features = ["derive", "env", "string"] }
Expand Down
2 changes: 1 addition & 1 deletion examples/dependencies/Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ version = "0.1.0"
alexandria_math = { git = "https://github.com/keep-starknet-strange/alexandria.git" }

[dev-dependencies]
cairo_test = "2.6.4"
cairo_test = "2.7.0-rc.2"
2 changes: 1 addition & 1 deletion examples/hello_world/Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ edition = "2023_10"
[dependencies]

[dev-dependencies]
cairo_test = "2.6.4"
cairo_test = "2.7.0-rc.2"
4 changes: 2 additions & 2 deletions examples/starknet_hello_world/Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ version = "0.1.0"
# See more keys and their definitions at https://docs.swmansion.com/scarb/docs/reference/manifest.html

[dependencies]
starknet = "2.6.4"
starknet = "2.7.0-rc.2"

[dev-dependencies]
cairo_test = "2.6.4"
cairo_test = "2.7.0-rc.2"

[[target.starknet-contract]]
4 changes: 2 additions & 2 deletions examples/starknet_multiple_contracts/Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ version = "0.1.0"
# See more keys and their definitions at https://docs.swmansion.com/scarb/docs/reference/manifest.html

[dependencies]
starknet = "2.6.4"
starknet = "2.7.0-rc.2"

[dev-dependencies]
cairo_test = "2.6.4"
cairo_test = "2.7.0-rc.2"

[[target.starknet-contract]]
4 changes: 2 additions & 2 deletions examples/workspaces/Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ test = "snforge"
exit_first = true

[workspace.dependencies]
cairo_test = "2.6.4"
starknet = "2.6.4"
cairo_test = "2.7.0-rc.2"
starknet = "2.7.0-rc.2"

[workspace.package]
version = "0.1.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ fn insert_lib_entrypoint_content_into_db(
let module_id = ModuleId::CrateRoot(main_crate_id);
let file_id = db.module_main_file(module_id).unwrap();
db.as_files_group_mut()
.override_file_content(file_id, Some(Arc::new(lib_content.to_string())));
.override_file_content(file_id, Some(Arc::from(lib_content)));

main_crate_id
}
Expand Down
2 changes: 1 addition & 1 deletion scarb/src/compiler/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ fn inject_virtual_wrapper_lib(db: &mut RootDatabase, unit: &CairoCompilationUnit
let file_id = db.module_main_file(module_id).unwrap();
// Inject virtual lib file wrapper.
db.as_files_group_mut()
.override_file_content(file_id, Some(Arc::new(content)));
.override_file_content(file_id, Some(Arc::from(content.as_str())));
}

Ok(())
Expand Down

0 comments on commit 46bb2fd

Please sign in to comment.