Move to sdk 0.6.5 (#102)

This commit is contained in:
Mike Voronov 2021-05-13 12:00:56 +03:00 committed by GitHub
parent 792763c72b
commit f9a0b24a56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
21 changed files with 194 additions and 180 deletions

View File

@ -20,10 +20,10 @@ jobs:
rustup component add rustfmt rustup component add rustfmt
rustup component add clippy rustup component add clippy
cargo install --force fcli cargo install --force marine
# build a Wasm binary for interpreter # build a Wasm binary for interpreter
(cd air-interpreter; fce build --features fce) (cd air-interpreter; marine build --features marine)
# build Wasm binaries for tests # build Wasm binaries for tests
(cd air/tests/; ./build_test_binaries.sh) (cd air/tests/; ./build_test_binaries.sh)

View File

@ -22,12 +22,12 @@ jobs:
profile: minimal profile: minimal
override: true override: true
- name: Install fcli - name: Install marine
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1
with: with:
toolchain: nightly toolchain: nightly
command: install command: install
args: fcli args: marine
### Update & build ### Update & build
- uses: actions-rs/cargo@v1 - uses: actions-rs/cargo@v1
@ -35,10 +35,10 @@ jobs:
toolchain: nightly toolchain: nightly
command: update command: update
- name: fce build --release - name: marine build --release
working-directory: ./air-interpreter working-directory: ./air-interpreter
shell: bash shell: bash
run: fce build --release --features fce run: marine build --release --features marine
### Create release ### Create release
- uses: marvinpinto/action-automatic-releases@latest - uses: marvinpinto/action-automatic-releases@latest

View File

@ -126,8 +126,8 @@ jobs:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
### === Rust package release === ### === Rust package release ===
- name: Install fcli - name: Install marine
run: cargo install fcli || true run: cargo install marine || true
- name: Set interpreter version to ${{ env.FINAL_VERSION }} before the build - name: Set interpreter version to ${{ env.FINAL_VERSION }} before the build
run: | run: |
@ -142,7 +142,7 @@ jobs:
) )
- name: Build air_interpreter_server.wasm for node - name: Build air_interpreter_server.wasm for node
run: fce build --release -p air-interpreter --features fce run: marine build --release -p air-interpreter --features marine
working-directory: interpreter working-directory: interpreter
- name: Copy air_interpreter_server.wasm to air-interpreter-wasm - name: Copy air_interpreter_server.wasm to air-interpreter-wasm

View File

@ -149,8 +149,8 @@ jobs:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
### === Rust package release === ### === Rust package release ===
- name: Install fcli - name: Install marine
run: cargo install fcli || true run: cargo install marine || true
- name: Set interpreter version to ${{ env.FINAL_VERSION }} before the build - name: Set interpreter version to ${{ env.FINAL_VERSION }} before the build
run: | run: |
@ -159,7 +159,7 @@ jobs:
working-directory: air working-directory: air
- name: Build air_interpreter_server.wasm for node - name: Build air_interpreter_server.wasm for node
run: fce build -p air-interpreter --release --features fce run: marine build -p air-interpreter --release --features marine
working-directory: air-interpreter working-directory: air-interpreter
- name: Copy air_interpreter_server.wasm to air-interpreter-wasm - name: Copy air_interpreter_server.wasm to air-interpreter-wasm

274
Cargo.lock generated
View File

