bitwarden_uniffi/
uniffi_support.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
use bitwarden_crypto::{AsymmetricEncString, EncString};
use uuid::Uuid;

// Forward the type definitions to the main bitwarden crate
type DateTime = chrono::DateTime<chrono::Utc>;
uniffi::ffi_converter_forward!(DateTime, bitwarden_core::UniFfiTag, crate::UniFfiTag);
uniffi::ffi_converter_forward!(EncString, bitwarden_core::UniFfiTag, crate::UniFfiTag);
uniffi::ffi_converter_forward!(
    AsymmetricEncString,
    bitwarden_core::UniFfiTag,
    crate::UniFfiTag
);
uniffi::ffi_converter_forward!(Uuid, bitwarden_core::UniFfiTag, crate::UniFfiTag);