diff --git a/extensions/scarb-cairo-run/tests/arguments.rs b/extensions/scarb-cairo-run/tests/arguments.rs index 1efd71bab..8a622e6ae 100644 --- a/extensions/scarb-cairo-run/tests/arguments.rs +++ b/extensions/scarb-cairo-run/tests/arguments.rs @@ -36,7 +36,7 @@ fn valid_number_of_args() { .success() .stdout_matches(indoc! {r#" Compiling hello v0.1.0 ([..]/Scarb.toml) - Finished release target(s) in [..] + Finished `dev` profile target(s) in [..] Running hello Run completed successfully, returning [987] "#}); @@ -65,7 +65,7 @@ fn can_deserialize_big_number() { .success() .stdout_matches(indoc! {r#" Compiling hello v0.1.0 ([..]/Scarb.toml) - Finished release target(s) in [..] + Finished `dev` profile target(s) in [..] Running hello Run completed successfully, returning [1129815197211541481934112806673325772687763881719835256646064516195041515616] "#}); @@ -87,7 +87,7 @@ fn invalid_number_of_args() { #[cfg(windows)] snapbox.stdout_matches(indoc! {r#" Compiling hello v0.1.0 ([..]/Scarb.toml) - Finished release target(s) in [..] + Finished `dev` profile target(s) in [..] Running hello error: failed to run the function @@ -98,7 +98,7 @@ fn invalid_number_of_args() { #[cfg(not(windows))] snapbox.stdout_matches(indoc! {r#" Compiling hello v0.1.0 ([..]/Scarb.toml) - Finished release target(s) in [..] + Finished `dev` profile target(s) in [..] Running hello error: failed to run the function @@ -123,7 +123,7 @@ fn array_instead_of_felt() { #[cfg(windows)] snapbox.stdout_matches(indoc! {r#" Compiling hello v0.1.0 ([..]Scarb.toml) - Finished release target(s) in [..] + Finished `dev` profile target(s) in [..] Running hello error: failed to run the function @@ -134,7 +134,7 @@ fn array_instead_of_felt() { #[cfg(not(windows))] snapbox.stdout_matches(indoc! {r#" Compiling hello v0.1.0 ([..]Scarb.toml) - Finished release target(s) in [..] + Finished `dev` profile target(s) in [..] Running hello error: failed to run the function @@ -219,7 +219,7 @@ fn struct_deserialization() { .success() .stdout_matches(indoc! {r#" Compiling hello v0.1.0 ([..]/Scarb.toml) - Finished release target(s) in [..] + Finished `dev` profile target(s) in [..] Running hello Run completed successfully, returning [1, 2, 3, 15] "#}); @@ -267,7 +267,7 @@ fn invalid_struct_deserialization() { #[cfg(windows)] snapbox.stdout_matches(indoc! {r#" Compiling hello v0.1.0 ([..]Scarb.toml) - Finished release target(s) in [..] + Finished `dev` profile target(s) in [..] Running hello error: failed to run the function @@ -278,7 +278,7 @@ fn invalid_struct_deserialization() { #[cfg(not(windows))] snapbox.stdout_matches(indoc! {r#" Compiling hello v0.1.0 ([..]Scarb.toml) - Finished release target(s) in [..] + Finished `dev` profile target(s) in [..] Running hello error: failed to run the function @@ -309,7 +309,7 @@ fn can_accept_nested_array() { .success() .stdout_matches(indoc! {r#" [..] Compiling hello v0.1.0 ([..]Scarb.toml) - [..] Finished release target(s) in [..] + [..] Finished `dev` profile target(s) in [..] [..] Running hello [..][0, 1, [[17], [1, 15, 3], [42]]] [..]Run completed successfully, returning [] diff --git a/extensions/scarb-cairo-run/tests/build.rs b/extensions/scarb-cairo-run/tests/build.rs index 25e596f60..acdf8e960 100644 --- a/extensions/scarb-cairo-run/tests/build.rs +++ b/extensions/scarb-cairo-run/tests/build.rs @@ -24,7 +24,7 @@ fn can_run_default_main_function() { .success() .stdout_matches(indoc! {r#" [..]Compiling hello v0.1.0 ([..]Scarb.toml) - [..]Finished release target(s) in [..] + [..]Finished `dev` profile target(s) in [..] [..]Running hello Run completed successfully, returning [42] "#}); @@ -50,7 +50,7 @@ fn can_run_default_main_function_with_plugin() { .success() .stdout_matches(indoc! {r#" [..]Compiling hello v0.1.0 ([..]Scarb.toml) - [..]Finished release target(s) in [..] + [..]Finished `dev` profile target(s) in [..] [..]Running hello Run completed successfully, returning [42] "#}); @@ -77,7 +77,7 @@ fn no_entrypoint_fails() { .failure(), indoc! {r#" [..]Compiling hello v0.1.0 ([..]Scarb.toml) - [..]Finished release target(s) in [..] + [..]Finished `dev` profile target(s) in [..] [..]Running hello error: Function with suffix `::main` to run not found. "#}, @@ -109,7 +109,7 @@ fn no_debug_build_fails() { .failure(), indoc! {r#" [..]Compiling hello v0.1.0 ([..]Scarb.toml) - [..]Finished release target(s) in [..] + [..]Finished `dev` profile target(s) in [..] [..]Running hello error: Function with suffix `::main` to run not found. "#}, @@ -142,7 +142,7 @@ fn can_run_executable() { .success() .stdout_matches(indoc! {r#" [..]Compiling hello v0.1.0 ([..]Scarb.toml) - [..]Finished release target(s) in [..] + [..]Finished `dev` profile target(s) in [..] [..]Running hello Run completed successfully, returning [42] "#}); @@ -174,7 +174,7 @@ fn ambiguous_executables_will_fail() { .failure(), indoc! {r#" [..]Compiling hello v0.1.0 ([..]Scarb.toml) - [..]Finished release target(s) in [..] + [..]Finished `dev` profile target(s) in [..] [..]Running hello error: multiple executable functions found please choose a function to run from the list: @@ -214,7 +214,7 @@ fn ambiguous_executables_will_fail_no_debug_names() { // Note that we cannot list available executables, as we don't know their debug names. indoc! {r#" [..]Compiling hello v0.1.0 ([..]Scarb.toml) - [..]Finished release target(s) in [..] + [..]Finished `dev` profile target(s) in [..] [..]Running hello error: multiple executable functions found please only mark a single function as executable or enable debug ids and choose function by name @@ -296,7 +296,7 @@ fn cannot_choose_non_executable_if_any_present() { .failure(), indoc! {r#" [..]Compiling hello v0.1.0 ([..]Scarb.toml) - [..]Finished release target(s) in [..] + [..]Finished `dev` profile target(s) in [..] [..]Running hello error: Function with suffix `::a` to run not found. "#}, @@ -335,7 +335,7 @@ fn can_choose_executable_to_run() { .success() .stdout_matches(indoc! {r#" [..]Compiling hello v0.1.0 ([..]Scarb.toml) - [..]Finished release target(s) in [..] + [..]Finished `dev` profile target(s) in [..] [..]Running hello Run completed successfully, returning [42] "#}); @@ -363,7 +363,7 @@ fn choose_not_existing_function() { .failure(), indoc! {r#" [..]Compiling hello v0.1.0 ([..]Scarb.toml) - [..]Finished release target(s) in [..] + [..]Finished `dev` profile target(s) in [..] [..]Running hello [..]error: Function with suffix `::b` to run not found. "#}, diff --git a/extensions/scarb-cairo-run/tests/examples.rs b/extensions/scarb-cairo-run/tests/examples.rs index 658f6d7a5..07e62dfbd 100644 --- a/extensions/scarb-cairo-run/tests/examples.rs +++ b/extensions/scarb-cairo-run/tests/examples.rs @@ -27,7 +27,7 @@ fn scarb_build_is_called() { .success() .stdout_matches(indoc! {r#" Compiling hello_world v0.1.0 ([..]/Scarb.toml) - Finished release target(s) in [..] + Finished `dev` profile target(s) in [..] Running hello_world Run completed successfully, returning [987] "#}); @@ -94,7 +94,7 @@ fn can_limit_gas() { .success() .stdout_matches(indoc! {r#" Compiling hello_world v0.1.0 ([..]/Scarb.toml) - Finished release target(s) in [..] + Finished `dev` profile target(s) in [..] Running hello_world Run completed successfully, returning [987] Remaining gas: 58060 @@ -128,7 +128,7 @@ fn can_disable_gas() { #[cfg(windows)] snapbox.stdout_matches(indoc! {r#" Compiling hello_world v0.1.0 ([..]Scarb.toml) - Finished release target(s) in [..] + Finished `dev` profile target(s) in [..] Running hello_world error: program requires gas counter, please provide `--available-gas` argument error: process did not exit successfully: exit code: 1 @@ -136,7 +136,7 @@ fn can_disable_gas() { #[cfg(not(windows))] snapbox.stdout_matches(indoc! {r#" Compiling hello_world v0.1.0 ([..]Scarb.toml) - Finished release target(s) in [..] + Finished `dev` profile target(s) in [..] Running hello_world error: program requires gas counter, please provide `--available-gas` argument "#}); diff --git a/extensions/scarb-cairo-test/tests/build.rs b/extensions/scarb-cairo-test/tests/build.rs index 75e92fc81..2263b4068 100644 --- a/extensions/scarb-cairo-test/tests/build.rs +++ b/extensions/scarb-cairo-test/tests/build.rs @@ -46,7 +46,7 @@ fn can_test_without_gas() { .success() .stdout_matches(indoc! {r#" [..]Compiling test(hello_unittest) hello v1.0.0 ([..]Scarb.toml) - [..]Finished release target(s) in [..] + [..]Finished `dev` profile target(s) in [..] testing hello ... running 1 test test hello::tests::test_foo ... ok @@ -97,7 +97,7 @@ fn can_print_test_resources() { .success() .stdout_matches(indoc! {r#" [..]Compiling test(hello_unittest) hello v1.0.0 ([..]Scarb.toml) - [..]Finished release target(s) in [..] + [..]Finished `dev` profile target(s) in [..] testing hello ... running 1 test test hello::tests::it_works ... ok (gas usage est.: [..]) @@ -149,7 +149,7 @@ fn features_test_build_success() { .stdout_matches(indoc! {r#" [..]Running cairo-test hello [..]Compiling test(hello_unittest) hello v1.0.0 ([..]) - [..]Finished release target(s) in [..] + [..]Finished `dev` profile target(s) in [..] testing hello ... running 1 test test hello::tests::it_works ... ok[..] @@ -234,7 +234,7 @@ fn integration_tests() { .stdout_matches(indoc! {r#" [..]Compiling test(hello_unittest) hello v1.0.0 ([..]Scarb.toml) [..]Compiling test(hello_integrationtest) hello_integrationtest v1.0.0 ([..]Scarb.toml) - [..]Finished release target(s) in [..] + [..]Finished `dev` profile target(s) in [..] testing hello ... running 2 tests test hello_integrationtest::[..]::tests::it_works ... ok (gas usage est.: 42440) @@ -281,7 +281,7 @@ fn warn_if_cairo_test_plugin_missing() { ``` [..]Compiling test(hello_unittest) hello v1.0.0 ([..]Scarb.toml) - [..]Finished release target(s) in [..] + [..]Finished `dev` profile target(s) in [..] testing hello ... running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 filtered out; @@ -333,7 +333,7 @@ fn can_choose_test_kind_to_run() { .success() .stdout_matches(indoc! {r#" [..]Compiling test(hello_unittest) hello v1.0.0 ([..]Scarb.toml) - [..]Finished release target(s) in [..] + [..]Finished `dev` profile target(s) in [..] testing hello ... running 1 test test hello::tests::it_works ... ok (gas usage est.: 42440) @@ -349,7 +349,7 @@ fn can_choose_test_kind_to_run() { .success() .stdout_matches(indoc! {r#" [..]Compiling test(hello_integrationtest) hello_integrationtest v1.0.0 ([..]Scarb.toml) - [..]Finished release target(s) in [..] + [..]Finished `dev` profile target(s) in [..] testing hello ... running 2 tests test hello_integrationtest::[..]::tests::it_works ... ok (gas usage est.: 42440) diff --git a/scarb/src/ops/compile.rs b/scarb/src/ops/compile.rs index c59ec588f..6b5ce295e 100644 --- a/scarb/src/ops/compile.rs +++ b/scarb/src/ops/compile.rs @@ -140,9 +140,10 @@ where } let elapsed_time = HumanDuration(ws.config().elapsed_time()); + let profile = ws.current_profile()?; let formatted_message = match operation_type { - Some(op) => format!("{op} release target(s) in {elapsed_time}"), - None => format!("release target(s) in {elapsed_time}"), + Some(op) => format!("{op} `{profile}` profile target(s) in {elapsed_time}"), + None => format!("`{profile}` profile target(s) in {elapsed_time}"), }; ws.config() .ui() diff --git a/scarb/tests/build.rs b/scarb/tests/build.rs index 9aa4c3498..0a599cb4e 100644 --- a/scarb/tests/build.rs +++ b/scarb/tests/build.rs @@ -405,7 +405,7 @@ fn compile_multiple_packages() { .success() .stdout_matches(indoc! {r#" [..] Compiling fib v1.0.0 ([..]Scarb.toml) - [..] Finished release target(s) in [..] + [..] Finished `dev` profile target(s) in [..] "#}); t.child("target/dev/fib.sierra.json") @@ -489,7 +489,7 @@ fn compile_with_nested_deps() { .success() .stdout_matches(indoc! {r#" [..] Compiling x v1.0.0 ([..]Scarb.toml) - [..] Finished release target(s) in [..] + [..] Finished `dev` profile target(s) in [..] "#}); t.child("target/dev/x.sierra.json") @@ -756,7 +756,7 @@ fn dev_dep_inside_test() { .success() .stdout_matches(indoc! {r#" [..] Compiling x v1.0.0 ([..]) - [..] Finished release target(s) in [..] + [..] Finished `dev` profile target(s) in [..] "#}); } @@ -798,7 +798,7 @@ fn build_test_without_compiling_tests_from_dependencies() { .success() .stdout_matches(indoc! {r#" [..] Compiling test(x_unittest) x v1.0.0 ([..]) - [..] Finished release target(s) in [..] + [..] Finished `dev` profile target(s) in [..] "#}); } @@ -827,7 +827,7 @@ fn warnings_allowed_by_default() { let a = 41; ^ - Finished release target(s) in [..] + Finished `dev` profile target(s) in [..] "#}); } @@ -988,7 +988,7 @@ fn error_codes_shown_in_json_output() { .stdout_matches(indoc! {r#" {"status":"compiling","message":"[..] v1.0.0 ([..]Scarb.toml)"} {"type":"warn","message":"Unused variable. Consider ignoring by prefixing with `_`./n --> [..]lib.cairo:2:9/n let a = 41;/n ^/n","code":"E0001"} - {"status":"finished","message":"release target(s) in [..]"} + {"status":"finished","message":"`dev` profile target(s) in [..]"} "#}); } diff --git a/scarb/tests/build_cairo_plugin.rs b/scarb/tests/build_cairo_plugin.rs index 84c28d6cf..28f46cfbc 100644 --- a/scarb/tests/build_cairo_plugin.rs +++ b/scarb/tests/build_cairo_plugin.rs @@ -142,7 +142,7 @@ fn compile_cairo_plugin() { assert!(stdout.contains("Compiling some v1.0.0")); let lines = stdout.lines().map(ToString::to_string).collect::>(); let (last, lines) = lines.split_last().unwrap(); - assert_matches(r#"[..] Finished release target(s) in [..]"#, last); + assert_matches(r#"[..] Finished `dev` profile target(s) in [..]"#, last); let (last, _lines) = lines.split_last().unwrap(); // Line from Cargo output assert_matches( @@ -171,7 +171,10 @@ fn check_cairo_plugin() { assert!(stdout.contains("Checking some v1.0.0")); let lines = stdout.lines().map(ToString::to_string).collect::>(); let (last, lines) = lines.split_last().unwrap(); - assert_matches(r#"[..] Finished checking release target(s) in [..]"#, last); + assert_matches( + r#"[..] Finished checking `dev` profile target(s) in [..]"#, + last, + ); let (last, _lines) = lines.split_last().unwrap(); // Line from Cargo output assert_matches( @@ -226,7 +229,7 @@ fn can_use_json_output() { ); let (last, lines) = lines.split_last().unwrap(); assert_matches( - r#"{"status":"finished","message":"checking release target(s) in [..]"}"#, + r#"{"status":"finished","message":"checking `dev` profile target(s) in [..]"}"#, last, ); // Line from Cargo. @@ -326,7 +329,7 @@ fn can_emit_plugin_warning() { #[some] ^*****^ - [..]Finished release target(s) in [..] + [..]Finished `dev` profile target(s) in [..] "#}); } @@ -470,7 +473,7 @@ fn can_remove_original_node() { .stdout_matches(indoc! {r#" [..] Compiling some v1.0.0 ([..]Scarb.toml) [..] Compiling hello v1.0.0 ([..]Scarb.toml) - [..]Finished release target(s) in [..] + [..]Finished `dev` profile target(s) in [..] [..]Running hello Run completed successfully, returning [34] "#}); @@ -516,7 +519,7 @@ fn can_replace_original_node() { .stdout_matches(indoc! {r#" [..] Compiling some v1.0.0 ([..]Scarb.toml) [..] Compiling hello v1.0.0 ([..]Scarb.toml) - [..]Finished release target(s) in [..] + [..]Finished `dev` profile target(s) in [..] [..]Running hello Run completed successfully, returning [34] "#}); @@ -588,7 +591,7 @@ fn can_return_aux_data_from_plugin() { [..]Compiling some v1.0.0 ([..]Scarb.toml) [..]Compiling hello v1.0.0 ([..]Scarb.toml) [SomeMacroDataFormat { msg: "Hello from some macro!" }] - [..]Finished release target(s) in [..] + [..]Finished `dev` profile target(s) in [..] "#}); } @@ -638,7 +641,7 @@ fn can_read_token_stream_metadata() { "[..]", ), } - [..]Finished release target(s) in [..] + [..]Finished `dev` profile target(s) in [..] "#}); } @@ -729,7 +732,7 @@ fn can_define_multiple_macros() { [..]Compiling some v1.0.0 ([..]Scarb.toml) [..]Compiling other v1.0.0 ([..]Scarb.toml) [..]Compiling hello v1.0.0 ([..]Scarb.toml) - [..]Finished release target(s) in [..] + [..]Finished `dev` profile target(s) in [..] [..]Running hello Run completed successfully, returning [121] "#}); @@ -932,7 +935,7 @@ fn can_resolve_full_path_markers() { [..]Compiling some v1.0.0 ([..]Scarb.toml) [..]Compiling hello v1.0.0 ([..]Scarb.toml) [FullPathMarker { key: "some-key", full_path: "hello::main" }] - [..]Finished release target(s) in [..] + [..]Finished `dev` profile target(s) in [..] "#}); } @@ -970,7 +973,7 @@ fn can_implement_inline_macro() { .stdout_matches(indoc! {r#" [..] Compiling some v1.0.0 ([..]Scarb.toml) [..] Compiling hello v1.0.0 ([..]Scarb.toml) - [..]Finished release target(s) in [..] + [..]Finished `dev` profile target(s) in [..] [..]Running hello Run completed successfully, returning [34] "#}); @@ -1089,7 +1092,7 @@ fn can_implement_derive_macro() { .stdout_matches(indoc! {r#" [..] Compiling some v1.0.0 ([..]Scarb.toml) [..] Compiling hello v1.0.0 ([..]Scarb.toml) - [..]Finished release target(s) in [..] + [..]Finished `dev` profile target(s) in [..] [..]Running hello Run completed successfully, returning [32] "#}); @@ -1169,7 +1172,7 @@ fn can_use_both_derive_and_attr() { .stdout_matches(indoc! {r#" [..] Compiling some v1.0.0 ([..]Scarb.toml) [..] Compiling hello v1.0.0 ([..]Scarb.toml) - [..]Finished release target(s) in [..] + [..]Finished `dev` profile target(s) in [..] [..]Running hello Run completed successfully, returning [32] "#}); @@ -1220,7 +1223,7 @@ fn can_read_attribute_args() { first: "aaa", second: "bbb", ) - [..]Finished release target(s) in [..] + [..]Finished `dev` profile target(s) in [..] "#}); } @@ -1258,7 +1261,7 @@ fn can_create_executable_attribute() { .stdout_matches(indoc! {r#" [..]Compiling some v1.0.0 ([..]Scarb.toml) [..]Compiling hello v1.0.0 ([..]Scarb.toml) - [..]Finished release target(s) in [..] + [..]Finished `dev` profile target(s) in [..] "#}); let sierra = project .child("target") diff --git a/scarb/tests/build_starknet_contract.rs b/scarb/tests/build_starknet_contract.rs index e68693ee2..04e700592 100644 --- a/scarb/tests/build_starknet_contract.rs +++ b/scarb/tests/build_starknet_contract.rs @@ -42,7 +42,7 @@ fn compile_dep_test_case(hello: &ChildPath, world: &ChildPath, target_extra: &st .success() .stdout_matches(indoc! {r#" [..] Compiling world v0.1.0 ([..]/Scarb.toml) - [..] Finished release target(s) in [..] + [..] Finished `dev` profile target(s) in [..] "#}); } @@ -64,7 +64,7 @@ fn compile_starknet_contract() { .success() .stdout_matches(indoc! {r#" [..] Compiling hello v0.1.0 ([..]) - [..] Finished release target(s) in [..] + [..] Finished `dev` profile target(s) in [..] "#}); assert_eq!( @@ -105,7 +105,7 @@ fn compile_starknet_contract_to_casm() { .success() .stdout_matches(indoc! {r#" [..] Compiling hello v0.1.0 ([..]) - [..] Finished release target(s) in [..] + [..] Finished `dev` profile target(s) in [..] "#}); assert_eq!( @@ -156,7 +156,7 @@ fn compile_many_contracts() { [..] Compiling lib(hello) hello v0.1.0 ([..]) [..] Compiling starknet-contract(a) hello v0.1.0 ([..]) [..] Compiling starknet-contract(b) hello v0.1.0 ([..]) - [..] Finished release target(s) in [..] + [..] Finished `dev` profile target(s) in [..] "#}); assert_eq!( @@ -216,7 +216,7 @@ fn compile_same_name_contracts() { .success() .stdout_matches(indoc! {r#" [..] Compiling hello v0.1.0 ([..]) - [..] Finished release target(s) in [..] + [..] Finished `dev` profile target(s) in [..] "#}); assert_eq!( @@ -259,7 +259,7 @@ fn casm_add_pythonic_hints() { .success() .stdout_matches(indoc! {r#" [..] Compiling hello v0.1.0 ([..]) - [..] Finished release target(s) in [..] + [..] Finished `dev` profile target(s) in [..] "#}); t.child("target/dev/hello_Balance.compiled_contract_class.json") diff --git a/scarb/tests/build_starknet_contract_allowed_libfuncs.rs b/scarb/tests/build_starknet_contract_allowed_libfuncs.rs index 8609c661a..23626d98c 100644 --- a/scarb/tests/build_starknet_contract_allowed_libfuncs.rs +++ b/scarb/tests/build_starknet_contract_allowed_libfuncs.rs @@ -54,7 +54,7 @@ fn default_behaviour() { [[target.starknet-contract]] allowed-libfuncs-list.name = "experimental" - [..] Finished release target(s) in [..] + [..] Finished `dev` profile target(s) in [..] "#}); } @@ -86,7 +86,7 @@ fn check_true() { [[target.starknet-contract]] allowed-libfuncs-list.name = "experimental" - [..] Finished release target(s) in [..] + [..] Finished `dev` profile target(s) in [..] "#}); } @@ -114,7 +114,7 @@ fn check_false() { .success() .stdout_matches(indoc! {r#" [..] Compiling hello v0.1.0 ([..]) - [..] Finished release target(s) in [..] + [..] Finished `dev` profile target(s) in [..] "#}); } @@ -178,7 +178,7 @@ fn pass_named_list() { .success() .stdout_matches(indoc! {r#" [..] Compiling hello v0.1.0 ([..]) - [..] Finished release target(s) in [..] + [..] Finished `dev` profile target(s) in [..] "#}); } @@ -244,7 +244,7 @@ fn list_path() { warn: libfunc `revoke_ap_tracking` is not allowed in the libfuncs list `[..]testing_list.json` --> contract: ExperimentalLibfunc - [..] Finished release target(s) in [..] + [..] Finished `dev` profile target(s) in [..] "#}); } diff --git a/scarb/tests/build_starknet_external_contracts.rs b/scarb/tests/build_starknet_external_contracts.rs index 456be5224..f86dbe7a1 100644 --- a/scarb/tests/build_starknet_external_contracts.rs +++ b/scarb/tests/build_starknet_external_contracts.rs @@ -41,7 +41,7 @@ fn compile_dep_test_case(hello: &ChildPath, world: &ChildPath, target_extra: &st .success() .stdout_matches(indoc! {r#" [..] Compiling world v0.1.0 ([..]/Scarb.toml) - [..] Finished release target(s) in [..] + [..] Finished `dev` profile target(s) in [..] "#}); } @@ -220,7 +220,7 @@ fn build_external_full_path() { .success() .stdout_matches(indoc! {r#" [..] Compiling world v0.1.0 ([..]/Scarb.toml) - [..] Finished release target(s) in [..] + [..] Finished `dev` profile target(s) in [..] "#}); assert_eq!( world.child("target/dev").files(), @@ -384,7 +384,7 @@ fn compile_multiple_with_glob_subpath() { .success() .stdout_matches(indoc! {r#" [..] Compiling x v1.0.0 ([..]Scarb.toml) - [..] Finished release target(s) in [..] + [..] Finished `dev` profile target(s) in [..] "#}); } @@ -482,7 +482,7 @@ fn will_warn_about_unmatched_paths() { .stdout_matches(indoc! {r#" [..] Compiling world v0.1.0 ([..]/Scarb.toml) warn: external contracts not found for selectors: `hello::lorem::mopsum::*` - [..] Finished release target(s) in [..] + [..] Finished `dev` profile target(s) in [..] "#}); assert_eq!( world.child("target/dev").files(), diff --git a/scarb/tests/build_targets.rs b/scarb/tests/build_targets.rs index beac08a05..799c4b48d 100644 --- a/scarb/tests/build_targets.rs +++ b/scarb/tests/build_targets.rs @@ -103,7 +103,7 @@ fn compile_with_custom_lib_target() { .success() .stdout_matches(indoc! {r#" [..] Compiling hello v0.1.0 ([..]) - [..] Finished release target(s) in [..] + [..] Finished `dev` profile target(s) in [..] "#}); t.child("target/dev/not_hello.casm") @@ -146,7 +146,7 @@ fn compile_with_named_default_lib_target() { .success() .stdout_matches(indoc! {r#" [..] Compiling hello v0.1.0 ([..]) - [..] Finished release target(s) in [..] + [..] Finished `dev` profile target(s) in [..] "#}); t.child("target/dev/not_hello.sierra.json") @@ -190,7 +190,7 @@ fn compile_with_lib_target_in_target_array() { .success() .stdout_matches(indoc! {r#" [..] Compiling hello v0.1.0 ([..]) - [..] Finished release target(s) in [..] + [..] Finished `dev` profile target(s) in [..] "#}); t.child("target/dev/not_hello.sierra.json") diff --git a/scarb/tests/check.rs b/scarb/tests/check.rs index f0c159124..82d5f2ac9 100644 --- a/scarb/tests/check.rs +++ b/scarb/tests/check.rs @@ -22,7 +22,7 @@ fn check_simple() { .assert() .stdout_matches(indoc! { r#" [..]Checking hello v0.1.0 ([..]Scarb.toml) - [..]Finished checking release target(s) in [..] + [..]Finished checking `dev` profile target(s) in [..] "# }) .success(); diff --git a/scarb/tests/flock.rs b/scarb/tests/flock.rs index fd7007053..ff2d063cd 100644 --- a/scarb/tests/flock.rs +++ b/scarb/tests/flock.rs @@ -67,7 +67,7 @@ fn locking_build_artifacts() { indoc! {r#" [..] Compiling hello v0.1.0 ([..]) [..] Blocking waiting for file lock on output file - [..] Finished release target(s) in [..] + [..] Finished `dev` profile target(s) in [..] "#}, stdout_acc, ); diff --git a/scarb/tests/git_source.rs b/scarb/tests/git_source.rs index 0d61bc839..86fe2ef77 100644 --- a/scarb/tests/git_source.rs +++ b/scarb/tests/git_source.rs @@ -37,7 +37,7 @@ fn compile_simple_git_dep() { .stdout_matches(indoc! {r#" [..] Updating git repository file://[..]/dep1 [..] Compiling hello v1.0.0 ([..]) - [..] Finished release target(s) in [..] + [..] Finished `dev` profile target(s) in [..] "#}); assert_eq!(t.child("target/dev").files(), vec!["hello.sierra.json"]); @@ -229,7 +229,7 @@ fn stale_cached_version() { .stdout_matches(indoc! {r#" [..] Updating git repository file://[..]/dep [..] Compiling hello v1.0.0 ([..]) - [..] Finished release target(s) in [..] + [..] Finished `dev` profile target(s) in [..] "#}); t.child("target/dev/hello.sierra.json") @@ -245,7 +245,7 @@ fn stale_cached_version() { .success() .stdout_matches(indoc! {r#" [..] Compiling hello v1.0.0 ([..]) - [..] Finished release target(s) in [..] + [..] Finished `dev` profile target(s) in [..] "#}); t.child("target/dev/hello.sierra.json") @@ -267,7 +267,7 @@ fn stale_cached_version() { .stdout_matches(indoc! {r#" [..] Updating git repository file://[..]/dep [..] Compiling hello v1.0.0 ([..]) - [..] Finished release target(s) in [..] + [..] Finished `dev` profile target(s) in [..] "#}); t.child("target/dev/hello.sierra.json") diff --git a/scarb/tests/local_registry.rs b/scarb/tests/local_registry.rs index 3933b4941..ba5ca10cc 100644 --- a/scarb/tests/local_registry.rs +++ b/scarb/tests/local_registry.rs @@ -158,7 +158,7 @@ fn publish() { [..] [..] Verifying {name}-{version}.tar.zst [..] Compiling {name} v{version} ([..]) - [..] Finished release target(s) in [..] + [..] Finished `dev` profile target(s) in [..] [..] Packaged [..] [..] Uploading {name} v{version} (registry+file://[..]/index/) [..] Published {name} v{version} (registry+file://[..]/index/) diff --git a/scarb/tests/package.rs b/scarb/tests/package.rs index a5c27ec14..12dd49db7 100644 --- a/scarb/tests/package.rs +++ b/scarb/tests/package.rs @@ -180,7 +180,7 @@ fn simple() { [..] Packaging foo v1.0.0 [..] [..] Verifying foo-1.0.0.tar.zst [..] Compiling foo v1.0.0 ([..]) - [..] Finished release target(s) in [..] + [..] Finished `dev` profile target(s) in [..] [..] Packaged [..] files, [..] ([..] compressed) "#}); @@ -1322,7 +1322,7 @@ fn package_without_publish_metadata() { [..] Verifying foo-1.0.0.tar.zst [..] Compiling foo v1.0.0 ([..]) - [..] Finished release target(s) in [..] + [..] Finished `dev` profile target(s) in [..] [..] Packaged [..] files, [..] ([..] compressed) "#}); } diff --git a/scarb/tests/profiles.rs b/scarb/tests/profiles.rs index 79bdc1abd..42f2f2b18 100644 --- a/scarb/tests/profiles.rs +++ b/scarb/tests/profiles.rs @@ -48,7 +48,7 @@ fn can_build_release() { -> Scarb.toml [cairo] sierra-replace-ids = true - [..]Finished release target(s) in [..] + [..]Finished `release` profile target(s) in [..] "#}); assert_eq!(t.child("target").files(), vec!["CACHEDIR.TAG", "release"]); diff --git a/scarb/tests/subcommand.rs b/scarb/tests/subcommand.rs index e9d0f4622..9ceafbf27 100644 --- a/scarb/tests/subcommand.rs +++ b/scarb/tests/subcommand.rs @@ -282,6 +282,6 @@ fn cli_verbosity_overrides_env() { .success() .stdout_matches(indoc! {r#" [..]Checking pkg0 v1.0.0 ([..]Scarb.toml) - [..]Finished checking release target(s) in [..] + [..]Finished checking `dev` profile target(s) in [..] "#}); } diff --git a/website/docs/guides/creating-a-new-package.md b/website/docs/guides/creating-a-new-package.md index 476b6ef6e..e93bb6e16 100644 --- a/website/docs/guides/creating-a-new-package.md +++ b/website/docs/guides/creating-a-new-package.md @@ -59,7 +59,7 @@ Let's compile it: ```shell $ scarb build Compiling hello_world v0.1.0 (/path/to/package/hello_world/Scarb.toml) - Finished release target(s) in 2 seconds + Finished `dev` profile target(s) in 2 seconds ``` This will create a Sierra code of your program in `target/dev/hello_world.sierra.json`. @@ -89,7 +89,7 @@ To compile it, simply run the same `build` command as you would for a regular Ca ```shell $ scarb build Compiling hello_world v0.1.0 (/path/to/package/hello_world/Scarb.toml) - Finished release target(s) in 2 seconds + Finished `dev` profile target(s) in 2 seconds ``` This will create a Sierra contract class artifact of your program in `target/dev/hello_world.contract_class.json` diff --git a/website/docs/guides/dependencies.md b/website/docs/guides/dependencies.md index 666b3fa8f..6a0d07f7f 100644 --- a/website/docs/guides/dependencies.md +++ b/website/docs/guides/dependencies.md @@ -47,7 +47,7 @@ $ scarb build Updating git repository https://github.com/keep-starknet-strange/alexandria Updating git repository https://github.com/OpenZeppelin/cairo-contracts Compiling hello_world v0.1.0 (/path/to/package/hello_world/Scarb.toml) - Finished release target(s) in 4 seconds + Finished `dev` profile target(s) in 4 seconds ``` You can now use the `alexandria_math` package in `src/lib.cairo`: diff --git a/website/docs/guides/working-on-an-existing-package.md b/website/docs/guides/working-on-an-existing-package.md index b0c179b1b..fa2103481 100644 --- a/website/docs/guides/working-on-an-existing-package.md +++ b/website/docs/guides/working-on-an-existing-package.md @@ -27,7 +27,7 @@ $ scarb build Compiling alexandria_searching v0.1.0 (/path/to/package/alexandria/src/searching/Scarb.toml) Compiling alexandria_sorting v0.1.0 (/path/to/package/alexandria/src/sorting/Scarb.toml) Compiling alexandria_storage v0.2.0 (/path/to/package/alexandria/src/storage/Scarb.toml) - Finished release target(s) in 5 seconds + Finished `dev` profile target(s) in 5 seconds ``` This will fetch all the dependencies and then build them, along with the package. @@ -46,5 +46,5 @@ $ scarb check Checking alexandria_searching v0.1.0 (/path/to/package/alexandria/src/searching/Scarb.toml) Checking alexandria_sorting v0.1.0 (/path/to/package/alexandria/src/sorting/Scarb.toml) Checking alexandria_storage v0.2.0 (/path/to/package/alexandria/src/storage/Scarb.toml) - Finished checking release target(s) in 4 seconds + Finished checking `dev` profile target(s) in 4 seconds ```