Skip to content

Commit

Permalink
Moved cfg guard from jasmin submodules to jasmin module.
Browse files Browse the repository at this point in the history
  • Loading branch information
xvzcf committed Aug 1, 2023
1 parent 6e907ae commit c12a302
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
8 changes: 0 additions & 8 deletions src/jasmin.rs
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
pub mod chacha20;
pub mod poly1305;

#[cfg(any(target_os = "linux", target_os = "macos"))]
pub mod sha2;

#[cfg(any(target_os = "linux", target_os = "macos"))]
pub mod sha3;

#[cfg(any(target_os = "linux", target_os = "macos"))]
pub mod x25519;

#[cfg(any(target_os = "linux", target_os = "macos"))]
pub mod kyber_derand;

#[cfg(test)]
Expand Down
5 changes: 4 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ pub(crate) mod hw_detection;
pub use hw_detection::aes_ni_support;

// Jasmin
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
#[cfg(all(
any(target_arch = "x86", target_arch = "x86_64"),
any(target_os = "linux", target_os = "macos")
))]
pub(crate) mod jasmin;

// libcrux
Expand Down

0 comments on commit c12a302

Please sign in to comment.