-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduced a Rust workspace for consolidating build dependencies
Note that this workspace only includes the high-level (platform-agnostic?) Veracruz libraries. This specifically excludes: - rust-examples/*, which compile to WebAssembly - runtime-manager/root-enclaves, sdks which have special requirements This was a surprisingly unintrusive change, though required a few tweaks: - Fixed dependencies that disagreed, this is probably a good thing anyways - Consolidated build profiles. There are package-specific build-profiles, but the only customization we had was for profile.release, and I suspect the crates that didn't customize profile.release were just never compiled outside of debug mode. - Consolidated patches. This is probably a good thing as I suspect that the patches were required for all dependent crates, and this will reduce mistakes when adding new crates in the future.
- Loading branch information
Showing
16 changed files
with
64 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
[workspace] | ||
members = [ | ||
"execution-engine", | ||
"nitro-root-enclave-server", | ||
"platform-services", | ||
"proxy-attestation-server", | ||
"psa-attestation", | ||
"runtime-manager-bind", | ||
"sdk/data-generators/*", | ||
"sdk/freestanding-execution-engine", | ||
"session-manager", | ||
"sgx-root-enclave-bind", | ||
"test-collateral/generate-policy", | ||
"transport-protocol", | ||
"veracruz-client", | ||
"veracruz-server", | ||
"veracruz-server-test", | ||
"veracruz-test", | ||
"veracruz-utils", | ||
] | ||
exclude = [ | ||
# we exclude rust-examples as these are actually WebAssembly programs | ||
"sdk/rust-examples", | ||
# we also exclude all enclaves as these require special build rules | ||
"nitro-root-enclave", | ||
"runtime-manager", | ||
"sgx-root-enclave", | ||
# and other non-native dependendencies | ||
"incubator-teaclave-sgx-sdk", | ||
"third-party", | ||
"veracruz-mcu-client", | ||
] | ||
|
||
[profile.release] | ||
lto = true | ||
codegen-units = 1 | ||
opt-level = 3 | ||
|
||
# patches for SGX | ||
[patch."https://github.com/apache/teaclave-sgx-sdk.git"] | ||
sgx_ucrypto.git = "https://github.com/veracruz-project/incubator-teaclave-sgx-sdk.git" | ||
sgx_ucrypto.branch = "veracruz" | ||
sgx_ucrypto.optional = true | ||
|
||
sgx_types.git = "https://github.com/veracruz-project/incubator-teaclave-sgx-sdk.git" | ||
sgx_types.branch = "veracruz" | ||
sgx_types.optional = true | ||
|
||
sgx_alloc.git = "https://github.com/veracruz-project/incubator-teaclave-sgx-sdk.git" | ||
sgx_alloc.branch = "veracruz" | ||
sgx_alloc.optional = true | ||
|
||
[patch.crates-io] | ||
rustls.git = "https://github.com/veracruz-project/rustls.git" | ||
rustls.branch = "veracruz" | ||
|
||
serde.git = "https://github.com/veracruz-project/serde.git" | ||
serde.features = ["derive"] | ||
serde.branch = "veracruz" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters