Crates.io | enarx_test_011 |
lib.rs | enarx_test_011 |
version | 0.1.0 |
source | src |
created_at | 2021-10-27 11:37:23.910775 |
updated_at | 2021-10-27 11:37:23.910775 |
description | Enarx Keep Loader |
homepage | https://github.com/enarx/enarx |
repository | https://github.com/enarx/enarx |
max_upload_size | |
id | 472993 |
size | 560,025 |
This crate provides the enarx
executable, which is a tool for running
code inside an Enarx Keep - that is a hardware isolated environment using
technologies such as Intel SGX or AMD SEV.
For more information about the project and the technology used visit the Enarx Project home page.
Please see this wiki page for instructions.
Please see BUILD.md for instructions.
First install all the build dependencies (see BUILD.md).
Install directly from crates.io
:
$ cargo install --bin enarx -- enarx
or from the checked out git repository:
$ cargo install --bin enarx --path ./
Install the Webassembly rust toolchain:
$ rustup target install wasm32-wasi
Create simple rust program:
$ cargo init --bin hello-world
$ cd hello-world
$ echo 'fn main() { println!("Hello, Enarx!"); }' > src/main.rs
$ cargo build --release --target=wasm32-wasi
Assuming you did install the enarx
binary and have it in your $PATH
, you can
now run the Webassembly program in an Enarx keep.
$ enarx run target/wasm32-wasi/release/hello-world.wasm
[…]
Hello, Enarx!
If you want to suppress the debug output, add 2>/dev/null
.
enarx
will probe the machine it is running on in an attempt to deduce an
appropriate deployment backend. To see what backends are supported on your
system, run:
$ enarx info
You can manually select a backend with the --backend
option, or by
setting the ENARX_BACKEND
environment variable:
$ enarx run --backend=sgx target/wasm32-wasi/release/hello-world.wasm
$ ENARX_BACKEND=sgx enarx run target/wasm32-wasi/release/hello-world.wasm
License: Apache-2.0