Skip to content

Commit

Permalink
chore(sandbox): inherit manifest from workspace (#3626)
Browse files Browse the repository at this point in the history
  • Loading branch information
clearloop authored Dec 27, 2023
1 parent 559afdc commit 8c72f8a
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 21 deletions.
8 changes: 4 additions & 4 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 Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ sp-core = { version = "7.0.0", git = "https://github.com/gear-tech/substrate.git
sp-consensus = { version = "0.10.0-dev", git = "https://github.com/gear-tech/substrate.git", branch = "gear-polkadot-v0.9.41-canary-no-sandbox-revert-oom-changes", default-features = false }
sp-consensus-babe = { version = "0.10.0-dev", git = "https://github.com/gear-tech/substrate.git", branch = "gear-polkadot-v0.9.41-canary-no-sandbox-revert-oom-changes", default-features = false }
sp-consensus-slots = { version = "0.10.0-dev", git = "https://github.com/gear-tech/substrate.git", branch = "gear-polkadot-v0.9.41-canary-no-sandbox-revert-oom-changes", default-features = false }
sp-debug-derive = { version = "5.0.0", git = "https://github.com/gear-tech/substrate.git", branch = "gear-polkadot-v0.9.41-canary-no-sandbox-revert-oom-changes", default-features = false }
sp-externalities = { version = "0.13.0", git = "https://github.com/gear-tech/substrate.git", branch = "gear-polkadot-v0.9.41-canary-no-sandbox-revert-oom-changes", default-features = false }
sp-consensus-grandpa = { version = "4.0.0-dev", git = "https://github.com/gear-tech/substrate.git", branch = "gear-polkadot-v0.9.41-canary-no-sandbox-revert-oom-changes", default-features = false }
sp-inherents = { version = "4.0.0-dev", git = "https://github.com/gear-tech/substrate.git", branch = "gear-polkadot-v0.9.41-canary-no-sandbox-revert-oom-changes", default-features = false }
Expand Down
2 changes: 1 addition & 1 deletion lazy-pages/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ repository.workspace = true

[dependencies]
log = { workspace = true, features = ["std"] }
sp-wasm-interface = { workspace = true, features = ["std"] }
sp-wasm-interface-common = { workspace = true, features = ["std"] }
cfg-if.workspace = true
region.workspace = true
derive_more.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion lazy-pages/src/globals.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ use core::any::Any;
use gear_core::{memory::HostPointer, str::LimitedStr};
use gear_lazy_pages_common::{GlobalsAccessError, GlobalsAccessMod, GlobalsAccessor};
use gear_sandbox_host::sandbox::SandboxInstance;
use sp_wasm_interface::Value;
use sp_wasm_interface_common::Value;

#[derive(Debug, Clone, Copy)]
pub(crate) enum GlobalNo {
Expand Down
4 changes: 2 additions & 2 deletions sandbox/env/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ targets = ["x86_64-unknown-linux-gnu"]

[dependencies]
codec.workspace = true
sp-core.workspace = true
sp-debug-derive.workspace = true
sp-std.workspace = true
sp-wasm-interface-common = { workspace = true, default-features = false }

[features]
default = ["std"]
std = [
"codec/std",
"sp-core/std",
"sp-debug-derive/std",
"sp-std/std",
"sp-wasm-interface-common/std",
]
2 changes: 1 addition & 1 deletion sandbox/env/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ extern crate alloc;

use alloc::string::String;
use codec::{Decode, Encode};
use sp_core::RuntimeDebug;
use sp_debug_derive::RuntimeDebug;
use sp_std::vec::Vec;
use sp_wasm_interface_common::ReturnValue;

Expand Down
16 changes: 8 additions & 8 deletions sandbox/sandbox/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[package]
name = "gear-sandbox"
version = "0.1.0"
authors = ["Gear Technologies"]
edition = "2021"
license = "GPL-3.0"
homepage = "https://gear-tech.io"
repository = "https://github.com/gear-tech/gear"
description = "This crate provides means to instantiate and execute wasm modules."
readme = "README.md"
authors.workspace = true
edition.workspace = true
license.workspace = true
homepage.workspace = true
repository.workspace = true
version.workspace = true

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
Expand All @@ -18,7 +18,7 @@ log.workspace = true
wasmi = { git = "https://github.com/gear-tech/wasmi", branch = "gear-v0.30.0", default-features = false }
sp-core.workspace = true
sp-std.workspace = true
sp-wasm-interface.workspace = true
sp-wasm-interface-common.workspace = true
gear-runtime-interface.workspace = true
gear-sandbox-env.workspace = true

Expand All @@ -33,7 +33,7 @@ std = [
"log/std",
"sp-core/std",
"sp-std/std",
"sp-wasm-interface/std",
"sp-wasm-interface-common/std",
"gear-runtime-interface/std",
"gear-sandbox-env/std",
"wasmi/std",
Expand Down
2 changes: 1 addition & 1 deletion sandbox/sandbox/src/embedded_executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ use crate::{
use alloc::string::String;
use gear_sandbox_env::GLOBAL_NAME_GAS;
use sp_std::{collections::btree_map::BTreeMap, marker::PhantomData, prelude::*};
use sp_wasm_interface::HostPointer;
use sp_wasm_interface_common::HostPointer;
use wasmi::{
core::{Pages, Trap},
Engine, ExternType, Linker, MemoryType, Module, StoreContext, StoreContextMut,
Expand Down
2 changes: 1 addition & 1 deletion sandbox/sandbox/src/host_executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ use alloc::string::String;
use gear_runtime_interface::sandbox;
use gear_sandbox_env::WasmReturnValue;
use sp_std::{marker, mem, prelude::*, rc::Rc, slice, vec};
use sp_wasm_interface::HostPointer;
use sp_wasm_interface_common::HostPointer;

mod ffi {
use super::HostFuncType;
Expand Down
4 changes: 2 additions & 2 deletions sandbox/sandbox/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ pub mod host_executor;
use alloc::string::String;
use sp_core::RuntimeDebug;
use sp_std::prelude::*;
use sp_wasm_interface::HostPointer;
use sp_wasm_interface_common::HostPointer;

pub use sp_wasm_interface::{IntoValue, ReturnValue, Value};
pub use sp_wasm_interface_common::{IntoValue, ReturnValue, Value};

#[cfg(feature = "std")]
pub use self::embedded_executor as default_executor;
Expand Down

0 comments on commit 8c72f8a

Please sign in to comment.