Skip to content

Commit

Permalink
chore(runtime-interface): handle std for sp-io (#3623)
Browse files Browse the repository at this point in the history
  • Loading branch information
clearloop authored Jan 9, 2024
1 parent 1ab5f92 commit a184859
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ gear-core-backend = { path = "core-backend", default-features = false }
gear-call-gen = { path = "utils/call-gen" }
gear-common = { path = "common", default-features = false }
gear-common-codegen = { path = "common/codegen" }
gear-core = { path = "core" }
gear-core = { path = "core", default-features = false }
gear-core-errors = { path = "core-errors" }
gear-core-processor = { path = "core-processor", default-features = false }
gear-lazy-pages = { path = "lazy-pages" }
Expand Down
18 changes: 12 additions & 6 deletions runtime-interface/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,27 +14,33 @@ gear-lazy-pages-common.workspace = true
gear-lazy-pages = { workspace = true, optional = true }
gear-sandbox-host = { workspace = true, optional = true }

log = { workspace = true, optional = true }
sp-io.workspace = true
sp-runtime-interface.workspace = true
sp-std.workspace = true
sp-wasm-interface.workspace = true
sp-io.workspace = true

byteorder.workspace = true
codec = { workspace = true }
log = { workspace = true, optional = true }
static_assertions.workspace = true
byteorder.workspace = true


[target.'cfg(windows)'.dependencies]
winapi = { workspace = true, features = ["memoryapi"] }

[features]
default = ["std"]
std = [
"sp-runtime-interface/std",
"gear-core/std",
"gear-lazy-pages",
"gear-sandbox-host",

"sp-io/std",
"sp-std/std",
"sp-runtime-interface/std",
"sp-wasm-interface/std",

"byteorder/std",
"codec/std",
"log",
"gear-lazy-pages",
"gear-sandbox-host",
]

0 comments on commit a184859

Please sign in to comment.