Skip to content

Commit

Permalink
Expose exporters for mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
Hinton committed Feb 13, 2024
1 parent 16f4cc5 commit 23a9c62
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion crates/bitwarden-uniffi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down Expand Up @@ -53,6 +53,11 @@ impl Client {
Arc::new(ClientGenerators(self))
}

/// Exporters
pub fn exporters(self: Arc<Self>) -> Arc<ClientExporters> {
Arc::new(ClientExporters(self))
}

Check warning on line 59 in crates/bitwarden-uniffi/src/lib.rs

View check run for this annotation

Codecov / codecov/patch

crates/bitwarden-uniffi/src/lib.rs#L57-L59

Added lines #L57 - L59 were not covered by tests

/// Auth operations
pub fn auth(self: Arc<Self>) -> Arc<ClientAuth> {
Arc::new(ClientAuth(self))
Expand Down

0 comments on commit 23a9c62

Please sign in to comment.