Skip to content

Commit

Permalink
fix: adjust environment to match no_std conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
pandres95 committed Oct 16, 2024
1 parent d9c7f5c commit 887354c
Show file tree
Hide file tree
Showing 8 changed files with 327 additions and 287 deletions.
331 changes: 185 additions & 146 deletions Cargo.lock

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions pallets/gas-transaction-payment/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,22 @@ version = "1.0.0"
targets = ["x86_64-unknown-linux-gnu"]

[dependencies]
codec = {workspace = true}
fc-traits-gas-tank = {workspace = true}
frame-support = {workspace = true}
frame-system = {workspace = true}
scale-info = {workspace = true}
sp-runtime = {workspace = true}
codec = { workspace = true }
fc-traits-gas-tank = { workspace = true }
frame-support = { workspace = true }
frame-system = { workspace = true }
scale-info = { workspace = true }
sp-runtime = { workspace = true }

[dev-dependencies]
pallet-balances = {workspace = true}
pallet-transaction-payment = {workspace = true}
pallet-utility = {workspace = true}
sp-io = {workspace = true}
pallet-balances = { workspace = true }
pallet-transaction-payment = { workspace = true }
pallet-utility = { workspace = true }
sp-io = { workspace = true }

[features]
default = ["std"]
runtime-benchmarks=[
runtime-benchmarks = [
"fc-traits-gas-tank/runtime-benchmarks",
"frame-support/runtime-benchmarks",
"frame-system/runtime-benchmarks",
Expand Down
34 changes: 17 additions & 17 deletions pallets/pass/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,25 @@ version = "1.0.0"
targets = ["x86_64-unknown-linux-gnu"]

[dependencies]
codec = {workspace = true}
fc-traits-authn = {workspace = true}
frame-benchmarking = {workspace = true, optional = true}
frame-support = {workspace = true}
frame-system = {workspace = true}
log = {workspace = true}
scale-info = {workspace = true}
serde = {workspace = true, optional = true}
sp-core = {workspace = true}
sp-io = {workspace = true}
sp-runtime = {workspace = true}
sp-std = {workspace = true}
codec = { workspace = true }
fc-traits-authn = { workspace = true }
frame-benchmarking = { workspace = true, optional = true }
frame-support = { workspace = true }
frame-system = { workspace = true }
log = { workspace = true }
scale-info = { workspace = true }
serde = { workspace = true, optional = true }
sp-core = { workspace = true }
sp-io = { workspace = true }
sp-runtime = { workspace = true }
sp-std = { workspace = true }

[dev-dependencies]
env_logger = {workspace = true}
pallet-babe = {workspace = true}
pallet-balances = {workspace = true}
pallet-scheduler = {workspace = true}
pallet-timestamp = {workspace = true}
env_logger = { workspace = true }
pallet-babe = { workspace = true }
pallet-balances = { workspace = true }
pallet-scheduler = { workspace = true }
pallet-timestamp = { workspace = true }

[features]
default = ["std"]
Expand Down
120 changes: 60 additions & 60 deletions pallets/referenda-tracks/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,68 +1,68 @@
[package]
name = "fc-pallet-referenda-tracks"
version = "1.0.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true
description = "Pallet to manage dynamic governance tracks for pallet referenda"
readme = "README.md"
name = "fc-pallet-referenda-tracks"
version = "1.0.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true
description = "Pallet to manage dynamic governance tracks for pallet referenda"
readme = "README.md"

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]

[dependencies]
codec = { workspace = true }
scale-info = { workspace = true }
serde = { workspace = true, optional = true }
fc-traits-tracks = { workspace = true }
frame-benchmarking = { workspace = true, optional = true }
frame-support = { workspace = true }
frame-system = { workspace = true }
sp-core = { workspace = true }
sp-io = { workspace = true }
sp-runtime = { workspace = true }
sp-std = { workspace = true }
pallet-referenda = { workspace = true }
codec = { workspace = true }
scale-info = { workspace = true }
serde = { workspace = true, optional = true }
fc-traits-tracks = { workspace = true }
frame-benchmarking = { workspace = true, optional = true }
frame-support = { workspace = true }
frame-system = { workspace = true }
sp-core = { workspace = true }
sp-io = { workspace = true }
sp-runtime = { workspace = true }
sp-std = { workspace = true }
pallet-referenda = { workspace = true }

[dev-dependencies]
pallet-scheduler = { workspace = true }
pallet-preimage = { workspace = true }
pallet-balances = { workspace = true }
pallet-scheduler = { workspace = true }
pallet-preimage = { workspace = true }
pallet-balances = { workspace = true }

[features]
default = ["std"]
runtime-benchmarks = [
"frame-benchmarking/runtime-benchmarks",
"frame-support/runtime-benchmarks",
"frame-system/runtime-benchmarks",
"pallet-balances/runtime-benchmarks",
"pallet-scheduler/runtime-benchmarks",
"pallet-preimage/runtime-benchmarks",
"pallet-referenda/runtime-benchmarks",
"sp-runtime/runtime-benchmarks",
]
std = [
"codec/std",
"fc-traits-tracks/std",
"frame-benchmarking?/std",
"frame-support/std",
"frame-system/std",
"pallet-balances/std",
"pallet-referenda/std",
"scale-info/std",
"serde",
"sp-core/std",
"sp-io/std",
"sp-runtime/std",
"sp-std/std",
]
try-runtime = [
"frame-support/try-runtime",
"frame-system/try-runtime",
"pallet-balances/try-runtime",
"pallet-scheduler/try-runtime",
"pallet-preimage/try-runtime",
"pallet-referenda/try-runtime",
"sp-runtime/try-runtime",
]
default = ["std"]
runtime-benchmarks = [
"frame-benchmarking/runtime-benchmarks",
"frame-support/runtime-benchmarks",
"frame-system/runtime-benchmarks",
"pallet-balances/runtime-benchmarks",
"pallet-scheduler/runtime-benchmarks",
"pallet-preimage/runtime-benchmarks",
"pallet-referenda/runtime-benchmarks",
"sp-runtime/runtime-benchmarks",
]
std = [
"codec/std",
"fc-traits-tracks/std",
"frame-benchmarking?/std",
"frame-support/std",
"frame-system/std",
"pallet-balances/std",
"pallet-referenda/std",
"scale-info/std",
"serde",
"sp-core/std",
"sp-io/std",
"sp-runtime/std",
"sp-std/std",
]
try-runtime = [
"frame-support/try-runtime",
"frame-system/try-runtime",
"pallet-balances/try-runtime",
"pallet-scheduler/try-runtime",
"pallet-preimage/try-runtime",
"pallet-referenda/try-runtime",
"sp-runtime/try-runtime",
]
96 changes: 48 additions & 48 deletions pallets/template/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,56 +1,56 @@
[package]
name = "fc-pallet-template"
version = "1.0.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true
description = "Template for creating new Pallets"
readme = "README.md"
name = "fc-pallet-template"
version = "1.0.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true
description = "Template for creating new Pallets"
readme = "README.md"

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]

