Cargo Features

ark-module has no features set by default.

[dependencies]
ark-module = { version = "0.17.0-pre.24", features = ["behavior", "unstable-servlet", "with_async", "with_serde"] }
behavior

Enables behavior of ark-api

unstable-servlet = http, httparse

cmdlet?
applet
transform

Enables unstable of ark-api-ffi

with_async = futures

Enable async support.
This enables async functions in the APIs and the Wasm future runtime

Affects cmdlet::async_run

with_serde = flexbuffers, serde

Enable serialization support.
This enables serialization/deserialization support for most types

Affects applet::AppletPersist, applet::serialize_state, applet::deserialize_state

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

flexbuffers with_serde?

Enables flexbuffers

optional dependencies
for AppletPersist

futures with_async?
http unstable-servlet?

Enables http ^0.2.8

note: few types from this is part of the public API, so care has to be done on upgrades wrt to semver changes

httparse unstable-servlet?
serde with_serde?