We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Database
1 parent dfbebd3 commit 23a3ac3Copy full SHA for 23a3ac3
crypto-ffi/src/database/mod.rs
@@ -81,14 +81,14 @@ impl Database {
81
}
82
83
/// Open or create a [Database].
84
-#[cfg(not(feature = "wasm"))]
+#[cfg(not(any(feature = "wasm", target_os = "unknown")))]
85
#[uniffi::export]
86
pub async fn open_database(location: &str, key: Arc<DatabaseKey>) -> CoreCryptoResult<Database> {
87
Database::open(location, key).await
88
89
90
/// Create an in-memory [Database] whose data will be lost when the instance is dropped.
91
92
93
pub async fn in_memory_database(key: Arc<DatabaseKey>) -> CoreCryptoResult<Database> {
94
Database::in_memory(key).await
0 commit comments