Skip to content

Commit 23a3ac3

Browse files
fixup! refactor(ffi/rs): export static Database constructors on wasm
1 parent dfbebd3 commit 23a3ac3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crypto-ffi/src/database/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,14 @@ impl Database {
8181
}
8282

8383
/// Open or create a [Database].
84-
#[cfg(not(feature = "wasm"))]
84+
#[cfg(not(any(feature = "wasm", target_os = "unknown")))]
8585
#[uniffi::export]
8686
pub async fn open_database(location: &str, key: Arc<DatabaseKey>) -> CoreCryptoResult<Database> {
8787
Database::open(location, key).await
8888
}
8989

9090
/// Create an in-memory [Database] whose data will be lost when the instance is dropped.
91-
#[cfg(not(feature = "wasm"))]
91+
#[cfg(not(any(feature = "wasm", target_os = "unknown")))]
9292
#[uniffi::export]
9393
pub async fn in_memory_database(key: Arc<DatabaseKey>) -> CoreCryptoResult<Database> {
9494
Database::in_memory(key).await

0 commit comments

Comments
 (0)