Skip to content

Commit

Permalink
WIP: Specify try-runtime feature where missing
Browse files Browse the repository at this point in the history
trying to resolve unsatisfied trait bounds error, see
paritytech/substrate#10174 (comment)
  • Loading branch information
atodorov committed Jan 10, 2023
1 parent 93f135d commit fa02bc6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pallets/offchain-task-scheduler/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ std = [
"pallet-timestamp/std",
"frame-benchmarking/std",
]
try-runtime = [ "frame-support/try-runtime" ]

[dev-dependencies]
assert_matches = "1.5.0"
Expand Down
2 changes: 2 additions & 0 deletions pallets/offchain-task-scheduler/runtime-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@ repository.workspace = true
targets = ["x86_64-unknown-linux-gnu"]

[dependencies]
frame-support = { workspace = true }
parity-scale-codec = { workspace = true }
sp-api = { workspace = true }
scale-info = { workspace = true }

[features]
default = ["std"]
std = ["sp-api/std", "parity-scale-codec/std"]
try-runtime = [ "frame-support/try-runtime" ]
2 changes: 2 additions & 0 deletions primitives/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ publish.workspace = true
repository.workspace = true

[dependencies]
frame-support = { workspace = true }
sp-core = { workspace = true }
substrate-prometheus-endpoint = { optional = true, workspace = true }
num = { version = "0.4.0", default-features = false, features = [
Expand All @@ -29,3 +30,4 @@ tracing-test = { version = "0.2.1", git = "https://github.com/nathanwhit/tracing
default = ["std", "prometheus"]
std = ["sp-core/std", "sp-arithmetic/std"]
prometheus = ["substrate-prometheus-endpoint"]
try-runtime = [ "frame-support/try-runtime" ]

0 comments on commit fa02bc6

Please sign in to comment.