Skip to content

Commit

Permalink
Fixed disable panic handler not working correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
markopoloparadox committed Aug 29, 2024
1 parent d4e8fe3 commit e830af6
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,6 @@ authors = []
edition = "2021"
license = "Apache-2.0"

# Target Dependencies
[target.'cfg(target_arch = "wasm32")'.dependencies]
sp-io = { workspace = true, features = ["disable_panic_handler"] }

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
sp-io = { workspace = true }

[dependencies]
# Others
derive_more.workspace = true
Expand All @@ -37,6 +30,7 @@ sp-runtime = { workspace = true, optional = true }
sp-runtime-interface = { workspace = true, optional = true }
sp-std.workspace = true
sp-trie.workspace = true
sp-io.workspace = true

[dev-dependencies]
hex-literal.workspace = true
Expand Down Expand Up @@ -75,6 +69,7 @@ runtime = [
"sp-runtime",
"sp-runtime-interface",
]
disable_panic_handler = [ "sp-io/disable_panic_handler" ]

try-runtime = [ "runtime", "sp-runtime/try-runtime" ]
serde = [ "dep:serde", "hex/serde", "log/serde" ]

0 comments on commit e830af6

Please sign in to comment.