Crate bitwarden_wasm_internal

Source
Expand description

§bitwarden-wasm-internal

Note: This is only for internal use. Bitwarden will not provide any support for this crate.

Bitwarden WASM internal exposes WebAssembly bindings for the Bitwarden SDK. This crate should contain no logic but rather only handle WASM unique conversions and bindings. Business logic MUST be placed in the relevant feature crates.

§Getting Started

§Requirements

  • wasm32-unknown-unknown rust target.
  • wasm-bindgen-cli installed.
  • binaryen installed for wasm-opt and wasm2js.
rustup target add wasm32-unknown-unknown
cargo install -f wasm-bindgen-cli
brew install binaryen

§Building

# dev
./build.sh

# release
./build.sh -r

Modules§

client 🔒
custom_types 🔒
init 🔒
platform 🔒
pure_crypto 🔒
ssh 🔒

Structs§

BitwardenClient
ChannelError
DeserializeError
JsCommunicationBackend
JavaScript implementation of the CommunicationBackend trait for IPC communication.
JsCommunicationBackendSender
JavaScript interface for handling outgoing messages from the IPC framework.
JsIpcClient
JavaScript wrapper around the IPC client. For more information, see the IpcClient documentation.
JsIpcClientSubscription
JavaScript wrapper around the IPC client subscription. For more information, see the IpcClientSubscription documentation.

Functions§

init_sdk
ipc_register_discover_handler
Registers a DiscoverHandler so that the client can respond to DiscoverRequests.
ipc_request_discover
Sends a DiscoverRequest to the specified destination and returns the response.