Refactor avm-server interface mod to new crate (#294)

* Refactor `avm-server` interface mod to new crate (#294)

The new crate name is `avm-interface`.

It allows to build fully native air-trace, including pure WASM build.

* Make fully native air-trace build

Unless `wasm` feature is enabled (default), fully native build is
produced.  You may build WASM air-trace binary with

`cargo build --target wasm32-wasi --no-default-features --release -p air-trace`

* Fix tracing output on native air-trace build

Wrong option was used.
This commit is contained in:
Ivan Boldyrev
2022-08-19 12:29:21 +03:00
committed by GitHub
parent dcab0023d8
commit 5c7e88e0f2
32 changed files with 221 additions and 131 deletions

View File

@ -14,6 +14,7 @@
* limitations under the License.
*/
#[cfg(feature = "marine")]
use marine_rs_sdk::marine;
use serde::Deserialize;
use serde::Serialize;
@ -23,7 +24,7 @@ pub type CallRequests = HashMap<u32, CallRequestParams>;
/// Contains arguments of a call instruction and all other necessary information
/// required for calling a service.
#[marine]
#[cfg_attr(feature = "marine", marine)]
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub struct CallRequestParams {
/// Id of a service that should be called.