Skip to content

Commit

Permalink
feat: Intel code hidden for wasm32-wasi target
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Zak <richard@profian.com>
  • Loading branch information
rjzak committed Jun 14, 2022
1 parent ab52432 commit cb72101
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ rcrypto = ["rand", "rsa", "sha2", "num-integer", "num-traits"]

[dependencies]
x86_64 = { version = "^0.14.6", default-features = false }
xsave = { version = "^2.0.0", default-features = false }
openssl = { version = "^0.10.36", optional = true }
bitflags = "^1.3.2"

Expand All @@ -36,6 +35,9 @@ rand = { version = "^0.8.4", optional = true }
sha2 = { version = "0.10.2", optional = true }
rsa = { version = "^0.6.0", optional = true }

[target.'cfg(target_arch = "x86_64")'.dependencies]
xsave = { version = "^2.0.0", default-features = false }

[dev-dependencies]
testaso = "0.1"
rstest = "^0.12.0"
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ pub mod crypto;
pub mod page;
pub mod parameters;
pub mod signature;

#[cfg(target_arch = "x86_64")]
pub mod ssa;

/// SGX ENCLU Leaf Instructions
Expand Down

0 comments on commit cb72101

Please sign in to comment.