better WASM support
This commit is contained in:
parent
2b559b79f9
commit
84b358c934
3 changed files with 22 additions and 7 deletions
|
|
@ -1,6 +1,11 @@
|
|||
use double_ratchet_rs::{Ratchet, RatchetEncHeader};
|
||||
|
||||
#[cfg(not(feature = "std"))]
|
||||
extern crate alloc;
|
||||
|
||||
#[cfg(feature = "std")]
|
||||
extern crate std as alloc;
|
||||
|
||||
#[test]
|
||||
fn init() {
|
||||
let sk = [1; 32];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue