Skip to main content

Crate bitwarden_ffi

Crate bitwarden_ffi 

Source
Expand description

Utilities for FFI bindings (WASM, UniFFI).

Re-exports proc macros from bitwarden-ffi-macro.

Attribute Macrosยง

wasm_export
Exports an impl block or a free function to JavaScript, in place of #[cfg_attr(feature = "wasm", wasm_bindgen(..))].
wasm_object
Declares a type that crosses the wasm ABI as an opaque handle, in place of #[cfg_attr(feature = "wasm", wasm_bindgen(..))] on a struct or an enum.
wasm_record
Declares a type that crosses the wasm ABI through serde, in place of #[cfg_attr(feature = "wasm", derive(Tsify), tsify(into_wasm_abi, from_wasm_abi))].