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-unknownrust target.binaryeninstalled forwasm-optandwasm2js.- npm packages must be installed in the
npmfolder. Runnpm ciinside:- OSS:
crates/bitwarden-wasm-internal/npm - Commercial:
crates/bitwarden-wasm-internal/bitwarden_license/npm
- OSS:
rustup target add wasm32-unknown-unknown
brew install binaryen§Building
# dev
./build.sh
# dev with commercial license
./build.sh -b
# release
./build.sh -r
# release with commercial license
./build.sh -r -bModules§
- client 🔒
- custom_
types 🔒 - init 🔒
- platform 🔒
- pure_
crypto 🔒 - ssh 🔒
Structs§
- Channel
Error - Deserialize
Error - JsCommunication
Backend - JavaScript implementation of the
CommunicationBackendtrait for IPC communication. - JsCommunication
Backend Sender - JavaScript interface for handling outgoing messages from the IPC framework.
- JsIpc
Client - JavaScript wrapper around the IPC client. For more information, see the IpcClient documentation.
- JsIpc
Client Subscription - JavaScript wrapper around the IPC client subscription. For more information, see the IpcClientSubscription documentation.
- JsSession
Repository - Thread safe JavaScript implementation of the
SessionRepositorytrait for IPC sessions. - Password
Manager Client - The main entry point for the Bitwarden SDK in WebAssembly environments
- RawJs
Session Repository - JavaScript interface for handling outgoing messages from the IPC framework.
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.