Skip to content

Commit

Permalink
tweak optimization options in profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
agryaznov committed Mar 1, 2023
1 parent 34eafe8 commit 33d0279
Show file tree
Hide file tree
Showing 32 changed files with 128 additions and 0 deletions.
4 changes: 4 additions & 0 deletions integration-tests/call-runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,7 @@ e2e-tests = []
# Assumes that the node used in E2E testing allows using the `call-runtime` API, including triggering
# `Balances::transfer` extrinsic.
permissive-node = []

[profile.release]
opt-level = 's'
lto = true
4 changes: 4 additions & 0 deletions integration-tests/contract-terminate/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,7 @@ std = [
]
ink-as-dependency = []
e2e-tests = []

[profile.release]
opt-level = 's'
lto = true
4 changes: 4 additions & 0 deletions integration-tests/contract-transfer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,7 @@ std = [
]
ink-as-dependency = []
e2e-tests = []

[profile.release]
opt-level = 's'
lto = true
4 changes: 4 additions & 0 deletions integration-tests/custom-environment/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,7 @@ e2e-tests = []

# Assumes that the node used in E2E testing allows for at least 6 event topics.
permissive-node = []

[profile.release]
opt-level = 's'
lto = true
4 changes: 4 additions & 0 deletions integration-tests/custom_allocator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,7 @@ std = [
]
ink-as-dependency = []
e2e-tests = []

[profile.release]
opt-level = 's'
lto = true
4 changes: 4 additions & 0 deletions integration-tests/delegator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,7 @@ members = [
"adder",
"subber",
]

[profile.release]
opt-level = 's'
lto = true
4 changes: 4 additions & 0 deletions integration-tests/delegator/accumulator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,7 @@ std = [
"scale-info/std",
]
ink-as-dependency = []

[profile.release]
opt-level = 's'
lto = true
4 changes: 4 additions & 0 deletions integration-tests/delegator/adder/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,7 @@ std = [
"accumulator/std",
]
ink-as-dependency = []

[profile.release]
opt-level = 's'
lto = true
4 changes: 4 additions & 0 deletions integration-tests/delegator/subber/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,7 @@ std = [
"accumulator/std",
]
ink-as-dependency = []

[profile.release]
opt-level = 's'
lto = true
4 changes: 4 additions & 0 deletions integration-tests/dns/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,7 @@ std = [
"scale-info/std",
]
ink-as-dependency = []

[profile.release]
opt-level = 's'
lto = true
4 changes: 4 additions & 0 deletions integration-tests/erc1155/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,7 @@ std = [
"scale-info/std",
]
ink-as-dependency = []

[profile.release]
opt-level = 's'
lto = true
4 changes: 4 additions & 0 deletions integration-tests/erc20/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,7 @@ std = [
]
ink-as-dependency = []
e2e-tests = []

[profile.release]
opt-level = 's'
lto = true
4 changes: 4 additions & 0 deletions integration-tests/erc721/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,7 @@ std = [
"scale-info/std",
]
ink-as-dependency = []

[profile.release]
opt-level = 's'
lto = true
4 changes: 4 additions & 0 deletions integration-tests/flipper/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,7 @@ std = [
]
ink-as-dependency = []
e2e-tests = []

[profile.release]
opt-level = 's'
lto = true
4 changes: 4 additions & 0 deletions integration-tests/incrementer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,7 @@ std = [
"scale-info/std",
]
ink-as-dependency = []

[profile.release]
opt-level = 's'
lto = true
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,7 @@ std = [
]
ink-as-dependency = []
e2e-tests = []

[profile.release]
opt-level = 's'
lto = true
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,7 @@ std = [
]
ink-as-dependency = []
e2e-tests = []

[profile.release]
opt-level = 's'
lto = true
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,7 @@ std = [
]
ink-as-dependency = []
e2e-tests = []

[profile.release]
opt-level = 's'
lto = true
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,7 @@ std = [
]
ink-as-dependency = []
e2e-tests = []

[profile.release]
opt-level = 's'
lto = true
4 changes: 4 additions & 0 deletions integration-tests/mapping_integration_tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,7 @@ std = [
]
ink-as-dependency = []
e2e-tests = []

[profile.release]
opt-level = 's'
lto = true
4 changes: 4 additions & 0 deletions integration-tests/mother/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,7 @@ std = [
"scale-info/std",
]
ink-as-dependency = []

[profile.release]
opt-level = 's'
lto = true
4 changes: 4 additions & 0 deletions integration-tests/multisig/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,7 @@ std = [
"scale-info/std",
]
ink-as-dependency = []

[profile.release]
opt-level = 's'
lto = true
4 changes: 4 additions & 0 deletions integration-tests/payment-channel/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,7 @@ std = [
]

ink-as-dependency = []

[profile.release]
opt-level = 's'
lto = true
4 changes: 4 additions & 0 deletions integration-tests/psp22-extension/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,7 @@ std = [
"scale-info/std",
]
ink-as-dependency = []

[profile.release]
opt-level = 's'
lto = true
4 changes: 4 additions & 0 deletions integration-tests/rand-extension/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,7 @@ std = [
"scale-info/std",
]
ink-as-dependency = []

[profile.release]
opt-level = 's'
lto = true
4 changes: 4 additions & 0 deletions integration-tests/trait-erc20/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,7 @@ std = [
"scale-info/std",
]
ink-as-dependency = []

[profile.release]
opt-level = 's'
lto = true
4 changes: 4 additions & 0 deletions integration-tests/trait-flipper/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,7 @@ std = [
"scale-info/std",
]
ink-as-dependency = []

[profile.release]
opt-level = 's'
lto = true
4 changes: 4 additions & 0 deletions integration-tests/trait-incrementer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,7 @@ std = [
"traits/std",
]
ink-as-dependency = []

[profile.release]
opt-level = 's'
lto = true
4 changes: 4 additions & 0 deletions integration-tests/trait-incrementer/traits/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,7 @@ std = [
"scale-info/std",
]
ink-as-dependency = []

[profile.release]
opt-level = 's'
lto = true
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,7 @@ std = [
"scale-info/std",
]
ink-as-dependency = []

[profile.release]
opt-level = 's'
lto = true
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,7 @@ std = [
ink-as-dependency = []



[profile.release]
opt-level = 's'
lto = true
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,7 @@ std = [
"scale-info/std",
]
ink-as-dependency = []

[profile.release]
opt-level = 's'
lto = true

0 comments on commit 33d0279

Please sign in to comment.