mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 12:48:00 +00:00
af914e9f40
* Add test from original bug report Original is from @pepyakin in 3d7b27f3421818e8d6de568e02fbc2947a06246b. I adapted it to work with the latest master. * No longer cleanup module instance * Replace runtime cache with synchronous clone * Fix test * Preserve initial runtime memory and restore it on fetch * Remove leftover comment * Fix style * Improve variable naming * Replace get_into() with get() * Handle missing memory export better * Return earlier when creating runtime first time * Improve comments * fmt * Fix #2967. * Eradicate `code` from `Error::InvalidCode` * tidy * A state snapshot doc. * Store multiple runtimes by hash. * Get rid of deref. * Docs * Use Self for instantiate_module * REVERT ME * Should be ok * Commit * Remove dbg * Use fast-memory's erase * Clean and undo hacks. * Introduce a dedicated error for heap_base * Ban the start function. * Clean, docs and refactor * Add rustflags. * Update Cargo.lock * Apply Basti's suggestions Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com> * Rename allocates_huge_stack_array * Extend TestClientBuilder with set_heap_pages * Update the test. * Update core/executor/src/wasm_executor.rs Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com> * Update core/executor/src/wasm_runtimes_cache.rs Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com> * Update core/executor/src/error.rs Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com> * Update core/executor/src/error.rs Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com> * Fix tests. * Update cargo-lock * Use wasmi master * Use master wasmi * Move tests. * Use wasmi crates.io * Update Cargo.lock * Fix build.rs * Bump runtime version * Revert initial_heap_pages renaming * Bump wasmi up to 0.5.0 * Bump runtime version * Don't restore an instance every now and then * Update core/executor/src/wasm_runtimes_cache.rs Co-Authored-By: DemiMarie-parity <48690212+DemiMarie-parity@users.noreply.github.com> * Propagate error in CacheError * Clarify the get_heap_base call in instantiation * Supply --export=__heap_base See https://reviews.llvm.org/D62744 Co-authored-by: Jim Posen <jim.posen@gmail.com> * Bump version. * Use combinators for segments. * Fix build.rs * Fix build.rs for runtime-test
82 lines
2.3 KiB
TOML
82 lines
2.3 KiB
TOML
[package]
|
|
name = "substrate-primitives"
|
|
version = "2.0.0"
|
|
authors = ["Parity Technologies <admin@parity.io>"]
|
|
edition = "2018"
|
|
|
|
[dependencies]
|
|
rstd = { package = "sr-std", path = "../sr-std", default-features = false }
|
|
parity-codec = { version = "4.1.1", default-features = false, features = ["derive"] }
|
|
rustc-hex = { version = "2.0", default-features = false }
|
|
serde = { version = "1.0", optional = true, features = ["derive"] }
|
|
twox-hash = { version = "1.2.0", optional = true }
|
|
byteorder = { version = "1.3.1", default-features = false }
|
|
primitive-types = { version = "0.4.0", default-features = false, features = ["codec"] }
|
|
impl-serde = { version = "0.1", optional = true }
|
|
wasmi = { version = "0.5.0", optional = true }
|
|
hash-db = { version = "0.14.0", default-features = false }
|
|
hash256-std-hasher = { version = "0.14.0", default-features = false }
|
|
ed25519-dalek = { version = "1.0.0-pre.1", optional = true }
|
|
base58 = { version = "0.1", optional = true }
|
|
blake2-rfc = { version = "0.2.18", optional = true }
|
|
schnorrkel = { version = "0.1.1", optional = true }
|
|
rand = { version = "0.6", optional = true }
|
|
sha2 = { version = "0.8", optional = true }
|
|
substrate-bip39 = { version = "0.2.2", optional = true }
|
|
tiny-bip39 = { version = "0.6.1", optional = true }
|
|
hex = { version = "0.3", optional = true }
|
|
regex = { version = "1.1", optional = true }
|
|
num-traits = { version = "0.2", default-features = false }
|
|
zeroize = { version = "0.9.2", default-features = false }
|
|
lazy_static = { version = "1.3", optional = true }
|
|
parking_lot = { version = "0.8", optional = true }
|
|
|
|
[dev-dependencies]
|
|
substrate-serializer = { path = "../serializer" }
|
|
pretty_assertions = "0.6"
|
|
hex-literal = "0.2"
|
|
rand = "0.6"
|
|
criterion = "0.2"
|
|
|
|
[[bench]]
|
|
name = "benches"
|
|
harness = false
|
|
|
|
[lib]
|
|
bench = false
|
|
|
|
[features]
|
|
default = ["std"]
|
|
std = [
|
|
"wasmi",
|
|
"lazy_static",
|
|
"parking_lot",
|
|
"primitive-types/std",
|
|
"primitive-types/serde",
|
|
"primitive-types/byteorder",
|
|
"primitive-types/rustc-hex",
|
|
"primitive-types/libc",
|
|
"impl-serde",
|
|
"parity-codec/std",
|
|
"hash256-std-hasher/std",
|
|
"hash-db/std",
|
|
"rstd/std",
|
|
"serde",
|
|
"rustc-hex/std",
|
|
"twox-hash",
|
|
"blake2-rfc",
|
|
"ed25519-dalek",
|
|
"hex",
|
|
"base58",
|
|
"substrate-bip39",
|
|
"tiny-bip39",
|
|
"serde",
|
|
"byteorder/std",
|
|
"rand",
|
|
"sha2",
|
|
"schnorrkel",
|
|
"regex",
|
|
"num-traits/std",
|
|
"zeroize/std"
|
|
]
|