Skip to content

Commit d2041a3

Browse files
committed
Here we go again with the uniffi workaround
1 parent 419101d commit d2041a3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

crates/bitwarden-crypto/src/uniffi_support.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,10 @@ impl UniffiCustomTypeConverter for SensitiveVec {
7474
obj.expose().to_owned()
7575
}
7676
}
77+
78+
/// Uniffi doesn't seem to be generating the SensitiveVec unless it's being used by
79+
/// a record somewhere. This is a workaround to make sure the type is generated.
80+
#[derive(uniffi::Record)]
81+
struct SupportSensitiveVec {
82+
sensitive_string: SensitiveVec,
83+
}

0 commit comments

Comments
 (0)