This repository has been archived by the owner on Aug 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Transition away from conflicting feature flags in favor of separate c…
…rates (#417) * Safer cursor * Create two separate svm-sdk crates * Remove ffi and mock features from svm-sdk-mock * Make svm-sdk and svm-sdk-mock two separate crates * Separate svm-sdk-storage * Separate host and storage in separate crates as well * Use default crate features for simplicity * Remove commented out dependencies * Remove some leftover dbg! calls
- Loading branch information
Showing
106 changed files
with
636 additions
and
387 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
extern crate svm_sdk_mock as svm_sdk; | ||
|
||
use svm_sdk as sdk; | ||
|
||
use svm_sdk::traits::Encoder; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"api":[{"doc":"","is_ctor":false,"is_fundable":false,"name":"load_addr","signature":{"params":[],"returns":{"type":"Address"}},"wasm_name":"load_addr"},{"doc":"","is_ctor":true,"is_fundable":false,"name":"initialize","signature":{"params":[{"name":"init","type":"Address"},{"name":"should_store","type":"bool"}],"returns":{"type":"bool"}},"wasm_name":"initialize"},{"doc":"","is_ctor":false,"is_fundable":false,"name":"store_addr","signature":{"params":[{"name":"addr","type":"Address"}],"returns":{}},"wasm_name":"store_addr"}],"schema":[{"byte_count":20,"id":0,"name":"addr","offset":0,"type":"Address"}]} | ||
{"api":[{"doc":"","is_ctor":false,"is_fundable":false,"name":"store_addr","signature":{"params":[{"name":"addr","type":"Address"}],"returns":{}},"wasm_name":"store_addr"},{"doc":"","is_ctor":false,"is_fundable":false,"name":"load_addr","signature":{"params":[],"returns":{"type":"Address"}},"wasm_name":"load_addr"},{"doc":"","is_ctor":true,"is_fundable":false,"name":"initialize","signature":{"params":[{"name":"init","type":"Address"},{"name":"should_store","type":"bool"}],"returns":{"type":"bool"}},"wasm_name":"initialize"}],"schema":[{"byte_count":20,"id":0,"name":"addr","offset":0,"type":"Address"}]} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
[package] | ||
name = "svm-sdk-host-ffi" | ||
version = "0.0.0" | ||
authors = ["Spacemesh SVM Team"] | ||
license = "MIT" | ||
edition = "2018" | ||
readme = "README.md" | ||
repository = "https://github.com/spacemeshos/svm" | ||
homepage = "https://github.com/spacemeshos/svm" | ||
description = "Spacemesh Virtual Machine" | ||
publish = false | ||
|
||
[dependencies] | ||
svm-sdk-alloc = { path = "../sdk-alloc", default-features = false } | ||
svm-sdk-host = { path = "../sdk-host" } | ||
svm-sdk-types = { path = "../sdk-types", default-features = false } | ||
svm-sdk-std = { path = "../sdk-std", default-features = false } | ||
svm-abi-encoder = { path = "../abi-encoder", default-features = false } | ||
svm-abi-decoder = { path = "../abi-decoder", default-features = false } | ||
|
||
[dev-dependencies] | ||
lazy_static = "1.4.0" | ||
|
||
[features] | ||
static-alloc = [ | ||
"svm-sdk-alloc/static-alloc", | ||
"svm-sdk-types/static-alloc", | ||
"svm-sdk-std/static-alloc", | ||
"svm-abi-encoder/static-alloc", | ||
"svm-abi-decoder/static-alloc", | ||
] | ||
dynamic-alloc = [ | ||
"svm-sdk-alloc/dynamic-alloc", | ||
"svm-sdk-types/dynamic-alloc", | ||
"svm-sdk-std/dynamic-alloc", | ||
"svm-abi-encoder/dynamic-alloc", | ||
"svm-abi-decoder/dynamic-alloc", | ||
] |
Oops, something went wrong.