working: Reintroduce Platform impl + instant crash fix

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
This commit is contained in:
Alexandru Vasile
2023-06-06 22:27:46 +03:00
parent 9be09e8daa
commit e754e2d562
7 changed files with 77 additions and 205 deletions
+7 -3
View File
@@ -49,7 +49,7 @@ unstable-light-client = [
# "smoldot-light/std",
"smoldot-light",
# "futures-executor",
"smoldot-light-wasm",
# "smoldot-light-wasm",
"tokio-stream",
"tokio/sync",
"tokio/rt",
@@ -57,7 +57,8 @@ unstable-light-client = [
"wasm-bindgen-futures",
"futures-timer/wasm-bindgen",
"gloo-net",
"subxt-light-client",
"instant/wasm-bindgen",
# "subxt-light-client",
]
[dependencies]
@@ -100,7 +101,7 @@ subxt-metadata = { workspace = true }
# Light client support:
smoldot = { workspace = true, optional = true }
smoldot-light = { workspace = true, optional = true }
smoldot-light-wasm = { workspace = true, optional = true }
# smoldot-light-wasm = { workspace = true, optional = true }
wasm-bindgen-futures = { workspace = true, optional = true }
futures-timer = { workspace = true, optional = true }
gloo-net = { workspace = true, optional = true }
@@ -111,6 +112,9 @@ tokio = { workspace = true, optional = true }
tokio-stream = { workspace = true, optional = true }
futures-util = { workspace = true, optional = true }
instant = { workspace = true, optional = true }
[target.wasm32-unknown-unknown.dependencies]
getrandom = { workspace = true, features = ["js"] }