Skip to content

Commit

Permalink
use serde, log with default features = false
Browse files Browse the repository at this point in the history
  • Loading branch information
gianfra-t committed Aug 8, 2024
1 parent 5ec2769 commit a9e4f25
Show file tree
Hide file tree
Showing 9 changed files with 75 additions and 154 deletions.
187 changes: 54 additions & 133 deletions Cargo.lock

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ codec = { package = "parity-scale-codec", version = "3.0.0" }
serde = { version = "1.0.145", features = ["derive"] }
jsonrpsee = { version = "0.16.2", features = ["server"] }

module-issue-rpc = { git = "https://github.com/pendulum-chain/spacewalk", rev = "a518fb489f3121983af182e337797d9704f88fe6" }
module-oracle-rpc = { git = "https://github.com/pendulum-chain/spacewalk", rev = "a518fb489f3121983af182e337797d9704f88fe6" }
module-redeem-rpc = { git = "https://github.com/pendulum-chain/spacewalk", rev = "a518fb489f3121983af182e337797d9704f88fe6" }
module-replace-rpc = { git = "https://github.com/pendulum-chain/spacewalk", rev = "a518fb489f3121983af182e337797d9704f88fe6" }
module-vault-registry-rpc = { git = "https://github.com/pendulum-chain/spacewalk", rev = "a518fb489f3121983af182e337797d9704f88fe6" }
module-issue-rpc = { git = "https://github.com/pendulum-chain/spacewalk", rev = "d74009bf1d8c27fbd1f314c4fe486cd230e8b73f" }
module-oracle-rpc = { git = "https://github.com/pendulum-chain/spacewalk", rev = "d74009bf1d8c27fbd1f314c4fe486cd230e8b73f" }
module-redeem-rpc = { git = "https://github.com/pendulum-chain/spacewalk", rev = "d74009bf1d8c27fbd1f314c4fe486cd230e8b73f" }
module-replace-rpc = { git = "https://github.com/pendulum-chain/spacewalk", rev = "d74009bf1d8c27fbd1f314c4fe486cd230e8b73f" }
module-vault-registry-rpc = { git = "https://github.com/pendulum-chain/spacewalk", rev = "d74009bf1d8c27fbd1f314c4fe486cd230e8b73f" }
module-pallet-staking-rpc = { path = "../pallets/parachain-staking/rpc" }
spacewalk-primitives = { git = "https://github.com/pendulum-chain/spacewalk", rev = "a518fb489f3121983af182e337797d9704f88fe6" }
spacewalk-primitives = { git = "https://github.com/pendulum-chain/spacewalk", rev = "d74009bf1d8c27fbd1f314c4fe486cd230e8b73f" }

# Local
amplitude-runtime = { path = "../runtime/amplitude" }
Expand Down
4 changes: 2 additions & 2 deletions pallets/orml-currencies-allowance-extension/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ version = "1.0.0"
[dependencies]
codec = {package = "parity-scale-codec", version = "3.1.5", default-features = false, features = ["derive", "max-encoded-len"]}
scale-info = { version = "2.9.0", default-features = false, features = ["derive"]}
serde = {version = "1.0.136", default-features = false, features = ["derive"], optional = true}
serde = {version = "1.0.136", default-features = false, features = ["derive"]}
sha2 = {version = "0.8.2", default-features = false}

