awslabs / mls-rs

An implementation of Messaging Layer Security (RFC 9420)
Apache License 2.0
93 stars 18 forks source link

[uniffi] Use mls-rs-crypto-rustcrypto by default #125

Closed mgeisler closed 1 week ago

mgeisler commented 6 months ago

Issues:

Addresses #81.

Description of changes:

It is still possible to use mls-rs-crypto-openssl if one prefers this. This is controlled with two new Cargo features: “rustcrypto” and “openssl”.

I’m not sure if this is the best way to do this kind of compile-time switching, but this seems to be fairly simple while also working in my testing.

I’m of course happy to rename things if people have better ideas for the feature names!

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT license.