Cargo Features

wasefire-applet-api has no features set by default.

[dependencies]
wasefire-applet-api = { version = "0.9.0", features = ["host", "wasm", "api-button", "api-clock", "api-crypto-cbc", "api-crypto-ccm", "api-crypto-ec", "api-crypto-ecdh", "api-crypto-ecdsa", "api-crypto-ed25519", "api-crypto-gcm", "api-crypto-hash", "api-crypto-hkdf", "api-crypto-hmac", "api-fingerprint-matcher", "api-fingerprint-sensor", "api-gpio", "api-led", "api-platform", "api-platform-protocol", "api-platform-update", "api-rng", "api-store", "api-store-fragment", "api-timer", "api-uart", "api-usb-ctap", "api-usb-serial", "api-vendor", "full-api", "native", "internal-api-crypto-hash"] }
host

Compiles for host or wasm (choose exactly one).

Enables derive-where and sealed

wasm
api-button full-api?

API features.

Enables api-button of wasefire-applet-api-macro

api-clock full-api?

Enables api-clock of wasefire-applet-api-macro

api-crypto-cbc full-api?

Enables api-crypto-cbc of wasefire-applet-api-macro

api-crypto-ccm full-api?

Enables api-crypto-ccm of wasefire-applet-api-macro

api-crypto-ec full-api?

Enables api-crypto-ec of wasefire-applet-api-macro

api-crypto-ecdh full-api?

Enables api-crypto-ecdh of wasefire-applet-api-macro

api-crypto-ecdsa full-api?

Enables api-crypto-ecdsa of wasefire-applet-api-macro

api-crypto-ed25519 full-api?

Enables api-crypto-ed25519 of wasefire-applet-api-macro

api-crypto-gcm full-api?

Enables api-crypto-gcm of wasefire-applet-api-macro

api-crypto-hash full-api? = internal-api-crypto-hash

Enables api-crypto-hash of wasefire-applet-api-macro

api-crypto-hkdf full-api? = internal-api-crypto-hash

Enables api-crypto-hkdf of wasefire-applet-api-macro

api-crypto-hmac full-api? = internal-api-crypto-hash

Enables api-crypto-hmac of wasefire-applet-api-macro

api-fingerprint-matcher full-api?

Enables api-fingerprint-matcher of wasefire-applet-api-macro

api-fingerprint-sensor full-api?

Enables api-fingerprint-sensor of wasefire-applet-api-macro

api-gpio full-api?

Enables api-gpio of wasefire-applet-api-macro

api-led full-api?

Enables api-led of wasefire-applet-api-macro

api-platform full-api?

Enables api-platform of wasefire-applet-api-macro

api-platform-protocol full-api?

Enables api-platform-protocol of wasefire-applet-api-macro

api-platform-update full-api?

Enables api-platform-update of wasefire-applet-api-macro

api-rng full-api?

Enables api-rng of wasefire-applet-api-macro

api-store full-api?

Enables api-store of wasefire-applet-api-macro

api-store-fragment full-api?

Enables api-store-fragment of wasefire-applet-api-macro

api-timer full-api?

Enables api-timer of wasefire-applet-api-macro

api-uart full-api?

Enables api-uart of wasefire-applet-api-macro

api-usb-ctap full-api?

Enables api-usb-ctap of wasefire-applet-api-macro

api-usb-serial full-api?

Enables api-usb-serial of wasefire-applet-api-macro

api-vendor full-api?

Enables api-vendor of wasefire-applet-api-macro

full-api = api-button, api-clock, api-crypto-cbc, api-crypto-ccm, api-crypto-ec, api-crypto-ecdh, api-crypto-ecdsa, api-crypto-ed25519, api-crypto-gcm, api-crypto-hash, api-crypto-hkdf, api-crypto-hmac, api-fingerprint-matcher, api-fingerprint-sensor, api-gpio, api-led, api-platform, api-platform-protocol, api-platform-update, api-rng, api-store, api-store-fragment, api-timer, api-uart, api-usb-ctap, api-usb-serial, api-vendor

Enables all API features (unstable for host).

native

Implements the API with weak symbols to permit custom definitions (only relevant in wasm mode).

The applet API functions, like env_dp, have a default implementation calling into an env_dispatch function, which in turn has a default implementation of panicking. The env_dispatch function takes 3 arguments: the link name, a pointer to the parameters, and a pointer to the results.

Enables wasefire-logger

internal-api-crypto-hash api-crypto-hash? api-crypto-hkdf? api-crypto-hmac?

Internal features.