# Substrate dependencies
Expand Down Expand Up @@ -35,7 +35,7 @@ pallet-balances = {git = "https://github.com/paritytech/polkadot-sdk", branch =
[features]
default = ["std"]
std = [
"serde",
"serde/std",
"codec/std",
"sha2/std",
"sp-core/std",
Expand Down
4 changes: 2 additions & 2 deletions pallets/orml-tokens-management-extension/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ version = "1.0.0"
[dependencies]
codec = { package = "parity-scale-codec", version = "3.1.5", default-features = false, features = ["derive", "max-encoded-len"] }
scale-info = { version = "2.2.0", default-features = false, features = ["derive"] }
serde = { version = "1.0.130", default-features = false,features = ["derive"], optional = true }
serde = { version = "1.0.130", default-features = false, features = ["derive"] }
sha2 = { version = "0.8.2", default-features = false }

# Substrate dependencies
Expand Down Expand Up @@ -39,7 +39,7 @@ spacewalk-primitives = { git = "https://github.com/pendulum-chain/spacewalk", de
[features]
default = ["std"]
std = [
"serde",
"serde/std",
"codec/std",
"sha2/std",
"sp-core/std",
Expand Down
6 changes: 3 additions & 3 deletions pallets/parachain-staking/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ sp-core = { git = "https://github.com/paritytech/polkadot-sdk", branch = "relea
sp-io = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.1.0"}

[dependencies]
log = { version = "0.4.17" }
log = { version = "0.4.17", default-features = false }
parity-scale-codec = {version = "3.1.5", default-features = false, features = ["derive"]}
scale-info = {version = "2.1.1", default-features = false, features = ["derive"]}
serde = {version = "1.0.142", optional = true}
serde = {version = "1.0.142", default-features = false}
sp-api = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.1.0", default-features = false }
module-pallet-staking-rpc-runtime-api = { path = "./rpc/runtime-api", default-features = false }

Expand All @@ -42,7 +42,7 @@ runtime-benchmarks = [
"pallet-balances/runtime-benchmarks",
]
std = [
"serde",
"serde/std",
"frame-support/std",
"frame-system/std",
"log/std",
Expand Down
2 changes: 1 addition & 1 deletion pallets/parachain-staking/rpc/runtime-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ sp-arithmetic = { git = "https://github.com/paritytech/polkadot-sdk", branch =
[features]
default = ["std"]
std = [
"serde",
"serde/std",
"frame-support/std",
"scale-info/std",
"sp-api/std",
Expand Down
4 changes: 2 additions & 2 deletions pallets/treasury-buyout-extension/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ version = "1.0.0"
[dependencies]
codec = { package = "parity-scale-codec", version = "3.1.5", default-features = false, features = ["derive", "max-encoded-len"] }
scale-info = { version = "2.2.0", default-features = false, features = ["derive"] }
serde = { version = "1.0.130", default-features = false, features = ["derive"], optional = true }
serde = { version = "1.0.130", default-features = false, features = ["derive"]}
sha2 = { version = "0.8.2", default-features = false }

# Substrate dependencies
Expand Down Expand Up @@ -41,7 +41,7 @@ runtime-common = { path = "../../runtime/common", default-features = false }
[features]
default = ["std"]
std = [
"serde",
"serde/std",
"codec/std",
"sha2/std",
"sp-core/std",
Expand Down
6 changes: 3 additions & 3 deletions pallets/vesting-manager/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ name = "vesting-manager"
version = "0.0.1"

[dependencies]
log = { version = "0.4.17" }
log = { version = "0.4.17", default-features = false }
parity-scale-codec = {version = "3.1.5", default-features = false, features = ["derive"]}
scale-info = {version = "2.1.1", default-features = false, features = ["derive"]}
serde = {version = "1.0.142" , optional = true}
serde = {version = "1.0.142" ,default-features = false, optional = true}
sp-api = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.1.0", default-features = false }

frame-support = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.1.0", default-features = false }
Expand All @@ -36,7 +36,7 @@ std = [
"parity-scale-codec/std",
"pallet-vesting/std",
"scale-info/std",
"serde",
"serde/std",
"sp-api/std",
"sp-runtime/std",
"sp-std/std",
Expand Down
4 changes: 2 additions & 2 deletions runtime/amplitude/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ hex-literal = { version = "0.3.4", optional = true }
log = { version = "0.4.17", default-features = false }
paste = "1.0.14"
scale-info = { version = "2.1.1", default-features = false, features = ["derive"] }
serde = { version = "1.0.144", optional = true, features = ["derive"] }
serde = { version = "1.0.144", default-features = false, features = ["derive"] }
smallvec = {version = "1.9.0"}

# Local
Expand Down Expand Up @@ -151,7 +151,7 @@ default = [
"std",
]
std = [
"serde",
"serde/std",
"codec/std",
"log/std",
"scale-info/std",
Expand Down

0 comments on commit a9e4f25

Please sign in to comment.