From 23a9c623daa889e0438e2b35b1680dda0b5ba85a Mon Sep 17 00:00:00 2001 From: Hinton Date: Tue, 13 Feb 2024 20:29:29 +0100 Subject: [PATCH] Expose exporters for mobile --- crates/bitwarden-uniffi/src/lib.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/crates/bitwarden-uniffi/src/lib.rs b/crates/bitwarden-uniffi/src/lib.rs index 13253d9a6..b29441fdd 100644 --- a/crates/bitwarden-uniffi/src/lib.rs +++ b/crates/bitwarden-uniffi/src/lib.rs @@ -20,7 +20,7 @@ pub mod docs; use crypto::ClientCrypto; use error::Result; use platform::ClientPlatform; -use tool::ClientGenerators; +use tool::{ClientExporters, ClientGenerators}; use vault::ClientVault; #[derive(uniffi::Object)] @@ -53,6 +53,11 @@ impl Client { Arc::new(ClientGenerators(self)) } + /// Exporters + pub fn exporters(self: Arc) -> Arc { + Arc::new(ClientExporters(self)) + } + /// Auth operations pub fn auth(self: Arc) -> Arc { Arc::new(ClientAuth(self))