Skip to content

Commit

Permalink
eif_build: Move from examples directory into its own workspace
Browse files Browse the repository at this point in the history
Now that we've extended the eif_build tool to be very useful outside of
example use cases, let's make it its own stand alone target. You can
easily compile it with

  $ cargo build -p eif_build

Signed-off-by: Alexander Graf <[email protected]>
  • Loading branch information
agraf committed Jul 19, 2024
1 parent 071b921 commit 1546692
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 2 deletions.
6 changes: 6 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,9 @@ aws-nitro-enclaves-cose = "0.5"
openssl = "0.10"
serde_cbor = "0.11"
chrono = { version = "0.4", default-features = false, features = ["clock"]}

[workspace]
members = [
".", # aws-nitro-enclaves-image-format
"eif_build", # The eif_build CLI tool
]
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ This project is licensed under the Apache-2.0 License.
To compile the `eif_build` tool, run

```sh
$ cargo build --examples --release
$ cargo build --all --release
```

The resulting binary will be under `./target/release/examples/eif_build`.
The resulting binary will be under `./target/release/eif_build`.

## Usage

Expand Down
20 changes: 20 additions & 0 deletions eif_build/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[package]
name = "eif_build"
version = "0.2.0"
authors = ["The AWS Nitro Enclaves Team <[email protected]>"]
edition = "2018"
license = "Apache-2.0"
description = "This CLI tool provides a low level path to assemble an enclave image format (EIF) file used in AWS Nitro Enclaves."
repository = "https://github.com/aws/aws-nitro-enclaves-image-format"
readme = "README.md"
keywords = ["Nitro", "Enclaves", "AWS", "EIF"]
rust-version = "1.68"

[dependencies]
aws-nitro-enclaves-image-format = { path = ".." }
sha2 = "0.9.5"
serde = { version = ">=1.0", features = ["derive"] }
serde_json = "1.0"
clap = "3.2"
chrono = { version = "0.4", default-features = false, features = ["clock"]}

File renamed without changes.

0 comments on commit 1546692

Please sign in to comment.