Skip to content

Commit 437d128

Browse files
Release 0.44.0 (#3407)
<!-- Reference any GitHub issues resolved by this PR --> Closes #3344 ## Introduced changes <!-- A brief description of the changes --> - ## Checklist <!-- Make sure all of these are complete --> - [ ] Linked relevant issue - [ ] Updated relevant documentation - [ ] Added relevant tests - [ ] Performed self-review of the code - [ ] Added changes to `CHANGELOG.md` --------- Co-authored-by: Franciszek Job <54181625+franciszekjob@users.noreply.github.com>
1 parent 32302f6 commit 437d128

File tree

14 files changed

+100
-67
lines changed

14 files changed

+100
-67
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [0.44.0] - 2025-05-26
11+
1012
### Forge
1113

1214
#### Changed
@@ -21,6 +23,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2123

2224
### Cast
2325

26+
#### Added
27+
28+
- Displaying the path of the config file when adding a new profile
29+
2430
#### Changed
2531

2632
- OpenZeppelin account updated to v1.0.0 [preset](https://docs.openzeppelin.com/contracts-cairo/1.0.0/api/account#AccountUpgradeable)

Cargo.lock

Lines changed: 49 additions & 44 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ members = [
2121
exclude = ["crates/snforge-scarb-plugin"]
2222

2323
[workspace.package]
24-
version = "0.43.1"
24+
version = "0.44.0"
2525
edition = "2024"
2626
repository = "https://github.com/foundry-rs/starknet-foundry"
2727
license = "MIT"

crates/forge/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const MINIMAL_SCARB_VERSION_PREBUILT_PLUGIN: Version = Version::new(2, 10, 0);
4242
const MINIMAL_USC_VERSION: Version = Version::new(2, 0, 0);
4343
const MINIMAL_SCARB_VERSION_FOR_SIERRA_GAS: Version = Version::new(2, 10, 0);
4444
// TODO(#3344) Set this to 0.44.0 after it has been released
45-
const MINIMAL_SNFORGE_STD_VERSION: Version = Version::new(0, 43, 0);
45+
const MINIMAL_SNFORGE_STD_VERSION: Version = Version::new(0, 44, 0);
4646

4747
#[derive(Parser, Debug)]
4848
#[command(
Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

crates/forge/tests/e2e/running.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -824,11 +824,10 @@ fn incompatible_snforge_std_version_error() {
824824

825825
let output = test_runner(&temp).assert().failure();
826826

827-
// TODO Update this to 0.44.0 after it has been released
828827
assert_stdout_contains(
829828
output,
830829
indoc! {r"
831-
[ERROR] Package snforge_std version does not meet the minimum required version >=0.43.0. Please upgrade snforge_std in Scarb.toml
830+
[ERROR] Package snforge_std version does not meet the minimum required version >=0.44.0. Please upgrade snforge_std in Scarb.toml
832831
"},
833832
);
834833
}

crates/forge/tests/e2e/templates.rs

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
use std::fs;
2-
31
use super::common::runner::runner;
42
use assert_fs::prelude::PathChild;
53
use camino::Utf8PathBuf;
64
use forge::Template;
75
use packages_validation::check_and_lint;
6+
use scarb_api::ScarbCommand;
7+
use std::fs;
8+
use std::process::Stdio;
89
use test_case::test_case;
910
use toml_edit::DocumentMut;
1011

@@ -14,8 +15,12 @@ use toml_edit::DocumentMut;
1415
fn validate_templates(template: &Template) {
1516
let temp_dir = assert_fs::TempDir::new().expect("Unable to create a temporary directory");
1617
let package_name = format!("{}_test", template.to_string().replace('-', "_"));
18+
let snforge_std = Utf8PathBuf::from("../../snforge_std")
19+
.canonicalize_utf8()
20+
.unwrap();
1721

1822
runner(&temp_dir)
23+
.env("DEV_DISABLE_SNFORGE_STD_DEPENDENCY", "true")
1924
.args([
2025
"new",
2126
"--template",
@@ -29,6 +34,24 @@ fn validate_templates(template: &Template) {
2934
let package_path = Utf8PathBuf::from_path_buf(package_path.to_path_buf())
3035
.expect("Failed to convert to Utf8PathBuf");
3136

37+
let scarb_add = ScarbCommand::new()
38+
.current_dir(&package_path)
39+
.args([
40+
"add",
41+
"snforge_std",
42+
"--dev",
43+
"--path",
44+
snforge_std.as_str(),
45+
])
46+
.command()
47+
.stdout(Stdio::inherit())
48+
.stderr(Stdio::inherit())
49+
.spawn()
50+
.expect("Failed to run scarb add")
51+
.wait()
52+
.expect("Failed to wait for scarb add");
53+
assert!(scarb_add.success(), "Failed to add snforge_std to package");
54+
3255
// Overwrite Scarb.toml with `allow-warnings = false`
3356
let scarb_toml_path = package_path.join("Scarb.toml");
3457
let mut scarb_toml = fs::read_to_string(&scarb_toml_path)

0 commit comments

Comments
 (0)