From 41ed223497e976ba7329f0a5bfe2041972d7f285 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20M=2E=20Gonz=C3=A1lez?= Date: Wed, 6 Nov 2024 15:27:52 -0300 Subject: [PATCH] Single workspace for test cases. --- .../{token-interface-events => }/Cargo.toml | 8 +++--- test-cases/assert-violation/Cargo.toml | 21 --------------- test-cases/avoid-core-mem-forget/Cargo.toml | 21 --------------- test-cases/avoid-panic-error/Cargo.toml | 21 --------------- test-cases/avoid-unsafe-block/Cargo.toml | 21 --------------- test-cases/divide-before-multiply/Cargo.toml | 21 --------------- test-cases/dos-unbounded-operation/Cargo.toml | 21 --------------- .../Cargo.toml | 21 --------------- test-cases/dynamic-storage/Cargo.toml | 21 --------------- test-cases/front-running/Cargo.toml | 23 ---------------- .../incorrect-exponentiation/Cargo.toml | 21 --------------- .../insufficiently-random-values/Cargo.toml | 21 --------------- .../integer-overflow-or-underflow/Cargo.toml | 21 --------------- test-cases/iterators-over-indexing/Cargo.toml | 21 --------------- .../remediated-example/Cargo.toml | 22 ++++------------ .../vulnerable-example/Cargo.toml | 22 ++++------------ test-cases/set-contract-storage/Cargo.toml | 21 --------------- test-cases/storage-change-events/Cargo.toml | 23 ---------------- .../remediated-example/Cargo.toml | 25 +++--------------- .../vulnerable-example/Cargo.toml | 25 +++--------------- .../token-interface-inference/Cargo.toml | 23 ---------------- .../remediated-example/Cargo.toml | 25 +++--------------- .../vulnerable-example/Cargo.toml | 26 +++---------------- .../unnecessary-admin-parameter/Cargo.toml | 21 --------------- test-cases/unnecessary-lint-allow/Cargo.toml | 21 --------------- .../unprotected-mapping-operation/Cargo.toml | 21 --------------- .../Cargo.toml | 21 --------------- .../unrestricted-transfer-from/Cargo.toml | 21 --------------- test-cases/unsafe-expect/Cargo.toml | 21 --------------- test-cases/unsafe-map-get/Cargo.toml | 21 --------------- test-cases/unsafe-unwrap/Cargo.toml | 21 --------------- test-cases/unused-return-enum/Cargo.toml | 21 --------------- test-cases/vec-could-be-mapping/Cargo.toml | 21 --------------- 33 files changed, 31 insertions(+), 674 deletions(-) rename test-cases/{token-interface-events => }/Cargo.toml (70%) delete mode 100644 test-cases/assert-violation/Cargo.toml delete mode 100644 test-cases/avoid-core-mem-forget/Cargo.toml delete mode 100644 test-cases/avoid-panic-error/Cargo.toml delete mode 100644 test-cases/avoid-unsafe-block/Cargo.toml delete mode 100644 test-cases/divide-before-multiply/Cargo.toml delete mode 100644 test-cases/dos-unbounded-operation/Cargo.toml delete mode 100644 test-cases/dos-unexpected-revert-with-vector/Cargo.toml delete mode 100644 test-cases/dynamic-storage/Cargo.toml delete mode 100644 test-cases/front-running/Cargo.toml delete mode 100644 test-cases/incorrect-exponentiation/Cargo.toml delete mode 100644 test-cases/insufficiently-random-values/Cargo.toml delete mode 100644 test-cases/integer-overflow-or-underflow/Cargo.toml delete mode 100644 test-cases/iterators-over-indexing/Cargo.toml delete mode 100644 test-cases/set-contract-storage/Cargo.toml delete mode 100644 test-cases/storage-change-events/Cargo.toml delete mode 100644 test-cases/token-interface-inference/Cargo.toml delete mode 100644 test-cases/unnecessary-admin-parameter/Cargo.toml delete mode 100644 test-cases/unnecessary-lint-allow/Cargo.toml delete mode 100644 test-cases/unprotected-mapping-operation/Cargo.toml delete mode 100644 test-cases/unprotected-update-current-contract-wasm/Cargo.toml delete mode 100644 test-cases/unrestricted-transfer-from/Cargo.toml delete mode 100644 test-cases/unsafe-expect/Cargo.toml delete mode 100644 test-cases/unsafe-map-get/Cargo.toml delete mode 100644 test-cases/unsafe-unwrap/Cargo.toml delete mode 100644 test-cases/unused-return-enum/Cargo.toml delete mode 100644 test-cases/vec-could-be-mapping/Cargo.toml diff --git a/test-cases/token-interface-events/Cargo.toml b/test-cases/Cargo.toml similarity index 70% rename from test-cases/token-interface-events/Cargo.toml rename to test-cases/Cargo.toml index 03622046..6c2532ea 100644 --- a/test-cases/token-interface-events/Cargo.toml +++ b/test-cases/Cargo.toml @@ -1,8 +1,11 @@ [workspace] -exclude = [".cargo", "target"] -members = ["token-interface-events-*/*"] +exclude = [".cargo", "soroban-version", "target"] +members = ["*/*/vulnerable-example", "*/*/remediated-example"] resolver = "2" +[workspace.package] +edition = "2021" + [workspace.dependencies] soroban-sdk = { version = "=21.7.6" } soroban-token-sdk = { version = "=21.7.6" } @@ -20,4 +23,3 @@ strip = "symbols" [profile.release-with-logs] debug-assertions = true inherits = "release" - diff --git a/test-cases/assert-violation/Cargo.toml b/test-cases/assert-violation/Cargo.toml deleted file mode 100644 index be5ff97b..00000000 --- a/test-cases/assert-violation/Cargo.toml +++ /dev/null @@ -1,21 +0,0 @@ -[workspace] -exclude = [".cargo", "target"] -members = ["assert-violation-*/*"] -resolver = "2" - -[workspace.dependencies] -soroban-sdk = { version = "=21.7.6" } - -[profile.release] -codegen-units = 1 -debug = 0 -debug-assertions = false -lto = true -opt-level = "z" -overflow-checks = true -panic = "abort" -strip = "symbols" - -[profile.release-with-logs] -debug-assertions = true -inherits = "release" diff --git a/test-cases/avoid-core-mem-forget/Cargo.toml b/test-cases/avoid-core-mem-forget/Cargo.toml deleted file mode 100644 index 9858f1af..00000000 --- a/test-cases/avoid-core-mem-forget/Cargo.toml +++ /dev/null @@ -1,21 +0,0 @@ -[workspace] -exclude = [".cargo", "target"] -members = ["avoid-core-mem-forget-*/*"] -resolver = "2" - -[workspace.dependencies] -soroban-sdk = { version = "=21.4.0" } - -[profile.release] -codegen-units = 1 -debug = 0 -debug-assertions = false -lto = true -opt-level = "z" -overflow-checks = true -panic = "abort" -strip = "symbols" - -[profile.release-with-logs] -debug-assertions = true -inherits = "release" diff --git a/test-cases/avoid-panic-error/Cargo.toml b/test-cases/avoid-panic-error/Cargo.toml deleted file mode 100644 index 4e7a72b0..00000000 --- a/test-cases/avoid-panic-error/Cargo.toml +++ /dev/null @@ -1,21 +0,0 @@ -[workspace] -exclude = [".cargo", "target"] -members = ["avoid-panic-error-*/*"] -resolver = "2" - -[workspace.dependencies] -soroban-sdk = { version = "=21.7.6" } - -[profile.release] -codegen-units = 1 -debug = 0 -debug-assertions = false -lto = true -opt-level = "z" -overflow-checks = true -panic = "abort" -strip = "symbols" - -[profile.release-with-logs] -debug-assertions = true -inherits = "release" diff --git a/test-cases/avoid-unsafe-block/Cargo.toml b/test-cases/avoid-unsafe-block/Cargo.toml deleted file mode 100644 index 25ba830e..00000000 --- a/test-cases/avoid-unsafe-block/Cargo.toml +++ /dev/null @@ -1,21 +0,0 @@ -[workspace] -exclude = [".cargo", "target"] -members = ["avoid-unsafe-block-*/*"] -resolver = "2" - -[workspace.dependencies] -soroban-sdk = { version = "=21.4.0" } - -[profile.release] -codegen-units = 1 -debug = 0 -debug-assertions = false -lto = true -opt-level = "z" -overflow-checks = true -panic = "abort" -strip = "symbols" - -[profile.release-with-logs] -debug-assertions = true -inherits = "release" diff --git a/test-cases/divide-before-multiply/Cargo.toml b/test-cases/divide-before-multiply/Cargo.toml deleted file mode 100644 index c01e744c..00000000 --- a/test-cases/divide-before-multiply/Cargo.toml +++ /dev/null @@ -1,21 +0,0 @@ -[workspace] -exclude = [".cargo", "target"] -members = ["divide-before-multiply-*/*"] -resolver = "2" - -[workspace.dependencies] -soroban-sdk = { version = "=21.4.0" } - -[profile.release] -codegen-units = 1 -debug = 0 -debug-assertions = false -lto = true -opt-level = "z" -overflow-checks = true -panic = "abort" -strip = "symbols" - -[profile.release-with-logs] -debug-assertions = true -inherits = "release" diff --git a/test-cases/dos-unbounded-operation/Cargo.toml b/test-cases/dos-unbounded-operation/Cargo.toml deleted file mode 100644 index 3bbb7890..00000000 --- a/test-cases/dos-unbounded-operation/Cargo.toml +++ /dev/null @@ -1,21 +0,0 @@ -[workspace] -exclude = [".cargo", "target"] -members = ["dos-unbounded-operation-*/*"] -resolver = "2" - -[workspace.dependencies] -soroban-sdk = { version = "=21.4.0" } - -[profile.release] -codegen-units = 1 -debug = 0 -debug-assertions = false -lto = true -opt-level = "z" -overflow-checks = true -panic = "abort" -strip = "symbols" - -[profile.release-with-logs] -debug-assertions = true -inherits = "release" diff --git a/test-cases/dos-unexpected-revert-with-vector/Cargo.toml b/test-cases/dos-unexpected-revert-with-vector/Cargo.toml deleted file mode 100644 index eb91610f..00000000 --- a/test-cases/dos-unexpected-revert-with-vector/Cargo.toml +++ /dev/null @@ -1,21 +0,0 @@ -[workspace] -exclude = [".cargo", "target"] -members = ["dos-unexpected-revert-with-vector-*/*"] -resolver = "2" - -[workspace.dependencies] -soroban-sdk = { version = "=21.4.0" } - -[profile.release] -codegen-units = 1 -debug = 0 -debug-assertions = false -lto = true -opt-level = "z" -overflow-checks = true -panic = "abort" -strip = "symbols" - -[profile.release-with-logs] -debug-assertions = true -inherits = "release" diff --git a/test-cases/dynamic-storage/Cargo.toml b/test-cases/dynamic-storage/Cargo.toml deleted file mode 100644 index 6ac24264..00000000 --- a/test-cases/dynamic-storage/Cargo.toml +++ /dev/null @@ -1,21 +0,0 @@ -[workspace] -exclude = [".cargo", "target"] -members = ["dynamic-storage-*/*"] -resolver = "2" - -[workspace.dependencies] -soroban-sdk = { version = "=21.5.1" } - -[profile.release] -codegen-units = 1 -debug = 0 -debug-assertions = false -lto = true -opt-level = "z" -overflow-checks = true -panic = "abort" -strip = "symbols" - -[profile.release-with-logs] -debug-assertions = true -inherits = "release" diff --git a/test-cases/front-running/Cargo.toml b/test-cases/front-running/Cargo.toml deleted file mode 100644 index 34dcc421..00000000 --- a/test-cases/front-running/Cargo.toml +++ /dev/null @@ -1,23 +0,0 @@ -[workspace] -exclude = [".cargo", "target"] -members = ["front-running-*/*"] -resolver = "2" - -[workspace.dependencies] -soroban-sdk = { version = "=21.7.6" } -soroban-token-sdk = { version = "=21.7.6" } - -[profile.release] -codegen-units = 1 -debug = 0 -debug-assertions = false -lto = true -opt-level = "z" -overflow-checks = true -panic = "abort" -strip = "symbols" - -[profile.release-with-logs] -debug-assertions = true -inherits = "release" - diff --git a/test-cases/incorrect-exponentiation/Cargo.toml b/test-cases/incorrect-exponentiation/Cargo.toml deleted file mode 100644 index 4e28b497..00000000 --- a/test-cases/incorrect-exponentiation/Cargo.toml +++ /dev/null @@ -1,21 +0,0 @@ -[workspace] -exclude = [".cargo", "target"] -members = ["incorrect-exponentiation-*/*"] -resolver = "2" - -[workspace.dependencies] -soroban-sdk = { version = "=21.4.0" } - -[profile.release] -codegen-units = 1 -debug = 0 -debug-assertions = false -lto = true -opt-level = "z" -overflow-checks = true -panic = "abort" -strip = "symbols" - -[profile.release-with-logs] -debug-assertions = true -inherits = "release" diff --git a/test-cases/insufficiently-random-values/Cargo.toml b/test-cases/insufficiently-random-values/Cargo.toml deleted file mode 100644 index 9433190f..00000000 --- a/test-cases/insufficiently-random-values/Cargo.toml +++ /dev/null @@ -1,21 +0,0 @@ -[workspace] -exclude = [".cargo", "target"] -members = ["insufficiently-random-values-*/*"] -resolver = "2" - -[workspace.dependencies] -soroban-sdk = { version = "=21.4.0" } - -[profile.release] -codegen-units = 1 -debug = 0 -debug-assertions = false -lto = true -opt-level = "z" -overflow-checks = true -panic = "abort" -strip = "symbols" - -[profile.release-with-logs] -debug-assertions = true -inherits = "release" diff --git a/test-cases/integer-overflow-or-underflow/Cargo.toml b/test-cases/integer-overflow-or-underflow/Cargo.toml deleted file mode 100644 index 9480a3e6..00000000 --- a/test-cases/integer-overflow-or-underflow/Cargo.toml +++ /dev/null @@ -1,21 +0,0 @@ -[workspace] -exclude = [".cargo", "target"] -members = ["integer-overflow-or-underflow-*/*"] -resolver = "2" - -[workspace.dependencies] -soroban-sdk = { version = "=21.7.6" } - -[profile.release] -codegen-units = 1 -debug = 0 -debug-assertions = false -lto = true -opt-level = "z" -overflow-checks = true -panic = "abort" -strip = "symbols" - -[profile.release-with-logs] -debug-assertions = true -inherits = "release" diff --git a/test-cases/iterators-over-indexing/Cargo.toml b/test-cases/iterators-over-indexing/Cargo.toml deleted file mode 100644 index 954db6ee..00000000 --- a/test-cases/iterators-over-indexing/Cargo.toml +++ /dev/null @@ -1,21 +0,0 @@ -[workspace] -exclude = [".cargo", "target"] -members = ["iterators-over-indexing-*/*"] -resolver = "2" - -[workspace.dependencies] -soroban-sdk = { version = "=21.4.0" } - -[profile.release] -codegen-units = 1 -debug = 0 -debug-assertions = false -lto = true -opt-level = "z" -overflow-checks = true -panic = "abort" -strip = "symbols" - -[profile.release-with-logs] -debug-assertions = true -inherits = "release" diff --git a/test-cases/overflow-check/overflow-check-1/remediated-example/Cargo.toml b/test-cases/overflow-check/overflow-check-1/remediated-example/Cargo.toml index 5cd50d42..c87f6dda 100644 --- a/test-cases/overflow-check/overflow-check-1/remediated-example/Cargo.toml +++ b/test-cases/overflow-check/overflow-check-1/remediated-example/Cargo.toml @@ -1,28 +1,16 @@ - [package] edition = "2021" name = "overflow-check-remediated-1" version = "0.1.0" +[lib] +crate-type = ["cdylib"] + [dependencies] -soroban-sdk = { version = "=21.4.0" } +soroban-sdk = { workspace = true } [dev-dependencies] -soroban-sdk = { version = "=21.4.0", features = ["testutils"] } +soroban-sdk = { workspace = true, features = ["testutils"] } [features] testutils = ["soroban-sdk/testutils"] - -[profile.release] -codegen-units = 1 -debug = 0 -debug-assertions = false -lto = true -opt-level = "z" -overflow-checks = true -panic = "abort" -strip = "symbols" - -[profile.release-with-logs] -debug-assertions = true -inherits = "release" diff --git a/test-cases/overflow-check/overflow-check-1/vulnerable-example/Cargo.toml b/test-cases/overflow-check/overflow-check-1/vulnerable-example/Cargo.toml index ce7c42f4..e7fac0a7 100644 --- a/test-cases/overflow-check/overflow-check-1/vulnerable-example/Cargo.toml +++ b/test-cases/overflow-check/overflow-check-1/vulnerable-example/Cargo.toml @@ -1,28 +1,16 @@ - [package] edition = "2021" name = "overflow-check-vulnerable-1" version = "0.1.0" +[lib] +crate-type = ["cdylib"] + [dependencies] -soroban-sdk = { version = "=21.4.0" } +soroban-sdk = { workspace = true } [dev-dependencies] -soroban-sdk = { version = "=21.4.0", features = ["testutils"] } +soroban-sdk = { workspace = true, features = ["testutils"] } [features] testutils = ["soroban-sdk/testutils"] - -[profile.release] -codegen-units = 1 -debug = 0 -debug-assertions = false -lto = true -opt-level = "z" -overflow-checks = false -panic = "abort" -strip = "symbols" - -[profile.release-with-logs] -debug-assertions = true -inherits = "release" diff --git a/test-cases/set-contract-storage/Cargo.toml b/test-cases/set-contract-storage/Cargo.toml deleted file mode 100644 index 9b92dc23..00000000 --- a/test-cases/set-contract-storage/Cargo.toml +++ /dev/null @@ -1,21 +0,0 @@ -[workspace] -exclude = [".cargo", "target"] -members = ["set-contract-storage-*/*"] -resolver = "2" - -[workspace.dependencies] -soroban-sdk = { version = "=21.4.0" } - -[profile.release] -codegen-units = 1 -debug = 0 -debug-assertions = false -lto = true -opt-level = "z" -overflow-checks = true -panic = "abort" -strip = "symbols" - -[profile.release-with-logs] -debug-assertions = true -inherits = "release" diff --git a/test-cases/storage-change-events/Cargo.toml b/test-cases/storage-change-events/Cargo.toml deleted file mode 100644 index c2fabcfe..00000000 --- a/test-cases/storage-change-events/Cargo.toml +++ /dev/null @@ -1,23 +0,0 @@ -[workspace] -exclude = [".cargo", "target"] -members = ["storage-change-events-*/*"] -resolver = "2" - -[workspace.dependencies] -soroban-sdk = { version = "=21.4.0" } -soroban-token-sdk = { version = "21.4.0" } - -[profile.release] -codegen-units = 1 -debug = 0 -debug-assertions = false -lto = true -opt-level = "z" -overflow-checks = true -panic = "abort" -strip = "symbols" - -[profile.release-with-logs] -debug-assertions = true -inherits = "release" - diff --git a/test-cases/storage-change-events/storage-change-events-1/remediated-example/Cargo.toml b/test-cases/storage-change-events/storage-change-events-1/remediated-example/Cargo.toml index dd120b7f..da62685c 100644 --- a/test-cases/storage-change-events/storage-change-events-1/remediated-example/Cargo.toml +++ b/test-cases/storage-change-events/storage-change-events-1/remediated-example/Cargo.toml @@ -7,29 +7,12 @@ edition = "2021" crate-type = ["cdylib"] [dependencies] -soroban-sdk = "=21.4.0" -soroban-token-sdk = { version = "21.4.0" } - +soroban-sdk = { workspace = true } +soroban-token-sdk = { workspace = true } [dev_dependencies] -soroban-sdk = { version = "=21.4.0", features = ["testutils"] } -soroban-token-sdk = { version = "21.4.0" } - +soroban-sdk = { workspace = true, features = ["testutils"] } +soroban-token-sdk = { workspace = true } [features] testutils = ["soroban-sdk/testutils"] - -[profile.release] -opt-level = "z" -overflow-checks = true -debug = 0 -strip = "symbols" -debug-assertions = false -panic = "abort" -codegen-units = 1 -lto = true - -[profile.release-with-logs] -inherits = "release" -debug-assertions = true - diff --git a/test-cases/storage-change-events/storage-change-events-1/vulnerable-example/Cargo.toml b/test-cases/storage-change-events/storage-change-events-1/vulnerable-example/Cargo.toml index e459c2e3..10659104 100644 --- a/test-cases/storage-change-events/storage-change-events-1/vulnerable-example/Cargo.toml +++ b/test-cases/storage-change-events/storage-change-events-1/vulnerable-example/Cargo.toml @@ -7,29 +7,12 @@ edition = "2021" crate-type = ["cdylib"] [dependencies] -soroban-sdk = "=21.4.0" -soroban-token-sdk = { version = "21.4.0" } - +soroban-sdk = { workspace = true } +soroban-token-sdk = { workspace = true } [dev_dependencies] -soroban-sdk = { version = "=21.4.0", features = ["testutils"] } -soroban-token-sdk = { version = "21.4.0" } - +soroban-sdk = { workspace = true, features = ["testutils"] } +soroban-token-sdk = { workspace = true } [features] testutils = ["soroban-sdk/testutils"] - -[profile.release] -opt-level = "z" -overflow-checks = true -debug = 0 -strip = "symbols" -debug-assertions = false -panic = "abort" -codegen-units = 1 -lto = true - -[profile.release-with-logs] -inherits = "release" -debug-assertions = true - diff --git a/test-cases/token-interface-inference/Cargo.toml b/test-cases/token-interface-inference/Cargo.toml deleted file mode 100644 index 2a6b4662..00000000 --- a/test-cases/token-interface-inference/Cargo.toml +++ /dev/null @@ -1,23 +0,0 @@ -[workspace] -exclude = [".cargo", "target"] -members = ["token-interface-inference-*/*"] -resolver = "2" - -[workspace.dependencies] -soroban-sdk = { version = "=21.4.0" } -soroban-token-sdk = { version = "=21.4.0" } - -[profile.release] -codegen-units = 1 -debug = 0 -debug-assertions = false -lto = true -opt-level = "z" -overflow-checks = true -panic = "abort" -strip = "symbols" - -[profile.release-with-logs] -debug-assertions = true -inherits = "release" - diff --git a/test-cases/token-interface-inference/token-interface-inference-1/remediated-example/Cargo.toml b/test-cases/token-interface-inference/token-interface-inference-1/remediated-example/Cargo.toml index 00a49f87..e71b2c97 100644 --- a/test-cases/token-interface-inference/token-interface-inference-1/remediated-example/Cargo.toml +++ b/test-cases/token-interface-inference/token-interface-inference-1/remediated-example/Cargo.toml @@ -7,29 +7,12 @@ edition = "2021" crate-type = ["cdylib"] [dependencies] -soroban-sdk = "=21.4.0" -soroban-token-sdk = { version = "=21.4.0" } - +soroban-sdk = { workspace = true } +soroban-token-sdk = { workspace = true } [dev_dependencies] -soroban-sdk = { version = "=21.4.0", features = ["testutils"] } -soroban-token-sdk = { version = "=21.4.0" } - +soroban-sdk = { workspace = true, features = ["testutils"] } +soroban-token-sdk = { workspace = true } [features] testutils = ["soroban-sdk/testutils"] - -[profile.release] -opt-level = "z" -overflow-checks = true -debug = 0 -strip = "symbols" -debug-assertions = false -panic = "abort" -codegen-units = 1 -lto = true - -[profile.release-with-logs] -inherits = "release" -debug-assertions = true - diff --git a/test-cases/token-interface-inference/token-interface-inference-1/vulnerable-example/Cargo.toml b/test-cases/token-interface-inference/token-interface-inference-1/vulnerable-example/Cargo.toml index dfa7802b..d5601918 100644 --- a/test-cases/token-interface-inference/token-interface-inference-1/vulnerable-example/Cargo.toml +++ b/test-cases/token-interface-inference/token-interface-inference-1/vulnerable-example/Cargo.toml @@ -7,30 +7,12 @@ edition = "2021" crate-type = ["cdylib"] [dependencies] -soroban-sdk = "=21.4.0" -soroban-token-sdk = { version = "=21.4.0" } - +soroban-sdk = { workspace = true } +soroban-token-sdk = { workspace = true } [dev_dependencies] -soroban-sdk = { version = "=21.4.0", features = ["testutils"] } -soroban-token-sdk = { version = "=21.4.0" } - +soroban-sdk = { workspace = true, features = ["testutils"] } +soroban-token-sdk = { workspace = true } [features] testutils = ["soroban-sdk/testutils"] - -[profile.release] -opt-level = "z" -overflow-checks = true -debug = 0 -strip = "symbols" -debug-assertions = false -panic = "abort" -codegen-units = 1 -lto = true - -[profile.release-with-logs] -inherits = "release" -debug-assertions = true - - diff --git a/test-cases/unnecessary-admin-parameter/Cargo.toml b/test-cases/unnecessary-admin-parameter/Cargo.toml deleted file mode 100644 index c5ccb679..00000000 --- a/test-cases/unnecessary-admin-parameter/Cargo.toml +++ /dev/null @@ -1,21 +0,0 @@ -[workspace] -exclude = [".cargo", "target"] -members = ["unnecessary-admin-parameter-*/*"] -resolver = "2" - -[workspace.dependencies] -soroban-sdk = { version = "=21.7.6" } - -[profile.release] -codegen-units = 1 -debug = 0 -debug-assertions = false -lto = true -opt-level = "z" -overflow-checks = true -panic = "abort" -strip = "symbols" - -[profile.release-with-logs] -debug-assertions = true -inherits = "release" diff --git a/test-cases/unnecessary-lint-allow/Cargo.toml b/test-cases/unnecessary-lint-allow/Cargo.toml deleted file mode 100644 index e0576682..00000000 --- a/test-cases/unnecessary-lint-allow/Cargo.toml +++ /dev/null @@ -1,21 +0,0 @@ -[workspace] -exclude = [".cargo", "target"] -members = ["unnecessary-lint-allow-*/*"] -resolver = "2" - -[workspace.dependencies] -soroban-sdk = { version = "=21.4.0" } - -[profile.release] -codegen-units = 1 -debug = 0 -debug-assertions = false -lto = true -opt-level = "z" -overflow-checks = true -panic = "abort" -strip = "symbols" - -[profile.release-with-logs] -debug-assertions = true -inherits = "release" diff --git a/test-cases/unprotected-mapping-operation/Cargo.toml b/test-cases/unprotected-mapping-operation/Cargo.toml deleted file mode 100644 index 42594604..00000000 --- a/test-cases/unprotected-mapping-operation/Cargo.toml +++ /dev/null @@ -1,21 +0,0 @@ -[workspace] -exclude = [".cargo", "target"] -members = ["unprotected-mapping-operation-*/*"] -resolver = "2" - -[workspace.dependencies] -soroban-sdk = { version = "=21.4.0" } - -[profile.release] -codegen-units = 1 -debug = 0 -debug-assertions = false -lto = true -opt-level = "z" -overflow-checks = true -panic = "abort" -strip = "symbols" - -[profile.release-with-logs] -debug-assertions = true -inherits = "release" diff --git a/test-cases/unprotected-update-current-contract-wasm/Cargo.toml b/test-cases/unprotected-update-current-contract-wasm/Cargo.toml deleted file mode 100644 index e6c34a02..00000000 --- a/test-cases/unprotected-update-current-contract-wasm/Cargo.toml +++ /dev/null @@ -1,21 +0,0 @@ -[workspace] -exclude = [".cargo", "target"] -members = ["unprotected-update-current-contract-wasm-*/*"] -resolver = "2" - -[workspace.dependencies] -soroban-sdk = { version = "=21.4.0" } - -[profile.release] -codegen-units = 1 -debug = 0 -debug-assertions = false -lto = true -opt-level = "z" -overflow-checks = true -panic = "abort" -strip = "symbols" - -[profile.release-with-logs] -debug-assertions = true -inherits = "release" diff --git a/test-cases/unrestricted-transfer-from/Cargo.toml b/test-cases/unrestricted-transfer-from/Cargo.toml deleted file mode 100644 index 54f81f26..00000000 --- a/test-cases/unrestricted-transfer-from/Cargo.toml +++ /dev/null @@ -1,21 +0,0 @@ -[workspace] -exclude = [".cargo", "target"] -members = ["unrestricted-transfer-from-*/*"] -resolver = "2" - -[workspace.dependencies] -soroban-sdk = { version = "=21.4.0" } - -[profile.release] -codegen-units = 1 -debug = 0 -debug-assertions = false -lto = true -opt-level = "z" -overflow-checks = true -panic = "abort" -strip = "symbols" - -[profile.release-with-logs] -debug-assertions = true -inherits = "release" diff --git a/test-cases/unsafe-expect/Cargo.toml b/test-cases/unsafe-expect/Cargo.toml deleted file mode 100644 index 10a63775..00000000 --- a/test-cases/unsafe-expect/Cargo.toml +++ /dev/null @@ -1,21 +0,0 @@ -[workspace] -exclude = [".cargo", "target"] -members = ["unsafe-expect-*/*"] -resolver = "2" - -[workspace.dependencies] -soroban-sdk = { version = "=21.7.6" } - -[profile.release] -codegen-units = 1 -debug = 0 -debug-assertions = false -lto = true -opt-level = "z" -overflow-checks = true -panic = "abort" -strip = "symbols" - -[profile.release-with-logs] -debug-assertions = true -inherits = "release" diff --git a/test-cases/unsafe-map-get/Cargo.toml b/test-cases/unsafe-map-get/Cargo.toml deleted file mode 100644 index 55d75246..00000000 --- a/test-cases/unsafe-map-get/Cargo.toml +++ /dev/null @@ -1,21 +0,0 @@ -[workspace] -exclude = [".cargo", "target"] -members = ["unsafe-map-get-*/*"] -resolver = "2" - -[workspace.dependencies] -soroban-sdk = { version = "=21.7.6" } - -[profile.release] -codegen-units = 1 -debug = 0 -debug-assertions = false -lto = true -opt-level = "z" -overflow-checks = true -panic = "abort" -strip = "symbols" - -[profile.release-with-logs] -debug-assertions = true -inherits = "release" diff --git a/test-cases/unsafe-unwrap/Cargo.toml b/test-cases/unsafe-unwrap/Cargo.toml deleted file mode 100644 index 6c67b435..00000000 --- a/test-cases/unsafe-unwrap/Cargo.toml +++ /dev/null @@ -1,21 +0,0 @@ -[workspace] -exclude = [".cargo", "target"] -members = ["unsafe-unwrap-*/*"] -resolver = "2" - -[workspace.dependencies] -soroban-sdk = { version = "=21.4.0" } - -[profile.release] -codegen-units = 1 -debug = 0 -debug-assertions = false -lto = true -opt-level = "z" -overflow-checks = true -panic = "abort" -strip = "symbols" - -[profile.release-with-logs] -debug-assertions = true -inherits = "release" diff --git a/test-cases/unused-return-enum/Cargo.toml b/test-cases/unused-return-enum/Cargo.toml deleted file mode 100644 index 08340fe4..00000000 --- a/test-cases/unused-return-enum/Cargo.toml +++ /dev/null @@ -1,21 +0,0 @@ -[workspace] -exclude = [".cargo", "target"] -members = ["unused-return-enum-*/*"] -resolver = "2" - -[workspace.dependencies] -soroban-sdk = { version = "=21.4.0" } - -[profile.release] -codegen-units = 1 -debug = 0 -debug-assertions = false -lto = true -opt-level = "z" -overflow-checks = true -panic = "abort" -strip = "symbols" - -[profile.release-with-logs] -debug-assertions = true -inherits = "release" diff --git a/test-cases/vec-could-be-mapping/Cargo.toml b/test-cases/vec-could-be-mapping/Cargo.toml deleted file mode 100644 index c105dde9..00000000 --- a/test-cases/vec-could-be-mapping/Cargo.toml +++ /dev/null @@ -1,21 +0,0 @@ -[workspace] -exclude = [".cargo", "target"] -members = ["vec-could-be-mapping-*/*"] -resolver = "2" - -[workspace.dependencies] -soroban-sdk = { version = "=21.4.0" } - -[profile.release] -codegen-units = 1 -debug = 0 -debug-assertions = false -lto = true -opt-level = "z" -overflow-checks = true -panic = "abort" -strip = "symbols" - -[profile.release-with-logs] -debug-assertions = true -inherits = "release"