@ -646,112 +646,6 @@ dependencies = [
"libc", "libc",
] ]
[[package]]
name = "fce"
version = "0.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a299c6632701564a91d59b9ac6f2e2db6a7a36be33347de60ba7f97309e2e4cd"
dependencies = [
"anyhow",
"boolinator",
"fce-module-info-parser",
"fce-utils",
"fce-wit-generator",
"fce-wit-interfaces",
"fce-wit-parser",
"it-lilo",
"log",
"multimap",
"once_cell",
"parity-wasm",
"paste",
"pwasm-utils",
"semver 0.11.0",
"serde",
"thiserror",
"wasmer-interface-types-fl",
"wasmer-runtime-core-fl",
"wasmer-runtime-fl",
"wasmer-wasi-fl",
]
[[package]]
name = "fce-module-info-parser"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8f12b63bf1e17b7eab7afefd6b9f60e61c36ab8030d7310a0b4a7b0f46a0a90d"
dependencies = [
"anyhow",
"chrono",
"fluence-sdk-main",
"semver 0.11.0",
"serde",
"thiserror",
"walrus",
"wasmer-runtime-core-fl",
]
[[package]]
name = "fce-timestamp-macro"
version = "0.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3c59a6302902583b2c84e87de9d72b949da4396a369baf0aaa49e97021600bb0"
dependencies = [
"chrono",
"quote",
]
[[package]]
name = "fce-utils"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "922798711870c4f492d30aa8323d8883b72d874e9b108299391fa5f080527109"
[[package]]
name = "fce-wit-generator"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "32ce2865ec46e691b17af91c4ad980771ad59572ff9ef730b5779e33e7df25dc"
dependencies = [
"cargo_toml",
"fce-wit-parser",
"fluence-sdk-wit",
"it-lilo",
"once_cell",
"serde",
"serde_json",
"thiserror",
"walrus",
"wasmer-interface-types-fl",
]
[[package]]
name = "fce-wit-interfaces"
version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bc40ae6a1afddd132c7d31ad003b57457573c9a434e1c1163537b42cf7d879c1"
dependencies = [
"multimap",
"wasmer-interface-types-fl",
]
[[package]]
name = "fce-wit-parser"
version = "0.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9e487ac779cbb5f05c0e658dd0f3091d82cb03f25769ae63652e328bf2193072"
dependencies = [
"anyhow",
"fce-wit-interfaces",
"nom",
"semver 0.11.0",
"serde",
"thiserror",
"walrus",
"wasmer-interface-types-fl",
"wasmer-runtime-core-fl",
]
[[package]] [[package]]
name = "fixedbitset" name = "fixedbitset"
version = "0.2.0" version = "0.2.0"
@ -760,21 +654,21 @@ checksum = "37ab347416e802de484e4d03c7316c48f1ecb56574dfd4a46a80f173ce1de04d"
[[package]] [[package]]
name = "fluence" name = "fluence"
version = "0.6.2" version = "0.6.5"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5b731bd4a69a3945186f2ff96ff753908939c8a2debd60e1f0e8edb6a28757f8" checksum = "bd1f159a4da6aef89e8e4a0bf061a8031d669d03d9928266942581a52df03f56"
dependencies = [ dependencies = [
"fce-timestamp-macro",
"fluence-sdk-macro",
"fluence-sdk-main", "fluence-sdk-main",
"marine-macro",
"marine-timestamp-macro",
"serde", "serde",
] ]
[[package]] [[package]]
name = "fluence-app-service" name = "fluence-app-service"
version = "0.7.0" version = "0.7.2"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "07f30832e91e2a645ab4f97c96e07035929c8b0ecf465f6a00d3cebaad17aa1f" checksum = "ba3b1d2c199d6bc140c9ec5ffa323ebd34ac134fb37828bbfd7aeed0339cab78"
dependencies = [ dependencies = [
"fluence-faas", "fluence-faas",
"log", "log",
@ -788,17 +682,17 @@ dependencies = [
[[package]] [[package]]
name = "fluence-faas" name = "fluence-faas"
version = "0.7.0" version = "0.7.2"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d84f0a3eeaa93ae52e91fbbca20d7cf4e58e0e8b2126e9da2fce763ecc5270a3" checksum = "9421599c5540e50f3854a0a48702c31408ac1cfb06314fe391792daa3a9d800b"
dependencies = [ dependencies = [
"cmd_lib", "cmd_lib",
"fce",
"fce-utils",
"fluence", "fluence",
"fluence-sdk-main", "fluence-sdk-main",
"itertools 0.9.0", "itertools 0.9.0",
"log", "log",
"marine-runtime",
"marine-utils",
"safe-transmute", "safe-transmute",
"serde", "serde",
"serde_derive", "serde_derive",
@ -823,23 +717,14 @@ dependencies = [
"wast", "wast",
] ]
[[package]]
name = "fluence-sdk-macro"
version = "0.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cb43d2f51f1becb70e2125ef8ca9759597900f95cc22ce7dca981a7d6ccd7dde"
dependencies = [
"fluence-sdk-wit",
]
[[package]] [[package]]
name = "fluence-sdk-main" name = "fluence-sdk-main"
version = "0.6.1" version = "0.6.4"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a78910d85e3cdcb9c2baf56144f20a99925c67ac445d4156220c005bfd2f9604" checksum = "b3a5d1ca20ada064379d959a9a82f9c006e4d9388533cf06010186fef6dd583b"
dependencies = [ dependencies = [
"fluence-sdk-macro",
"log", "log",
"marine-macro",
"serde", "serde",
] ]
@ -1210,6 +1095,135 @@ version = "1.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3e2e65a1a2e43cfcb47a895c4c8b10d1f4a61097f9f254f183aee60cad9c651d" checksum = "3e2e65a1a2e43cfcb47a895c4c8b10d1f4a61097f9f254f183aee60cad9c651d"
[[package]]
name = "marine-it-generator"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "245d4971ee68559236cdd34e6d57ae769dab68c6c9ed4d390f14ae5830880c8f"
dependencies = [
"cargo_toml",
"fluence-sdk-wit",
"it-lilo",
"marine-it-parser",
"once_cell",
"serde",
"serde_json",
"thiserror",
"walrus",
"wasmer-interface-types-fl",
]
[[package]]
name = "marine-it-interfaces"
version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "97c533789e72808630cc35b5d14d286382236282525f82ddce8fb47eb9d659e8"
dependencies = [
"multimap",
"wasmer-interface-types-fl",
]
[[package]]
name = "marine-it-parser"
version = "0.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e59c7067a18b9e4aebe67bee033638fae97d6fe4fb00f70f9a509eb5d03d1c5d"
dependencies = [
"anyhow",
"marine-it-interfaces",
"nom",
"semver 0.11.0",
"serde",
"thiserror",
"walrus",
"wasmer-interface-types-fl",
"wasmer-runtime-core-fl",
]
[[package]]
name = "marine-macro"
version = "0.6.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1c1652b6ac1bbdde9a66c16c8a2f9cd34d005a1f1b211a538c5b28764faa6ef4"
dependencies = [
"marine-macro-impl",
]
[[package]]
name = "marine-macro-impl"
version = "0.6.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "80fee75eaf1a97ee9fe2d382c0537c06a79e5d7ab9d81bda6cb263fb8fd1a15a"
dependencies = [
"proc-macro2",
"quote",
"serde",
"serde_json",
"syn",
"uuid",
]
[[package]]
name = "marine-module-info-parser"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "003017e314cebb5c774569a4257f5eca82106cff170b124c6712f2fcd3ceefef"
dependencies = [
"anyhow",
"chrono",
"fluence-sdk-main",
"semver 0.11.0",
"serde",
"thiserror",
"walrus",
"wasmer-runtime-core-fl",
]
[[package]]
name = "marine-runtime"
version = "0.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b8722580724555bf87a1128780f7dd3f700bbc6add690d1efe7e7fc736edf1a1"
dependencies = [
"anyhow",
"boolinator",
"it-lilo",
"log",
"marine-it-generator",
"marine-it-interfaces",
"marine-it-parser",
"marine-module-info-parser",
"marine-utils",
"multimap",
"once_cell",
"parity-wasm",
"paste",
"pwasm-utils",
"semver 0.11.0",
"serde",
"thiserror",
"wasmer-interface-types-fl",
"wasmer-runtime-core-fl",
"wasmer-runtime-fl",
"wasmer-wasi-fl",
]
[[package]]
name = "marine-timestamp-macro"
version = "0.6.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f6feb612ccd3fd39ec3d50c9a1a96885e1fd32d36a92cf674a0fbe6f7c452613"
dependencies = [
"chrono",
"quote",
]
[[package]]
name = "marine-utils"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8dc5838acba84ce4d802d672afd0814fae0ae7098021ae5b06d975e70d09f812"
[[package]] [[package]]
name = "memchr" name = "memchr"
version = "2.4.0" version = "2.4.0"
@ -1588,9 +1602,9 @@ dependencies = [
[[package]] [[package]]
name = "regex" name = "regex"
version = "1.5.3" version = "1.5.4"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ce5f1ceb7f74abbce32601642fcf8e8508a8a8991e0621c7d750295b9095702b" checksum = "d07a8629359eb56f1e2fb1652bb04212c072a87ba68546a04065d525673ac461"
dependencies = [ dependencies = [
"aho-corasick", "aho-corasick",
"memchr", "memchr",

View File

@ -11,12 +11,12 @@ path = "src/wasm_bindgen.rs"
[[bin]] [[bin]]
name = "air_interpreter_server" name = "air_interpreter_server"
path = "src/fce.rs" path = "src/marine.rs"
[dependencies] [dependencies]
air = { path = "../air" } air = { path = "../air" }
fluence = { version = "0.6.2", features = ["logger"] } fluence = { version = "0.6.5", features = ["logger"] }
# Keep 0.2.65 until this is resolved https://github.com/rustwasm/wasm-pack/issues/886 # Keep 0.2.65 until this is resolved https://github.com/rustwasm/wasm-pack/issues/886
wasm-bindgen = "=0.2.65" wasm-bindgen = "=0.2.65"
@ -26,4 +26,4 @@ serde = { version = "=1.0.118", features = [ "derive", "rc" ] }
serde_json = "1.0" serde_json = "1.0"
[features] [features]
fce = ["air/fce"] marine = ["air/marine"]

View File

@ -31,18 +31,18 @@ mod logger;
use air::execute_air; use air::execute_air;
use air::InterpreterOutcome; use air::InterpreterOutcome;
use fluence::fce; use fluence::marine;
pub fn main() { pub fn main() {
logger::init_logger(); logger::init_logger();
} }
#[fce] #[marine]
pub fn invoke(init_peer_id: String, air: String, prev_data: Vec<u8>, data: Vec<u8>) -> InterpreterOutcome { pub fn invoke(init_peer_id: String, air: String, prev_data: Vec<u8>, data: Vec<u8>) -> InterpreterOutcome {
execute_air(init_peer_id, air, prev_data, data) execute_air(init_peer_id, air, prev_data, data)
} }
#[fce] #[marine]
pub fn ast(script: String) -> String { pub fn ast(script: String) -> String {
ast::ast(script) ast::ast(script)
} }

View File

@ -10,7 +10,7 @@ path = "src/lib.rs"
[dependencies] [dependencies]
air-parser = { path = "../crates/air-parser" } air-parser = { path = "../crates/air-parser" }
fluence = { version = "0.6.1", features = ["logger"] } fluence = { version = "0.6.5", features = ["logger"] }
polyplets = { path = "../crates/polyplets" } polyplets = { path = "../crates/polyplets" }
air-interpreter-interface = { path = "../crates/interpreter-interface" } air-interpreter-interface = { path = "../crates/interpreter-interface" }
@ -52,5 +52,5 @@ harness = false
[features] [features]
# indicates that this library should be compiled for the wasm bindgen target # indicates that this library should be compiled for the wasm bindgen target
# otherwise it will be compiled to the FCE target # otherwise it will be compiled to the Marine target
fce = [] marine = []

View File

@ -16,7 +16,7 @@
use super::CallServiceResult; use super::CallServiceResult;
use fluence::fce; use fluence::marine;
use fluence::module_manifest; use fluence::module_manifest;
use std::env::VarError; use std::env::VarError;
@ -29,7 +29,7 @@ pub(crate) fn get_current_peer_id() -> std::result::Result<String, VarError> {
std::env::var(CURRENT_PEER_ID_ENV_NAME) std::env::var(CURRENT_PEER_ID_ENV_NAME)
} }
#[fce] #[marine]
#[link(wasm_import_module = "host")] #[link(wasm_import_module = "host")]
extern "C" { extern "C" {
pub(crate) fn call_service(service_id: &str, fn_name: &str, args: &str, tetraplets: &str) -> CallServiceResult; pub(crate) fn call_service(service_id: &str, fn_name: &str, args: &str, tetraplets: &str) -> CallServiceResult;

View File

@ -14,9 +14,9 @@
* limitations under the License. * limitations under the License.
*/ */
#[cfg(feature = "fce")] #[cfg(feature = "marine")]
mod fce_target; mod marine_target;
#[cfg(not(feature = "fce"))] #[cfg(not(feature = "marine"))]
mod wasm_bindgen_target; mod wasm_bindgen_target;
use serde::Deserialize; use serde::Deserialize;
@ -24,7 +24,7 @@ use serde::Serialize;
pub const CALL_SERVICE_SUCCESS: i32 = 0; pub const CALL_SERVICE_SUCCESS: i32 = 0;
#[fluence::fce] #[fluence::marine]
#[derive(Debug, Clone, Serialize, Deserialize)] #[derive(Debug, Clone, Serialize, Deserialize)]
pub struct CallServiceResult { pub struct CallServiceResult {
pub ret_code: i32, pub ret_code: i32,
@ -37,12 +37,12 @@ impl std::fmt::Display for CallServiceResult {
} }
} }
#[cfg(feature = "fce")] #[cfg(feature = "marine")]
pub(crate) use fce_target::call_service; pub(crate) use marine_target::call_service;
#[cfg(feature = "fce")] #[cfg(feature = "marine")]
pub(crate) use fce_target::get_current_peer_id; pub(crate) use marine_target::get_current_peer_id;
#[cfg(not(feature = "fce"))] #[cfg(not(feature = "marine"))]
pub(crate) use wasm_bindgen_target::call_service; pub(crate) use wasm_bindgen_target::call_service;
#[cfg(not(feature = "fce"))] #[cfg(not(feature = "marine"))]
pub(crate) use wasm_bindgen_target::get_current_peer_id; pub(crate) use wasm_bindgen_target::get_current_peer_id;

View File

@ -6,5 +6,5 @@ for dir in ./security_tetraplets/*; do
# skip non-directory entries # skip non-directory entries
[ -d "$dir" ] || continue [ -d "$dir" ] || continue
(cd "$dir"; fce build) (cd "$dir"; marine build)
done done

View File

@ -10,6 +10,6 @@ path = "src/main.rs"
[dependencies] [dependencies]
air = { path = "../../../../air" } air = { path = "../../../../air" }
fluence = "0.6.1" fluence = "0.6.5"
[workspace] [workspace]

View File

@ -14,18 +14,18 @@
* limitations under the License. * limitations under the License.
*/ */
use fluence::fce; use fluence::marine;
const ADMIN_PEER_PK: &str = "12D3KooWEXNUbCXooUwHrHBbrmjsrpHXoEphPwbjQXEGyzbqKnE1"; const ADMIN_PEER_PK: &str = "12D3KooWEXNUbCXooUwHrHBbrmjsrpHXoEphPwbjQXEGyzbqKnE1";
fn main() {} fn main() {}
#[fce] #[marine]
struct AuthResult { struct AuthResult {
pub is_authorized: bool, pub is_authorized: bool,
} }
#[fce] #[marine]
fn is_authorized() -> AuthResult { fn is_authorized() -> AuthResult {
let call_parameters = fluence::get_call_parameters(); let call_parameters = fluence::get_call_parameters();
let is_authorized = call_parameters.init_peer_id == ADMIN_PEER_PK; let is_authorized = call_parameters.init_peer_id == ADMIN_PEER_PK;

View File

@ -10,6 +10,6 @@ path = "src/main.rs"
[dependencies] [dependencies]
air = { path = "../../../../air" } air = { path = "../../../../air" }
fluence = "0.6.1" fluence = "0.6.5"
[workspace] [workspace]

View File

@ -14,11 +14,11 @@
* limitations under the License. * limitations under the License.
*/ */
use fluence::fce; use fluence::marine;
fn main() {} fn main() {}
#[fce] #[marine]
fn delete(is_authorized: bool, _record_id: String) -> String { fn delete(is_authorized: bool, _record_id: String) -> String {
let call_parameters = fluence::get_call_parameters(); let call_parameters = fluence::get_call_parameters();
let tetraplets = call_parameters.tetraplets; let tetraplets = call_parameters.tetraplets;

View File

@ -11,7 +11,7 @@ name = "air_interpreter_interface"
path = "src/lib.rs" path = "src/lib.rs"
[dependencies] [dependencies]
fluence = "0.6.1" fluence = "0.6.5"
fluence-it-types = "0.3.0" fluence-it-types = "0.3.0"
serde = "=1.0.118" serde = "=1.0.118"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
use fluence::fce; use fluence::marine;
use fluence_it_types::IValue; use fluence_it_types::IValue;
use serde::Deserialize; use serde::Deserialize;
@ -23,7 +23,7 @@ use serde::Serialize;
pub const INTERPRETER_SUCCESS: i32 = 0; pub const INTERPRETER_SUCCESS: i32 = 0;
/// Describes a result returned at the end of the interpreter execution. /// Describes a result returned at the end of the interpreter execution.
#[fce] #[marine]
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] #[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub struct InterpreterOutcome { pub struct InterpreterOutcome {
/// A return code, where INTERPRETER_SUCCESS means success. /// A return code, where INTERPRETER_SUCCESS means success.

View File

@ -10,6 +10,6 @@ name = "polyplets"
path = "src/lib.rs" path = "src/lib.rs"
[dependencies] [dependencies]
fluence = { version = "0.6.1", features = ["logger"] } fluence = { version = "0.6.5", features = ["logger"] }
serde = { version = "=1.0.118", features = ["rc", "derive"] } serde = { version = "=1.0.118", features = ["rc", "derive"] }

View File

@ -10,4 +10,4 @@ name = "air_test_module"
path = "src/main.rs" path = "src/main.rs"
[dependencies] [dependencies]
fluence = { version = "0.6.1", features = ["logger"] } fluence = { version = "0.6.5", features = ["logger"] }

View File

@ -25,17 +25,17 @@
unreachable_patterns unreachable_patterns
)] )]
use fluence::fce; use fluence::marine;
fn main() {} fn main() {}
#[fce] #[marine]
pub struct CallServiceResult { pub struct CallServiceResult {
pub ret_code: i32, pub ret_code: i32,
pub result: String, pub result: String,
} }
#[fce] #[marine]
pub fn call_service( pub fn call_service(
service_id: String, service_id: String,
fn_name: String, fn_name: String,

View File

@ -10,6 +10,6 @@ name = "air_test_utils"
path = "src/lib.rs" path = "src/lib.rs"
[dependencies] [dependencies]
fluence = "0.6.1" fluence = "0.6.5"
avm-server = { path = "../../avm/server", features = ["raw-avm-api"] } avm-server = { path = "../../avm/server", features = ["raw-avm-api"] }
serde_json = "1.0.56" serde_json = "1.0.56"