[dependencies]
codec = { workspace = true }
scale-info = { workspace = true }
serde = { workspace = true, optional = true }
frame-benchmarking = { workspace = true, optional = true }
frame-support = { workspace = true }
frame-system = { workspace = true }
sp-core = { workspace = true }
sp-io = { workspace = true }
sp-runtime = { workspace = true }
sp-std = { workspace = true }
codec = { workspace = true }
scale-info = { workspace = true }
serde = { workspace = true, optional = true }
frame-benchmarking = { workspace = true, optional = true }
frame-support = { workspace = true }
frame-system = { workspace = true }
sp-core = { workspace = true }
sp-io = { workspace = true }
sp-runtime = { workspace = true }
sp-std = { workspace = true }

[dev-dependencies]
pallet-balances = { workspace = true }
pallet-balances = { workspace = true }

[features]
default = ["std"]
runtime-benchmarks = [
"frame-benchmarking/runtime-benchmarks",
"frame-support/runtime-benchmarks",
"frame-system/runtime-benchmarks",
"pallet-balances/runtime-benchmarks",
"sp-runtime/runtime-benchmarks",
]
std = [
"codec/std",
"frame-benchmarking?/std",
"frame-support/std",
"frame-system/std",
"pallet-balances/std",
"scale-info/std",
"serde",
"sp-core/std",
"sp-io/std",
"sp-runtime/std",
"sp-std/std",
]
try-runtime = [
"frame-support/try-runtime",
"frame-system/try-runtime",
"pallet-balances/try-runtime",
"sp-runtime/try-runtime",
]
default = ["std"]
runtime-benchmarks = [
"frame-benchmarking/runtime-benchmarks",
"frame-support/runtime-benchmarks",
"frame-system/runtime-benchmarks",
"pallet-balances/runtime-benchmarks",
"sp-runtime/runtime-benchmarks",
]
std = [
"codec/std",
"frame-benchmarking?/std",
"frame-support/std",
"frame-system/std",
"pallet-balances/std",
"scale-info/std",
"serde",
"sp-core/std",
"sp-io/std",
"sp-runtime/std",
"sp-std/std",
]
try-runtime = [
"frame-support/try-runtime",
"frame-system/try-runtime",
"pallet-balances/try-runtime",
"sp-runtime/try-runtime",
]
1 change: 0 additions & 1 deletion traits/authn/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ repository.workspace = true
license.workspace = true

[dependencies]
paste = "1.0"
codec = { workspace = true }
frame-support = { workspace = true }
impl-trait-for-tuples = { workspace = true }
Expand Down
2 changes: 2 additions & 0 deletions traits/authn/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![cfg_attr(not(feature = "std"), no_std)]

use codec::{FullCodec, MaxEncodedLen};
use frame_support::{traits::Get, Parameter};
use scale_info::TypeInfo;
Expand Down
8 changes: 4 additions & 4 deletions traits/gas-tank/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,18 @@ sp-io.workspace = true
[features]
default = ["std"]
runtime-benchmarks=[
"pallet-balances/runtime-benchmarks",
"pallet-nfts/runtime-benchmarks",
"frame-support/runtime-benchmarks",
"frame-system/runtime-benchmarks",
"pallet-balances/runtime-benchmarks",
"pallet-nfts/runtime-benchmarks",
"sp-runtime/runtime-benchmarks",
]
std = [
"codec/std",
"pallet-balances/std",
"pallet-nfts/std",
"frame-support/std",
"frame-system/std",
"pallet-balances/std",
"pallet-nfts/std",
"scale-info/std",
"sp-io/std",
"sp-runtime/std",
Expand Down

0 comments on commit 887354c

Please sign in to comment.