Skip to content

Commit dcda0e5

Browse files
authored
Fix build profiles (#1229)
* Fix build profiles Closes #1155 Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Manually set version to 1.0.0 Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Use workspace repo Signed-off-by: Oliver Tale-Yazdi <[email protected]> * 'Authors and Edition from workspace Signed-off-by: Oliver Tale-Yazdi <[email protected]> --------- Signed-off-by: Oliver Tale-Yazdi <[email protected]>
1 parent c80f76f commit dcda0e5

File tree

445 files changed

+1140
-1150
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

445 files changed

+1140
-1150
lines changed

Cargo.toml

Lines changed: 75 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
[workspace.package]
2+
authors = ["Parity Technologies <[email protected]>"]
3+
edition = "2021"
4+
repository = "https://github.com/paritytech/polkadot-sdk.git"
5+
license = "GPL-3.0-only"
6+
17
[workspace]
28
resolver = "2"
39

@@ -448,15 +454,78 @@ members = [
448454
"substrate/utils/wasm-builder",
449455
]
450456

451-
[workspace.package]
452-
authors = ["Parity Technologies <[email protected]>"]
453-
edition = "2021"
454-
repository = "https://github.com/paritytech/polkadot-sdk.git"
455-
license = "GPL-3.0-only"
456-
version = "1.0.0"
457+
[profile.release]
458+
# Polkadot runtime requires unwinding.
459+
panic = "unwind"
460+
opt-level = 3
461+
462+
# make sure dev builds with backtrace do
463+
# not slow us down
464+
[profile.dev.package.backtrace]
465+
inherits = "release"
466+
467+
[profile.production]
468+
inherits = "release"
469+
lto = true
470+
codegen-units = 1
457471

458472
[profile.testnet]
459473
inherits = "release"
460474
debug = 1 # debug symbols are useful for profilers
461475
debug-assertions = true
462476
overflow-checks = true
477+
478+
# The list of dependencies below (which can be both direct and indirect dependencies) are crates
479+
# that are suspected to be CPU-intensive, and that are unlikely to require debugging (as some of
480+
# their debug info might be missing) or to require to be frequently recompiled. We compile these
481+
# dependencies with `opt-level=3` even in "dev" mode in order to make "dev" mode more usable.
482+
# The majority of these crates are cryptographic libraries.
483+
#
484+
# If you see an error mentioning "profile package spec ... did not match any packages", it
485+
# probably concerns this list.
486+
#
487+
# This list is ordered alphabetically.
488+
[profile.dev.package]
489+
blake2 = { opt-level = 3 }
490+
blake2b_simd = { opt-level = 3 }
491+
chacha20poly1305 = { opt-level = 3 }
492+
cranelift-codegen = { opt-level = 3 }
493+
cranelift-wasm = { opt-level = 3 }
494+
crc32fast = { opt-level = 3 }
495+
crossbeam-deque = { opt-level = 3 }
496+
crypto-mac = { opt-level = 3 }
497+
curve25519-dalek = { opt-level = 3 }
498+
ed25519-dalek = { opt-level = 3 }
499+
flate2 = { opt-level = 3 }
500+
futures-channel = { opt-level = 3 }
501+
hash-db = { opt-level = 3 }
502+
hashbrown = { opt-level = 3 }
503+
hmac = { opt-level = 3 }
504+
httparse = { opt-level = 3 }
505+
integer-sqrt = { opt-level = 3 }
506+
keccak = { opt-level = 3 }
507+
libm = { opt-level = 3 }
508+
librocksdb-sys = { opt-level = 3 }
509+
libsecp256k1 = { opt-level = 3 }
510+
libz-sys = { opt-level = 3 }
511+
mio = { opt-level = 3 }
512+
nalgebra = { opt-level = 3 }
513+
num-bigint = { opt-level = 3 }
514+
parking_lot = { opt-level = 3 }
515+
parking_lot_core = { opt-level = 3 }
516+
percent-encoding = { opt-level = 3 }
517+
primitive-types = { opt-level = 3 }
518+
reed-solomon-novelpoly = { opt-level = 3 }
519+
ring = { opt-level = 3 }
520+
rustls = { opt-level = 3 }
521+
sha2 = { opt-level = 3 }
522+
sha3 = { opt-level = 3 }
523+
smallvec = { opt-level = 3 }
524+
snow = { opt-level = 3 }
525+
substrate-bip39 = { opt-level = 3 }
526+
twox-hash = { opt-level = 3 }
527+
uint = { opt-level = 3 }
528+
wasmi = { opt-level = 3 }
529+
x25519-dalek = { opt-level = 3 }
530+
yamux = { opt-level = 3 }
531+
zeroize = { opt-level = 3 }

cumulus/bridges/bin/runtime-common/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[package]
22
name = "bridge-runtime-common"
33
version = "0.1.0"
4-
authors = ["Parity Technologies <[email protected]>"]
5-
edition = "2021"
6-
repository = "https://github.com/paritytech/parity-bridges-common/"
4+
authors.workspace = true
5+
edition.workspace = true
6+
repository.workspace = true
77
license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
88

99
[dependencies]

cumulus/bridges/modules/grandpa/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[package]
22
name = "pallet-bridge-grandpa"
33
version = "0.1.0"
4-
authors = ["Parity Technologies <[email protected]>"]
5-
edition = "2021"
4+
authors.workspace = true
5+
edition.workspace = true
66
license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
77

88
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

cumulus/bridges/modules/messages/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
name = "pallet-bridge-messages"
33
description = "Module that allows bridged chains to exchange messages using lane concept."
44
version = "0.1.0"
5-
authors = ["Parity Technologies <[email protected]>"]
6-
edition = "2021"
5+
authors.workspace = true
6+
edition.workspace = true
77
license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
88

99
[dependencies]

cumulus/bridges/modules/parachains/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[package]
22
name = "pallet-bridge-parachains"
33
version = "0.1.0"
4-
authors = ["Parity Technologies <[email protected]>"]
5-
edition = "2021"
4+
authors.workspace = true
5+
edition.workspace = true
66
license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
77

88
[dependencies]

cumulus/bridges/modules/relayers/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
name = "pallet-bridge-relayers"
33
description = "Module used to store relayer rewards and coordinate relayers set."
44
version = "0.1.0"
5-
authors = ["Parity Technologies <[email protected]>"]
6-
edition = "2021"
5+
authors.workspace = true
6+
edition.workspace = true
77
license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
88

99
[dependencies]

cumulus/bridges/modules/xcm-bridge-hub-router/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
name = "pallet-xcm-bridge-hub-router"
33
description = "Bridge hub interface for sibling/parent chains with dynamic fees support."
44
version = "0.1.0"
5-
authors = ["Parity Technologies <[email protected]>"]
6-
edition = "2021"
5+
authors.workspace = true
6+
edition.workspace = true
77
license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
88

99
[dependencies]

cumulus/bridges/primitives/chain-asset-hub-kusama/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
name = "bp-asset-hub-kusama"
33
description = "Primitives of AssetHubKusama parachain runtime."
44
version = "0.1.0"
5-
authors = ["Parity Technologies <[email protected]>"]
6-
edition = "2021"
5+
authors.workspace = true
6+
edition.workspace = true
77
license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
88

99
[dependencies]

cumulus/bridges/primitives/chain-asset-hub-polkadot/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
name = "bp-asset-hub-polkadot"
33
description = "Primitives of AssetHubPolkadot parachain runtime."
44
version = "0.1.0"
5-
authors = ["Parity Technologies <[email protected]>"]
6-
edition = "2021"
5+
authors.workspace = true
6+
edition.workspace = true
77
license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
88

99
[dependencies]

cumulus/bridges/primitives/chain-bridge-hub-cumulus/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
name = "bp-bridge-hub-cumulus"
33
description = "Primitives of BridgeHubRococo parachain runtime."
44
version = "0.1.0"
5-
authors = ["Parity Technologies <[email protected]>"]
6-
edition = "2021"
5+
authors.workspace = true
6+
edition.workspace = true
77
license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
88

99
[dependencies]

0 commit comments

Comments
 (0)