Skip to content

Commit 28d1e6f

Browse files
committed
Add dummy record to force WrappedSymmetricCryptoKey to be emitted in uniffi
1 parent a2dd716 commit 28d1e6f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

crates/bitwarden-crypto/src/uniffi_support.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,12 @@ impl UniffiCustomTypeConverter for UnsignedSharedKey {
5959
obj.to_string()
6060
}
6161
}
62+
63+
64+
// Uniffi doesn't emit unused types, this is a dummy record to ensure that the custom type
65+
// converters are emitted
66+
#[allow(dead_code)]
67+
#[derive(uniffi::Record)]
68+
struct UniffiConverterDummyRecord {
69+
wrapped_symmetric_key: WrappedSymmetricKey,
70+
}

0 commit comments

Comments
 (0)