From 2ef9182184e054f6b9669a8f1b18c2d6a7c62af7 Mon Sep 17 00:00:00 2001 From: Ernesto Ocampo Date: Thu, 9 Jan 2025 11:09:00 +0000 Subject: [PATCH] Remove Cargo support for enclave apps. BUG: 364617536 Change-Id: I0129ce786bc13c315946b010e0d82f187471ebe5 --- Cargo.lock | 34 +- Cargo.toml | 1 - enclave_apps/.cargo/config.toml | 5 - enclave_apps/Cargo.lock | 1937 ----------------- enclave_apps/Cargo.toml | 19 - enclave_apps/deny.toml | 38 - enclave_apps/key_xor_test_app/BUILD | 3 + enclave_apps/key_xor_test_app/Cargo.toml | 17 - enclave_apps/key_xor_test_app/build.rs | 19 - enclave_apps/oak_echo_enclave_app/BUILD | 3 + enclave_apps/oak_echo_enclave_app/Cargo.toml | 17 - enclave_apps/oak_echo_enclave_app/build.rs | 19 - enclave_apps/oak_echo_raw_enclave_app/BUILD | 3 + .../oak_echo_raw_enclave_app/Cargo.toml | 16 - .../oak_echo_raw_enclave_app/build.rs | 19 - enclave_apps/oak_functions_enclave_app/BUILD | 3 + .../oak_functions_enclave_app/Cargo.toml | 37 - .../oak_functions_enclave_app/build.rs | 19 - enclave_apps/oak_multi_process_test/BUILD | 3 + .../oak_multi_process_test/Cargo.toml | 16 - enclave_apps/oak_multi_process_test/build.rs | 19 - enclave_apps/oak_orchestrator/BUILD | 3 + enclave_apps/oak_orchestrator/Cargo.toml | 20 - enclave_apps/oak_orchestrator/build.rs | 19 - oak_file_utils/Cargo.toml | 4 + testing/oak_echo_service/BUILD | 1 - testing/oak_echo_service/Cargo.toml | 21 - testing/oak_echo_service/build.rs | 10 - 28 files changed, 25 insertions(+), 2300 deletions(-) delete mode 100644 enclave_apps/.cargo/config.toml delete mode 100644 enclave_apps/Cargo.lock delete mode 100644 enclave_apps/Cargo.toml delete mode 100644 enclave_apps/deny.toml delete mode 100644 enclave_apps/key_xor_test_app/Cargo.toml delete mode 100644 enclave_apps/key_xor_test_app/build.rs delete mode 100644 enclave_apps/oak_echo_enclave_app/Cargo.toml delete mode 100644 enclave_apps/oak_echo_enclave_app/build.rs delete mode 100644 enclave_apps/oak_echo_raw_enclave_app/Cargo.toml delete mode 100644 enclave_apps/oak_echo_raw_enclave_app/build.rs delete mode 100644 enclave_apps/oak_functions_enclave_app/Cargo.toml delete mode 100644 enclave_apps/oak_functions_enclave_app/build.rs delete mode 100644 enclave_apps/oak_multi_process_test/Cargo.toml delete mode 100644 enclave_apps/oak_multi_process_test/build.rs delete mode 100644 enclave_apps/oak_orchestrator/Cargo.toml delete mode 100644 enclave_apps/oak_orchestrator/build.rs delete mode 100644 testing/oak_echo_service/Cargo.toml diff --git a/Cargo.lock b/Cargo.lock index 5d3b822001b..d8e207bdb09 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -52,17 +52,6 @@ dependencies = [ "subtle", ] -[[package]] -name = "ahash" -version = "0.7.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "891477e0c6a8957309ee5c45a6368af3ae14bb510732d2684ffa19af310920f9" -dependencies = [ - "getrandom", - "once_cell", - "version_check", -] - [[package]] name = "ahash" version = "0.8.7" @@ -1380,9 +1369,6 @@ name = "hashbrown" version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" -dependencies = [ - "ahash 0.7.8", -] [[package]] name = "hashbrown" @@ -1390,7 +1376,7 @@ version = "0.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "43a3c133739dddd0d2990f9a4bdf8eb4b21ef50e4851ca85ab661199821d510e" dependencies = [ - "ahash 0.8.7", + "ahash", ] [[package]] @@ -1399,7 +1385,7 @@ version = "0.14.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "290f1a1d9242c78d09ce40a5e87e7554ee637af1351968159f4952f028f75604" dependencies = [ - "ahash 0.8.7", + "ahash", "allocator-api2", ] @@ -1641,7 +1627,7 @@ version = "0.11.19" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "321f0f839cd44a4686e9504b0a62b4d69a50b62072144c71c68f5873c167b8d9" dependencies = [ - "ahash 0.8.7", + "ahash", "indexmap 2.1.0", "is-terminal", "itoa", @@ -2456,20 +2442,6 @@ dependencies = [ "zeroize", ] -[[package]] -name = "oak_echo_service" -version = "0.1.0" -dependencies = [ - "async-trait", - "hashbrown 0.12.3", - "log", - "micro_rpc", - "micro_rpc_build", - "oak_proto_rust", - "oak_restricted_kernel_sdk", - "prost", -] - [[package]] name = "oak_enclave_runtime_support" version = "0.1.0" diff --git a/Cargo.toml b/Cargo.toml index 83e32b0f07a..6e4fe2ad9fc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -59,7 +59,6 @@ members = [ "sev_serial", "snp_measurement", "stage0_dice", - "testing/oak_echo_service", "oak_restricted_kernel_sdk_proc_macro", ] exclude = [ diff --git a/enclave_apps/.cargo/config.toml b/enclave_apps/.cargo/config.toml deleted file mode 100644 index 2e29d710a69..00000000000 --- a/enclave_apps/.cargo/config.toml +++ /dev/null @@ -1,5 +0,0 @@ -[build] -target = "x86_64-unknown-none" - -[target.x86_64-unknown-none] -rustflags = "-C relocation-model=static -C code-model=small -C target-feature=+sse,+sse2,+ssse3,+sse4.1,+sse4.2,+avx,+avx2,+rdrand,-soft-float -C target-cpu=x86-64-v3" diff --git a/enclave_apps/Cargo.lock b/enclave_apps/Cargo.lock deleted file mode 100644 index 83a6669fce0..00000000000 --- a/enclave_apps/Cargo.lock +++ /dev/null @@ -1,1937 +0,0 @@ -# This file is automatically @generated by Cargo. -# It is not intended for manual editing. -version = 4 - -[[package]] -name = "aead" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c192eb8f11fc081b0fe4259ba5af04217d4e0faddd02417310a927911abd7c8" -dependencies = [ - "crypto-common", - "generic-array", -] - -[[package]] -name = "aes" -version = "0.8.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bfe0133578c0986e1fe3dfcd4af1cc5b2dd6c3dbf534d69916ce16a2701d40ba" -dependencies = [ - "cfg-if", - "cipher", - "cpufeatures", -] - -[[package]] -name = "aes-gcm" -version = "0.10.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "831010a0f742e1209b3bcea8fab6a8e149051ba6099432c8cb2cc117dec3ead1" -dependencies = [ - "aead", - "aes", - "cipher", - "ctr", - "ghash", - "subtle", -] - -[[package]] -name = "ahash" -version = "0.8.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77c3a9648d43b9cd48db467b3f87fdd6e146bcc88ab0180006cef2179fe11d01" -dependencies = [ - "cfg-if", - "once_cell", - "version_check", - "zerocopy", -] - -[[package]] -name = "aho-corasick" -version = "1.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e60d3430d3a69478ad0993f19238d2df97c507009a52b3c10addcd7f6bcb916" -dependencies = [ - "memchr", -] - -[[package]] -name = "allocator-api2" -version = "0.2.16" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0942ffc6dcaadf03badf6e6a2d0228460359d5e34b57ccdc720b7382dfbd5ec5" - -[[package]] -name = "anyhow" -version = "1.0.65" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "98161a4e3e2184da77bb14f02184cdd111e83bbbcc9979dfee3c44b9a85f5602" - -[[package]] -name = "async-trait" -version = "0.1.58" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e805d94e6b5001b651426cf4cd446b1ab5f319d27bab5c644f61de0a804360c" -dependencies = [ - "proc-macro2", - "quote", - "syn 1.0.102", -] - -[[package]] -name = "autocfg" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" - -[[package]] -name = "base16ct" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c7f02d4ea65f2c1853089ffd8d2787bdbc63de2f0d29dedbcf8ccdfa0ccd4cf" - -[[package]] -name = "base64" -version = "0.13.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8" - -[[package]] -name = "base64" -version = "0.21.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567" - -[[package]] -name = "base64ct" -version = "1.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8c3c1a368f70d6cf7302d78f8f7093da241fb8e8807c05cc9e51a125895a6d5b" - -[[package]] -name = "bitflags" -version = "2.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b4682ae6287fcf752ecaabbfcc7b6f9b72aa33933dc23a554d853aea8eea8635" - -[[package]] -name = "block-buffer" -version = "0.10.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" -dependencies = [ - "generic-array", -] - -[[package]] -name = "byteorder" -version = "1.4.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610" - -[[package]] -name = "bytes" -version = "1.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec8a7b6a70fde80372154c65702f00a0f56f3e1c36abbc6c440484be248856db" - -[[package]] -name = "cfg-if" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" - -[[package]] -name = "chacha20" -version = "0.9.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3613f74bd2eac03dad61bd53dbe620703d4371614fe0bc3b9f04dd36fe4e818" -dependencies = [ - "cfg-if", - "cipher", - "cpufeatures", -] - -[[package]] -name = "chacha20poly1305" -version = "0.10.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "10cd79432192d1c0f4e1a0fef9527696cc039165d729fb41b3f4f4f354c2dc35" -dependencies = [ - "aead", - "chacha20", - "cipher", - "poly1305", - "zeroize", -] - -[[package]] -name = "ciborium" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "effd91f6c78e5a4ace8a5d3c0b6bfaec9e2baaef55f3efc00e45fb2e477ee926" -dependencies = [ - "ciborium-io", - "ciborium-ll", - "serde", -] - -[[package]] -name = "ciborium-io" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cdf919175532b369853f5d5e20b26b43112613fd6fe7aee757e35f7a44642656" - -[[package]] -name = "ciborium-ll" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "defaa24ecc093c77630e6c15e17c51f5e187bf35ee514f4e2d67baaa96dae22b" -dependencies = [ - "ciborium-io", - "half", -] - -[[package]] -name = "cipher" -version = "0.4.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "773f3b9af64447d2ce9850330c473515014aa235e6a783b02db81ff39e4a3dad" -dependencies = [ - "crypto-common", - "inout", - "zeroize", -] - -[[package]] -name = "const-default" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b396d1f76d455557e1218ec8066ae14bba60b4b36ecd55577ba979f5db7ecaa" - -[[package]] -name = "const-oid" -version = "0.9.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "28c122c3980598d243d63d9a704629a2d748d101f278052ff068be5a4423ab6f" - -[[package]] -name = "coset" -version = "0.3.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff8aad850c1f86daa47e812913051eb5a26c4d9fb4242a89178bf99b946e4e3c" -dependencies = [ - "ciborium", - "ciborium-io", -] - -[[package]] -name = "cpufeatures" -version = "0.2.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "03e69e28e9f7f77debdedbaafa2866e1de9ba56df55a8bd7cfc724c25a09987c" -dependencies = [ - "libc", -] - -[[package]] -name = "crypto-bigint" -version = "0.5.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "740fe28e594155f10cfc383984cbefd529d7396050557148f79cb0f621204124" -dependencies = [ - "generic-array", - "rand_core", - "subtle", - "zeroize", -] - -[[package]] -name = "crypto-common" -version = "0.1.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3" -dependencies = [ - "generic-array", - "rand_core", - "typenum", -] - -[[package]] -name = "ctr" -version = "0.9.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0369ee1ad671834580515889b80f2ea915f23b8be8d0daa4bbaf2ac5c7590835" -dependencies = [ - "cipher", -] - -[[package]] -name = "curve25519-dalek" -version = "4.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "97fb8b7c4503de7d6ae7b42ab72a5a59857b4c937ec27a3d4539dba95b5ab2be" -dependencies = [ - "cfg-if", - "cpufeatures", - "curve25519-dalek-derive", - "fiat-crypto", - "rustc_version", - "subtle", -] - -[[package]] -name = "curve25519-dalek-derive" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f46882e17999c6cc590af592290432be3bce0428cb0d5f8b6715e4dc7b383eb3" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.32", -] - -[[package]] -name = "darling" -version = "0.20.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6f63b86c8a8826a49b8c21f08a2d07338eec8d900540f8630dc76284be802989" -dependencies = [ - "darling_core", - "darling_macro", -] - -[[package]] -name = "darling_core" -version = "0.20.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "95133861a8032aaea082871032f5815eb9e98cef03fa916ab4500513994df9e5" -dependencies = [ - "fnv", - "ident_case", - "proc-macro2", - "quote", - "strsim", - "syn 2.0.32", -] - -[[package]] -name = "darling_macro" -version = "0.20.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d336a2a514f6ccccaa3e09b02d41d35330c07ddf03a62165fcec10bb561c7806" -dependencies = [ - "darling_core", - "quote", - "syn 2.0.32", -] - -[[package]] -name = "der" -version = "0.7.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fffa369a668c8af7dbf8b5e56c9f744fbd399949ed171606040001947de40b1c" -dependencies = [ - "const-oid", - "der_derive", - "flagset", - "pem-rfc7468", - "zeroize", -] - -[[package]] -name = "der_derive" -version = "0.7.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8034092389675178f570469e6c3b0465d3d30b4505c294a6550db47f3c17ad18" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.32", -] - -[[package]] -name = "deranged" -version = "0.3.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b42b6fa04a440b495c8b04d0e71b707c585f83cb9cb28cf8cd0d976c315e31b4" -dependencies = [ - "powerfmt", - "serde", -] - -[[package]] -name = "derive_builder" -version = "0.20.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "507dfb09ea8b7fa618fcf76e953f4f5e192547945816d5358edffe39f6f94947" -dependencies = [ - "derive_builder_macro", -] - -[[package]] -name = "derive_builder_core" -version = "0.20.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2d5bcf7b024d6835cfb3d473887cd966994907effbe9227e8c8219824d06c4e8" -dependencies = [ - "darling", - "proc-macro2", - "quote", - "syn 2.0.32", -] - -[[package]] -name = "derive_builder_macro" -version = "0.20.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ab63b0e2bf4d5928aff72e83a7dace85d7bba5fe12dcc3c5a572d78caffd3f3c" -dependencies = [ - "derive_builder_core", - "syn 2.0.32", -] - -[[package]] -name = "digest" -version = "0.10.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" -dependencies = [ - "block-buffer", - "const-oid", - "crypto-common", - "subtle", -] - -[[package]] -name = "downcast-rs" -version = "1.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ea835d29036a4087793836fa931b08837ad5e957da9e23886b29586fb9b6650" - -[[package]] -name = "ecdsa" -version = "0.16.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0997c976637b606099b9985693efa3581e84e41f5c11ba5255f88711058ad428" -dependencies = [ - "der", - "digest", - "elliptic-curve", - "rfc6979", - "signature", - "spki", -] - -[[package]] -name = "either" -version = "1.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "90e5c1c8368803113bf0c9584fc495a58b86dc8a29edbf8fe877d21d9507e797" - -[[package]] -name = "elliptic-curve" -version = "0.13.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b5e6043086bf7973472e0c7dff2142ea0b680d30e18d9cc40f267efbf222bd47" -dependencies = [ - "base16ct", - "crypto-bigint", - "digest", - "ff", - "generic-array", - "group", - "pem-rfc7468", - "pkcs8", - "rand_core", - "sec1", - "subtle", - "zeroize", -] - -[[package]] -name = "errno" -version = "0.3.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "534c5cf6194dfab3db3242765c03bbe257cf92f22b38f6bc0c58d59108a820ba" -dependencies = [ - "libc", - "windows-sys", -] - -[[package]] -name = "fastrand" -version = "2.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9fc0510504f03c51ada170672ac806f1f105a88aa97a5281117e1ddc3368e51a" - -[[package]] -name = "ff" -version = "0.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ded41244b729663b1e574f1b4fb731469f69f79c17667b5d776b16cda0479449" -dependencies = [ - "rand_core", - "subtle", -] - -[[package]] -name = "fiat-crypto" -version = "0.2.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "27573eac26f4dd11e2b1916c3fe1baa56407c83c71a773a8ba17ec0bca03b6b7" - -[[package]] -name = "fixedbitset" -version = "0.4.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ce7134b9999ecaf8bcd65542e436736ef32ddca1b3e06094cb6ec5755203b80" - -[[package]] -name = "flagset" -version = "0.4.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b3ea1ec5f8307826a5b71094dd91fc04d4ae75d5709b20ad351c7fb4815c86ec" - -[[package]] -name = "fnv" -version = "1.0.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" - -[[package]] -name = "generic-array" -version = "0.14.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bff49e947297f3312447abdca79f45f4738097cc82b06e72054d2223f601f1b9" -dependencies = [ - "typenum", - "version_check", - "zeroize", -] - -[[package]] -name = "getrandom" -version = "0.2.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4eb1a864a501629691edf6c15a593b7a51eebaa1e8468e9ddc623de7c9b58ec6" -dependencies = [ - "cfg-if", - "libc", - "wasi", -] - -[[package]] -name = "ghash" -version = "0.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d930750de5717d2dd0b8c0d42c076c0e884c81a73e6cab859bbd2339c71e3e40" -dependencies = [ - "opaque-debug", - "polyval", -] - -[[package]] -name = "group" -version = "0.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f0f9ef7462f7c099f518d754361858f86d8a07af53ba9af0fe635bbccb151a63" -dependencies = [ - "ff", - "rand_core", - "subtle", -] - -[[package]] -name = "half" -version = "1.8.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eabb4a44450da02c90444cf74558da904edde8fb4e9035a9a6a4e15445af0bd7" - -[[package]] -name = "hashbrown" -version = "0.12.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" - -[[package]] -name = "hashbrown" -version = "0.14.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f93e7192158dbcda357bdec5fb5788eebf8bbac027f3f33e719d29135ae84156" -dependencies = [ - "ahash", - "allocator-api2", -] - -[[package]] -name = "heck" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2540771e65fc8cb83cd6e8a237f70c319bd5c29f78ed1084ba5d50eeac86f7f9" - -[[package]] -name = "hex" -version = "0.4.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" - -[[package]] -name = "hkdf" -version = "0.12.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "791a029f6b9fc27657f6f188ec6e5e43f6911f6f878e0dc5501396e09809d437" -dependencies = [ - "hmac", -] - -[[package]] -name = "hmac" -version = "0.12.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e" -dependencies = [ - "digest", -] - -[[package]] -name = "hpke" -version = "0.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e04a5933a381bb81f00b083fce6b4528e16d735dbeecbb2bdb45e0dbbf3f7e17" -dependencies = [ - "aead", - "aes-gcm", - "byteorder", - "chacha20poly1305", - "digest", - "generic-array", - "hkdf", - "hmac", - "rand_core", - "sha2", - "subtle", - "x25519-dalek", - "zeroize", -] - -[[package]] -name = "ident_case" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" - -[[package]] -name = "indexmap" -version = "1.9.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "10a35a97730320ffe8e2d410b5d3b69279b98d2c14bdb8b70ea89ecf7888d41e" -dependencies = [ - "autocfg", - "hashbrown 0.12.3", -] - -[[package]] -name = "indexmap-nostd" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e04e2fd2b8188ea827b32ef11de88377086d690286ab35747ef7f9bf3ccb590" - -[[package]] -name = "inout" -version = "0.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a0c10553d664a4d0bcff9f4215d0aac67a639cc68ef660840afe309b807bc9f5" -dependencies = [ - "generic-array", -] - -[[package]] -name = "itertools" -version = "0.10.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b0fd2260e829bddf4cb6ea802289de2f86d6a7a690192fbe91b3f46e0f2c8473" -dependencies = [ - "either", -] - -[[package]] -name = "itoa" -version = "1.0.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b" - -[[package]] -name = "key_xor_test_app" -version = "0.1.0" -dependencies = [ - "log", - "micro_rpc", - "oak_restricted_kernel_interface", - "oak_restricted_kernel_sdk", -] - -[[package]] -name = "lazy_static" -version = "1.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" -dependencies = [ - "spin 0.5.2", -] - -[[package]] -name = "libc" -version = "0.2.155" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "97b3888a4aecf77e811145cadf6eef5901f4782c53886191b2f693f24761847c" - -[[package]] -name = "libm" -version = "0.2.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "292a948cd991e376cf75541fe5b97a1081d713c618b4f1b9500f8844e49eb565" - -[[package]] -name = "linux-raw-sys" -version = "0.4.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "78b3ae25bc7c8c38cec158d1f2757ee79e9b3740fbc7ccf0e59e4b08d793fa89" - -[[package]] -name = "lock_api" -version = "0.4.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "435011366fe56583b16cf956f9df0095b405b82d76425bc8981c0e22e60ec4df" -dependencies = [ - "autocfg", - "scopeguard", -] - -[[package]] -name = "log" -version = "0.4.17" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "abb12e687cfb44aa40f41fc3978ef76448f9b6038cad6aef4259d3c095a2382e" -dependencies = [ - "cfg-if", -] - -[[package]] -name = "memchr" -version = "2.7.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c8640c5d730cb13ebd907d8d04b52f55ac9a2eec55b440c8892f40d56c76c1d" - -[[package]] -name = "micro_rpc" -version = "0.1.0" -dependencies = [ - "async-trait", - "micro_rpc_build", - "prost", -] - -[[package]] -name = "micro_rpc_build" -version = "0.1.0" -dependencies = [ - "anyhow", - "prost-build", -] - -[[package]] -name = "multimap" -version = "0.8.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e5ce46fe64a9d73be07dcbe690a38ce1b293be448fd8ce1e6c1b8062c9f72c6a" - -[[package]] -name = "num-bigint-dig" -version = "0.8.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc84195820f291c7697304f3cbdadd1cb7199c0efc917ff5eafd71225c136151" -dependencies = [ - "byteorder", - "lazy_static", - "libm", - "num-integer", - "num-iter", - "num-traits", - "rand", - "smallvec", - "zeroize", -] - -[[package]] -name = "num-conv" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "51d515d32fb182ee37cda2ccdcb92950d6a3c2893aa280e540671c2cd0f3b1d9" - -[[package]] -name = "num-integer" -version = "0.1.46" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f" -dependencies = [ - "num-traits", -] - -[[package]] -name = "num-iter" -version = "0.1.45" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1429034a0490724d0075ebb2bc9e875d6503c3cf69e235a8941aa757d83ef5bf" -dependencies = [ - "autocfg", - "num-integer", - "num-traits", -] - -[[package]] -name = "num-traits" -version = "0.2.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "578ede34cf02f8924ab9447f50c28075b4d3e5b269972345e7e0372b38c6cdcd" -dependencies = [ - "autocfg", - "libm", -] - -[[package]] -name = "oak_attestation" -version = "0.1.0" -dependencies = [ - "anyhow", - "ciborium", - "coset", - "hex", - "micro_rpc_build", - "oak_attestation_types", - "oak_dice", - "oak_proto_rust", - "p256", - "prost", - "rand_core", - "sha2", - "zeroize", -] - -[[package]] -name = "oak_attestation_types" -version = "0.1.0" -dependencies = [ - "anyhow", - "oak_proto_rust", - "prost", -] - -[[package]] -name = "oak_attestation_verification" -version = "0.1.0" -dependencies = [ - "anyhow", - "base64 0.21.7", - "coset", - "ecdsa", - "getrandom", - "hex", - "itertools", - "oak_attestation_verification_types", - "oak_dice", - "oak_proto_rust", - "oak_sev_snp_attestation_report", - "p256", - "p384", - "prost", - "prost-types", - "rsa", - "serde", - "serde_json", - "sha2", - "time", - "x509-cert", - "zerocopy", -] - -[[package]] -name = "oak_attestation_verification_types" -version = "0.1.0" -dependencies = [ - "anyhow", - "oak_proto_rust", -] - -[[package]] -name = "oak_channel" -version = "0.1.0" -dependencies = [ - "anyhow", - "bitflags", - "bytes", - "oak_core", - "static_assertions", -] - -[[package]] -name = "oak_core" -version = "0.1.0" -dependencies = [ - "getrandom", - "lock_api", - "spinning_top", -] - -[[package]] -name = "oak_crypto" -version = "0.1.0" -dependencies = [ - "aead", - "aes-gcm", - "anyhow", - "async-trait", - "bytes", - "ecdsa", - "hashbrown 0.14.2", - "hex", - "hkdf", - "hpke", - "oak_proto_rust", - "p256", - "pkcs8", - "primeorder", - "prost", - "rand_chacha", - "rand_core", - "sha2", - "static_assertions", - "zeroize", -] - -[[package]] -name = "oak_dice" -version = "0.1.0" -dependencies = [ - "bitflags", - "ciborium", - "coset", - "hex", - "hkdf", - "p256", - "rand_core", - "sha2", - "static_assertions", - "strum", - "zerocopy", - "zeroize", -] - -[[package]] -name = "oak_echo_enclave_app" -version = "0.1.0" -dependencies = [ - "log", - "micro_rpc", - "oak_echo_service", - "oak_restricted_kernel_sdk", -] - -[[package]] -name = "oak_echo_raw_enclave_app" -version = "0.1.0" -dependencies = [ - "log", - "micro_rpc", - "oak_restricted_kernel_sdk", -] - -[[package]] -name = "oak_echo_service" -version = "0.1.0" -dependencies = [ - "hashbrown 0.14.2", - "log", - "micro_rpc", - "micro_rpc_build", - "oak_proto_rust", - "oak_restricted_kernel_sdk", - "prost", -] - -[[package]] -name = "oak_enclave_runtime_support" -version = "0.1.0" -dependencies = [ - "libm", - "log", - "oak_restricted_kernel_interface", - "rlsf", - "spinning_top", -] - -[[package]] -name = "oak_functions_abi" -version = "0.1.0" -dependencies = [ - "anyhow", - "static_assertions", - "strum", -] - -[[package]] -name = "oak_functions_enclave_app" -version = "0.1.0" -dependencies = [ - "log", - "micro_rpc", - "oak_functions_enclave_service", - "oak_functions_service", - "oak_micro_rpc", - "oak_restricted_kernel_sdk", -] - -[[package]] -name = "oak_functions_enclave_service" -version = "0.1.0" -dependencies = [ - "anyhow", - "log", - "micro_rpc", - "oak_attestation", - "oak_core", - "oak_crypto", - "oak_dice", - "oak_functions_service", - "oak_micro_rpc", - "oak_proto_rust", - "oak_restricted_kernel_sdk", - "prost", -] - -[[package]] -name = "oak_functions_service" -version = "0.1.0" -dependencies = [ - "anyhow", - "hashbrown 0.14.2", - "log", - "micro_rpc", - "micro_rpc_build", - "oak_crypto", - "oak_dice", - "oak_functions_abi", - "oak_micro_rpc", - "oak_proto_rust", - "prost", - "rand_core", - "spinning_top", - "wasmi", -] - -[[package]] -name = "oak_micro_rpc" -version = "0.1.0" -dependencies = [ - "micro_rpc", - "micro_rpc_build", - "oak_proto_rust", - "prost", -] - -[[package]] -name = "oak_multi_process_test" -version = "0.1.0" -dependencies = [ - "log", - "oak_restricted_kernel_interface", - "oak_restricted_kernel_sdk", -] - -[[package]] -name = "oak_proto_rust" -version = "0.0.1" -dependencies = [ - "prost", - "prost-build", - "prost-types", -] - -[[package]] -name = "oak_restricted_kernel_interface" -version = "0.1.0" -dependencies = [ - "bitflags", - "strum", -] - -[[package]] -name = "oak_restricted_kernel_sdk" -version = "0.1.0" -dependencies = [ - "anyhow", - "lazy_static", - "log", - "micro_rpc", - "oak_attestation", - "oak_attestation_types", - "oak_attestation_verification", - "oak_channel", - "oak_core", - "oak_crypto", - "oak_dice", - "oak_enclave_runtime_support", - "oak_proto_rust", - "oak_restricted_kernel_interface", - "oak_restricted_kernel_sdk_proc_macro", - "oak_session", - "p256", - "prost", - "strum", - "zerocopy", -] - -[[package]] -name = "oak_restricted_kernel_sdk_proc_macro" -version = "0.1.0" -dependencies = [ - "quote", - "syn 1.0.102", -] - -[[package]] -name = "oak_session" -version = "0.1.0" -dependencies = [ - "aead", - "anyhow", - "derive_builder", - "itertools", - "oak_attestation_types", - "oak_attestation_verification", - "oak_attestation_verification_types", - "oak_crypto", - "oak_proto_rust", - "p256", - "prost", -] - -[[package]] -name = "oak_sev_snp_attestation_report" -version = "0.0.0" -dependencies = [ - "bitflags", - "static_assertions", - "strum", - "zerocopy", -] - -[[package]] -name = "once_cell" -version = "1.19.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92" - -[[package]] -name = "opaque-debug" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "624a8340c38c1b80fd549087862da4ba43e08858af025b236e509b6649fc13d5" - -[[package]] -name = "p256" -version = "0.13.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c9863ad85fa8f4460f9c48cb909d38a0d689dba1f6f6988a5e3e0d31071bcd4b" -dependencies = [ - "ecdsa", - "elliptic-curve", - "primeorder", - "sha2", -] - -[[package]] -name = "p384" -version = "0.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "70786f51bcc69f6a4c0360e063a4cac5419ef7c5cd5b3c99ad70f3be5ba79209" -dependencies = [ - "ecdsa", - "elliptic-curve", - "primeorder", - "sha2", -] - -[[package]] -name = "paste" -version = "1.0.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9f746c4065a8fa3fe23974dd82f15431cc8d40779821001404d10d2e79ca7d79" - -[[package]] -name = "pem-rfc7468" -version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "88b39c9bfcfc231068454382784bb460aae594343fb030d46e9f50a645418412" -dependencies = [ - "base64ct", -] - -[[package]] -name = "petgraph" -version = "0.6.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e6d5014253a1331579ce62aa67443b4a658c5e7dd03d4bc6d302b94474888143" -dependencies = [ - "fixedbitset", - "indexmap", -] - -[[package]] -name = "pkcs1" -version = "0.7.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8ffb9f10fa047879315e6625af03c164b16962a5368d724ed16323b68ace47f" -dependencies = [ - "der", - "pkcs8", - "spki", -] - -[[package]] -name = "pkcs8" -version = "0.10.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f950b2377845cebe5cf8b5165cb3cc1a5e0fa5cfa3e1f7f55707d8fd82e0a7b7" -dependencies = [ - "der", - "spki", -] - -[[package]] -name = "poly1305" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8159bd90725d2df49889a078b54f4f79e87f1f8a8444194cdca81d38f5393abf" -dependencies = [ - "cpufeatures", - "opaque-debug", - "universal-hash", -] - -[[package]] -name = "polyval" -version = "0.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ef234e08c11dfcb2e56f79fd70f6f2eb7f025c0ce2333e82f4f0518ecad30c6" -dependencies = [ - "cfg-if", - "cpufeatures", - "opaque-debug", - "universal-hash", -] - -[[package]] -name = "powerfmt" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391" - -[[package]] -name = "ppv-lite86" -version = "0.2.17" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de" - -[[package]] -name = "prettyplease" -version = "0.2.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae005bd773ab59b4725093fd7df83fd7892f7d8eafb48dbd7de6e024e4215f9d" -dependencies = [ - "proc-macro2", - "syn 2.0.32", -] - -[[package]] -name = "primeorder" -version = "0.13.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c7dbe9ed3b56368bd99483eb32fe9c17fdd3730aebadc906918ce78d54c7eeb4" -dependencies = [ - "elliptic-curve", -] - -[[package]] -name = "proc-macro2" -version = "1.0.87" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b3e4daa0dcf6feba26f985457cdf104d4b4256fc5a09547140f3631bb076b19a" -dependencies = [ - "unicode-ident", -] - -[[package]] -name = "prost" -version = "0.12.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d0f5d036824e4761737860779c906171497f6d55681139d8312388f8fe398922" -dependencies = [ - "bytes", - "prost-derive", -] - -[[package]] -name = "prost-build" -version = "0.12.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "80b776a1b2dc779f5ee0641f8ade0125bc1298dd41a9a0c16d8bd57b42d222b1" -dependencies = [ - "bytes", - "heck", - "itertools", - "log", - "multimap", - "once_cell", - "petgraph", - "prettyplease", - "prost", - "prost-types", - "regex", - "syn 2.0.32", - "tempfile", -] - -[[package]] -name = "prost-derive" -version = "0.12.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "19de2de2a00075bf566bee3bd4db014b11587e84184d3f7a791bc17f1a8e9e48" -dependencies = [ - "anyhow", - "itertools", - "proc-macro2", - "quote", - "syn 2.0.32", -] - -[[package]] -name = "prost-types" -version = "0.12.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3235c33eb02c1f1e212abdbe34c78b264b038fb58ca612664343271e36e55ffe" -dependencies = [ - "prost", -] - -[[package]] -name = "quote" -version = "1.0.37" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b5b9d34b8991d19d98081b46eacdd8eb58c6f2b201139f7c5f643cc155a633af" -dependencies = [ - "proc-macro2", -] - -[[package]] -name = "rand" -version = "0.8.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" -dependencies = [ - "rand_chacha", - "rand_core", -] - -[[package]] -name = "rand_chacha" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" -dependencies = [ - "ppv-lite86", - "rand_core", -] - -[[package]] -name = "rand_core" -version = "0.6.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" -dependencies = [ - "getrandom", -] - -[[package]] -name = "regex" -version = "1.10.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c117dbdfde9c8308975b6a18d71f3f385c89461f7b3fb054288ecf2a2058ba4c" -dependencies = [ - "aho-corasick", - "memchr", - "regex-automata", - "regex-syntax", -] - -[[package]] -name = "regex-automata" -version = "0.4.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86b83b8b9847f9bf95ef68afb0b8e6cdb80f498442f5179a29fad448fcc1eaea" -dependencies = [ - "aho-corasick", - "memchr", - "regex-syntax", -] - -[[package]] -name = "regex-syntax" -version = "0.8.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "adad44e29e4c806119491a7f06f03de4d1af22c3a680dd47f1e6e179439d1f56" - -[[package]] -name = "rfc6979" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f8dd2a808d456c4a54e300a23e9f5a67e122c3024119acbfd73e3bf664491cb2" -dependencies = [ - "hmac", - "subtle", -] - -[[package]] -name = "rlsf" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "222fb240c3286247ecdee6fa5341e7cdad0ffdf8e7e401d9937f2d58482a20bf" -dependencies = [ - "cfg-if", - "const-default", - "libc", - "svgbobdoc", -] - -[[package]] -name = "rsa" -version = "0.9.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5d0e5124fcb30e76a7e79bfee683a2746db83784b86289f6251b54b7950a0dfc" -dependencies = [ - "const-oid", - "digest", - "num-bigint-dig", - "num-integer", - "num-traits", - "pkcs1", - "pkcs8", - "rand_core", - "signature", - "spki", - "subtle", - "zeroize", -] - -[[package]] -name = "rustc_version" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366" -dependencies = [ - "semver", -] - -[[package]] -name = "rustix" -version = "0.38.34" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "70dc5ec042f7a43c4a73241207cecc9873a06d45debb38b329f8541d85c2730f" -dependencies = [ - "bitflags", - "errno", - "libc", - "linux-raw-sys", - "windows-sys", -] - -[[package]] -name = "rustversion" -version = "1.0.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "97477e48b4cf8603ad5f7aaf897467cf42ab4218a38ef76fb14c2d6773a6d6a8" - -[[package]] -name = "ryu" -version = "1.0.18" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f3cb5ba0dc43242ce17de99c180e96db90b235b8a9fdc9543c96d2209116bd9f" - -[[package]] -name = "scopeguard" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" - -[[package]] -name = "sec1" -version = "0.7.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "48518a2b5775ba8ca5b46596aae011caa431e6ce7e4a67ead66d92f08884220e" -dependencies = [ - "base16ct", - "der", - "generic-array", - "pkcs8", - "subtle", - "zeroize", -] - -[[package]] -name = "semver" -version = "1.0.20" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "836fa6a3e1e547f9a2c4040802ec865b5d85f4014efe00555d7090a3dcaa1090" - -[[package]] -name = "serde" -version = "1.0.192" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bca2a08484b285dcb282d0f67b26cadc0df8b19f8c12502c13d966bf9482f001" -dependencies = [ - "serde_derive", -] - -[[package]] -name = "serde_derive" -version = "1.0.192" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d6c7207fbec9faa48073f3e3074cbe553af6ea512d7c21ba46e434e70ea9fbc1" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.32", -] - -[[package]] -name = "serde_json" -version = "1.0.109" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb0652c533506ad7a2e353cce269330d6afd8bdfb6d75e0ace5b35aacbd7b9e9" -dependencies = [ - "itoa", - "ryu", - "serde", -] - -[[package]] -name = "sha2" -version = "0.10.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "82e6b795fe2e3b1e845bafcb27aa35405c4d47cdfc92af5fc8d3002f76cebdc0" -dependencies = [ - "cfg-if", - "cpufeatures", - "digest", -] - -[[package]] -name = "signature" -version = "2.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5e1788eed21689f9cf370582dfc467ef36ed9c707f073528ddafa8d83e3b8500" -dependencies = [ - "digest", - "rand_core", -] - -[[package]] -name = "smallvec" -version = "1.13.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67" - -[[package]] -name = "spin" -version = "0.5.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d" - -[[package]] -name = "spin" -version = "0.9.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67" - -[[package]] -name = "spinning_top" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d96d2d1d716fb500937168cc09353ffdc7a012be8475ac7308e1bdf0e3923300" -dependencies = [ - "lock_api", -] - -[[package]] -name = "spki" -version = "0.7.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d91ed6c858b01f942cd56b37a94b3e0a1798290327d1236e4d9cf4eaca44d29d" -dependencies = [ - "base64ct", - "der", -] - -[[package]] -name = "static_assertions" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" - -[[package]] -name = "strsim" -version = "0.11.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" - -[[package]] -name = "strum" -version = "0.24.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "063e6045c0e62079840579a7e47a355ae92f60eb74daaf156fb1e84ba164e63f" -dependencies = [ - "strum_macros", -] - -[[package]] -name = "strum_macros" -version = "0.24.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e385be0d24f186b4ce2f9982191e7101bb737312ad61c1f2f984f34bcf85d59" -dependencies = [ - "heck", - "proc-macro2", - "quote", - "rustversion", - "syn 1.0.102", -] - -[[package]] -name = "subtle" -version = "2.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "81cdd64d312baedb58e21336b31bc043b77e01cc99033ce76ef539f78e965ebc" - -[[package]] -name = "svgbobdoc" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f2c04b93fc15d79b39c63218f15e3fdffaa4c227830686e3b7c5f41244eb3e50" -dependencies = [ - "base64 0.13.1", - "proc-macro2", - "quote", - "syn 1.0.102", - "unicode-width", -] - -[[package]] -name = "syn" -version = "1.0.102" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3fcd952facd492f9be3ef0d0b7032a6e442ee9b361d4acc2b1d0c4aaa5f613a1" -dependencies = [ - "proc-macro2", - "quote", - "unicode-ident", -] - -[[package]] -name = "syn" -version = "2.0.32" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "239814284fd6f1a4ffe4ca893952cdd93c224b6a1571c9a9eadd670295c0c9e2" -dependencies = [ - "proc-macro2", - "quote", - "unicode-ident", -] - -[[package]] -name = "synstructure" -version = "0.12.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f36bdaa60a83aca3921b5259d5400cbf5e90fc51931376a9bd4a0eb79aa7210f" -dependencies = [ - "proc-macro2", - "quote", - "syn 1.0.102", - "unicode-xid", -] - -[[package]] -name = "tempfile" -version = "3.10.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85b77fafb263dd9d05cbeac119526425676db3784113aa9295c88498cbf8bff1" -dependencies = [ - "cfg-if", - "fastrand", - "rustix", - "windows-sys", -] - -[[package]] -name = "time" -version = "0.3.36" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5dfd88e563464686c916c7e46e623e520ddc6d79fa6641390f2e3fa86e83e885" -dependencies = [ - "deranged", - "num-conv", - "powerfmt", - "serde", - "time-core", - "time-macros", -] - -[[package]] -name = "time-core" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ef927ca75afb808a4d64dd374f00a2adf8d0fcff8e7b184af886c3c87ec4a3f3" - -[[package]] -name = "time-macros" -version = "0.2.18" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3f252a68540fde3a3877aeea552b832b40ab9a69e318efd078774a01ddee1ccf" -dependencies = [ - "num-conv", - "time-core", -] - -[[package]] -name = "typenum" -version = "1.15.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dcf81ac59edc17cc8697ff311e8f5ef2d99fcbd9817b34cec66f90b6c3dfd987" - -[[package]] -name = "unicode-ident" -version = "1.0.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6ceab39d59e4c9499d4e5a8ee0e2735b891bb7308ac83dfb4e80cad195c9f6f3" - -[[package]] -name = "unicode-width" -version = "0.1.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c0edd1e5b14653f783770bce4a4dabb4a5108a5370a5f5d8cfe8710c361f6c8b" - -[[package]] -name = "unicode-xid" -version = "0.2.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f962df74c8c05a667b5ee8bcf162993134c104e96440b663c8daa176dc772d8c" - -[[package]] -name = "universal-hash" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fc1de2c688dc15305988b563c3854064043356019f97a4b46276fe734c4f07ea" -dependencies = [ - "crypto-common", - "subtle", -] - -[[package]] -name = "version_check" -version = "0.9.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" - -[[package]] -name = "wasi" -version = "0.11.0+wasi-snapshot-preview1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" - -[[package]] -name = "wasmi" -version = "0.31.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77a8281d1d660cdf54c76a3efa9ddd0c270cada1383a995db3ccb43d166456c7" -dependencies = [ - "smallvec", - "spin 0.9.8", - "wasmi_arena", - "wasmi_core", - "wasmparser-nostd", -] - -[[package]] -name = "wasmi_arena" -version = "0.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "104a7f73be44570cac297b3035d76b169d6599637631cf37a1703326a0727073" - -[[package]] -name = "wasmi_core" -version = "0.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dcf1a7db34bff95b85c261002720c00c3a6168256dcb93041d3fa2054d19856a" -dependencies = [ - "downcast-rs", - "libm", - "num-traits", - "paste", -] - -[[package]] -name = "wasmparser-nostd" -version = "0.100.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9157cab83003221bfd385833ab587a039f5d6fa7304854042ba358a3b09e0724" -dependencies = [ - "indexmap-nostd", -] - -[[package]] -name = "windows-sys" -version = "0.52.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" -dependencies = [ - "windows-targets", -] - -[[package]] -name = "windows-targets" -version = "0.52.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6f0713a46559409d202e70e28227288446bf7841d3211583a4b53e3f6d96e7eb" -dependencies = [ - "windows_aarch64_gnullvm", - "windows_aarch64_msvc", - "windows_i686_gnu", - "windows_i686_gnullvm", - "windows_i686_msvc", - "windows_x86_64_gnu", - "windows_x86_64_gnullvm", - "windows_x86_64_msvc", -] - -[[package]] -name = "windows_aarch64_gnullvm" -version = "0.52.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7088eed71e8b8dda258ecc8bac5fb1153c5cffaf2578fc8ff5d61e23578d3263" - -[[package]] -name = "windows_aarch64_msvc" -version = "0.52.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9985fd1504e250c615ca5f281c3f7a6da76213ebd5ccc9561496568a2752afb6" - -[[package]] -name = "windows_i686_gnu" -version = "0.52.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "88ba073cf16d5372720ec942a8ccbf61626074c6d4dd2e745299726ce8b89670" - -[[package]] -name = "windows_i686_gnullvm" -version = "0.52.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "87f4261229030a858f36b459e748ae97545d6f1ec60e5e0d6a3d32e0dc232ee9" - -[[package]] -name = "windows_i686_msvc" -version = "0.52.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "db3c2bf3d13d5b658be73463284eaf12830ac9a26a90c717b7f771dfe97487bf" - -[[package]] -name = "windows_x86_64_gnu" -version = "0.52.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4e4246f76bdeff09eb48875a0fd3e2af6aada79d409d33011886d3e1581517d9" - -[[package]] -name = "windows_x86_64_gnullvm" -version = "0.52.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "852298e482cd67c356ddd9570386e2862b5673c85bd5f88df9ab6802b334c596" - -[[package]] -name = "windows_x86_64_msvc" -version = "0.52.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bec47e5bfd1bff0eeaf6d8b485cc1074891a197ab4225d504cb7a1ab88b02bf0" - -[[package]] -name = "x25519-dalek" -version = "2.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb66477291e7e8d2b0ff1bcb900bf29489a9692816d79874bea351e7a8b6de96" -dependencies = [ - "curve25519-dalek", - "rand_core", -] - -[[package]] -name = "x509-cert" -version = "0.2.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1301e935010a701ae5f8655edc0ad17c44bad3ac5ce8c39185f75453b720ae94" -dependencies = [ - "const-oid", - "der", - "spki", -] - -[[package]] -name = "zerocopy" -version = "0.7.31" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1c4061bedbb353041c12f413700357bec76df2c7e2ca8e4df8bac24c6bf68e3d" -dependencies = [ - "byteorder", - "zerocopy-derive", -] - -[[package]] -name = "zerocopy-derive" -version = "0.7.31" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b3c129550b3e6de3fd0ba67ba5c81818f9805e58b8d7fee80a3a59d2c9fc601a" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.32", -] - -[[package]] -name = "zeroize" -version = "1.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "525b4ec142c6b68a2d10f01f7bbf6755599ca3f81ea53b8431b7dd348f5fdb2d" -dependencies = [ - "zeroize_derive", -] - -[[package]] -name = "zeroize_derive" -version = "1.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3f8f187641dad4f680d25c4bfc4225b418165984179f26ca76ec4fb6441d3a17" -dependencies = [ - "proc-macro2", - "quote", - "syn 1.0.102", - "synstructure", -] diff --git a/enclave_apps/Cargo.toml b/enclave_apps/Cargo.toml deleted file mode 100644 index 7aa81cab0d8..00000000000 --- a/enclave_apps/Cargo.toml +++ /dev/null @@ -1,19 +0,0 @@ -[workspace] -resolver = "2" -members = [ - "key_xor_test_app", - "oak_echo_enclave_app", - "oak_functions_enclave_app", - "oak_echo_raw_enclave_app", - "oak_multi_process_test", -] - -[workspace.dependencies] -micro_rpc = { path = "../micro_rpc" } -oak_channel = { path = "../oak_channel" } -oak_dice = { path = "../oak_dice" } -oak_restricted_kernel_sdk = { path = "../oak_restricted_kernel_sdk" } -oak_restricted_kernel_interface = { path = "../oak_restricted_kernel_interface" } -oak_micro_rpc = { path = "../oak_proto_rust/micro_rpc" } -oak_proto_rust = { path = "../oak_proto_rust" } -zerocopy = "*" diff --git a/enclave_apps/deny.toml b/enclave_apps/deny.toml deleted file mode 100644 index 79a78c8cb33..00000000000 --- a/enclave_apps/deny.toml +++ /dev/null @@ -1,38 +0,0 @@ -# Configuration used for dependency checking with cargo-deny. -# -# For further details on all configuration options see: -# https://embarkstudios.github.io/cargo-deny/checks/cfg.html -targets = [{ triple = "x86_64-unknown-linux-musl" }] - -# Deny all advisories unless explicitly ignored. -[advisories] -vulnerability = "deny" -unmaintained = "deny" -unsound = "deny" -yanked = "deny" -notice = "deny" -ignore = [ - # Follow this example: - # { id = "RUSTSEC-nnnn-nnnn" reason = "b/nnnnnnnnnn" } -] - -[bans] -multiple-versions = "allow" -wildcards = "allow" - -# Allow git repositories. -[sources] -unknown-git = "allow" - -# List of allowed licenses. -# For more detailed information see http://go/thirdpartylicenses. -[licenses] -allow = [ - "Apache-2.0", - "Apache-2.0 WITH LLVM-exception", - "BSD-2-Clause", - "BSD-3-Clause", - "MIT", - "Unicode-DFS-2016", -] -copyleft = "deny" diff --git a/enclave_apps/key_xor_test_app/BUILD b/enclave_apps/key_xor_test_app/BUILD index a66bd4a334b..812a5438030 100644 --- a/enclave_apps/key_xor_test_app/BUILD +++ b/enclave_apps/key_xor_test_app/BUILD @@ -25,6 +25,9 @@ rust_binary( name = "key_xor_test_app", srcs = ["src/main.rs"], platform = "//:x86_64-unknown-none", + rustc_flags = [ + "--codegen=link-arg=-zmax-page-size=0x200000", + ], deps = [ "//micro_rpc", "//oak_restricted_kernel_interface", diff --git a/enclave_apps/key_xor_test_app/Cargo.toml b/enclave_apps/key_xor_test_app/Cargo.toml deleted file mode 100644 index 7207bf46d4d..00000000000 --- a/enclave_apps/key_xor_test_app/Cargo.toml +++ /dev/null @@ -1,17 +0,0 @@ -[package] -name = "key_xor_test_app" -version = "0.1.0" -authors = ["Conrad Grobler "] -edition = "2021" -license = "Apache-2.0" - -[dependencies] -log = "*" -micro_rpc = { workspace = true } -oak_restricted_kernel_sdk = { workspace = true } -oak_restricted_kernel_interface = { workspace = true } - -[[bin]] -name = "key_xor_test_app" -test = false -bench = false diff --git a/enclave_apps/key_xor_test_app/build.rs b/enclave_apps/key_xor_test_app/build.rs deleted file mode 100644 index ba6bc313b67..00000000000 --- a/enclave_apps/key_xor_test_app/build.rs +++ /dev/null @@ -1,19 +0,0 @@ -// -// Copyright 2023 The Project Oak Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// - -fn main() { - println!("cargo:rustc-link-arg=-zmax-page-size=0x200000"); -} diff --git a/enclave_apps/oak_echo_enclave_app/BUILD b/enclave_apps/oak_echo_enclave_app/BUILD index cd34aae09bc..c6d2bc44ec7 100644 --- a/enclave_apps/oak_echo_enclave_app/BUILD +++ b/enclave_apps/oak_echo_enclave_app/BUILD @@ -25,6 +25,9 @@ rust_binary( name = "oak_echo_enclave_app", srcs = ["src/main.rs"], platform = "//:x86_64-unknown-none", + rustc_flags = [ + "--codegen=link-arg=-zmax-page-size=0x200000", + ], deps = [ "//micro_rpc", "//oak_restricted_kernel_sdk", diff --git a/enclave_apps/oak_echo_enclave_app/Cargo.toml b/enclave_apps/oak_echo_enclave_app/Cargo.toml deleted file mode 100644 index 16dc00208aa..00000000000 --- a/enclave_apps/oak_echo_enclave_app/Cargo.toml +++ /dev/null @@ -1,17 +0,0 @@ -[package] -name = "oak_echo_enclave_app" -version = "0.1.0" -authors = ["Ivan Petrov "] -edition = "2021" -license = "Apache-2.0" - -[dependencies] -oak_echo_service = { path = "../../testing/oak_echo_service" } -log = "*" -micro_rpc = { workspace = true } -oak_restricted_kernel_sdk = { workspace = true } - -[[bin]] -name = "oak_echo_enclave_app" -test = false -bench = false diff --git a/enclave_apps/oak_echo_enclave_app/build.rs b/enclave_apps/oak_echo_enclave_app/build.rs deleted file mode 100644 index 5a11b6a9c5e..00000000000 --- a/enclave_apps/oak_echo_enclave_app/build.rs +++ /dev/null @@ -1,19 +0,0 @@ -// -// Copyright 2022 The Project Oak Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// - -fn main() { - println!("cargo:rustc-link-arg=-zmax-page-size=0x200000"); -} diff --git a/enclave_apps/oak_echo_raw_enclave_app/BUILD b/enclave_apps/oak_echo_raw_enclave_app/BUILD index 3db5be1123f..0cc6b4d812f 100644 --- a/enclave_apps/oak_echo_raw_enclave_app/BUILD +++ b/enclave_apps/oak_echo_raw_enclave_app/BUILD @@ -25,6 +25,9 @@ rust_binary( name = "oak_echo_raw_enclave_app", srcs = ["src/main.rs"], platform = "//:x86_64-unknown-none", + rustc_flags = [ + "--codegen=link-arg=-zmax-page-size=0x200000", + ], deps = [ "//micro_rpc", "//oak_restricted_kernel_sdk", diff --git a/enclave_apps/oak_echo_raw_enclave_app/Cargo.toml b/enclave_apps/oak_echo_raw_enclave_app/Cargo.toml deleted file mode 100644 index ad3947d7c61..00000000000 --- a/enclave_apps/oak_echo_raw_enclave_app/Cargo.toml +++ /dev/null @@ -1,16 +0,0 @@ -[package] -name = "oak_echo_raw_enclave_app" -version = "0.1.0" -authors = ["Ivan Petrov "] -edition = "2021" -license = "Apache-2.0" - -[dependencies] -log = "*" -micro_rpc = { workspace = true } -oak_restricted_kernel_sdk = { workspace = true } - -[[bin]] -name = "oak_echo_raw_enclave_app" -test = false -bench = false diff --git a/enclave_apps/oak_echo_raw_enclave_app/build.rs b/enclave_apps/oak_echo_raw_enclave_app/build.rs deleted file mode 100644 index 5a11b6a9c5e..00000000000 --- a/enclave_apps/oak_echo_raw_enclave_app/build.rs +++ /dev/null @@ -1,19 +0,0 @@ -// -// Copyright 2022 The Project Oak Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// - -fn main() { - println!("cargo:rustc-link-arg=-zmax-page-size=0x200000"); -} diff --git a/enclave_apps/oak_functions_enclave_app/BUILD b/enclave_apps/oak_functions_enclave_app/BUILD index c8e385d523c..9821b4a2b26 100644 --- a/enclave_apps/oak_functions_enclave_app/BUILD +++ b/enclave_apps/oak_functions_enclave_app/BUILD @@ -25,6 +25,9 @@ rust_binary( name = "oak_functions_enclave_app", srcs = ["src/main.rs"], platform = "//:x86_64-unknown-none", + rustc_flags = [ + "--codegen=link-arg=-zmax-page-size=0x200000", + ], deps = [ "//micro_rpc", "//oak_functions_enclave_service:lib", diff --git a/enclave_apps/oak_functions_enclave_app/Cargo.toml b/enclave_apps/oak_functions_enclave_app/Cargo.toml deleted file mode 100644 index 919b0f09e58..00000000000 --- a/enclave_apps/oak_functions_enclave_app/Cargo.toml +++ /dev/null @@ -1,37 +0,0 @@ -[package] -name = "oak_functions_enclave_app" -version = "0.1.0" -authors = ["Andri Saar "] -edition = "2021" -license = "Apache-2.0" - -[features] -default = ["deny_sensitive_logging"] -# Disable sensitive logging. -deny_sensitive_logging = [ - "oak_functions_enclave_service/deny_sensitive_logging", -] -# Feature allow_sensitive_logging is not actually used in the code. It is only used as a -# required feature to differentiate between the two binaries. -allow_sensitive_logging = [] - -[dependencies] -oak_functions_enclave_service = { path = "../../oak_functions_enclave_service", default-features = false } -oak_functions_service = { path = "../../oak_functions_service", default-features = false } -log = "*" -micro_rpc = { workspace = true } -oak_micro_rpc = { workspace = true } -oak_restricted_kernel_sdk = { workspace = true } - -[[bin]] -name = "oak_functions_enclave_app" -test = false -bench = false -required-features = ["deny_sensitive_logging"] - -[[bin]] -path = "src/main.rs" -name = "oak_functions_insecure_enclave_app" -test = false -bench = false -required-features = ["allow_sensitive_logging"] diff --git a/enclave_apps/oak_functions_enclave_app/build.rs b/enclave_apps/oak_functions_enclave_app/build.rs deleted file mode 100644 index 20f94b4f0fb..00000000000 --- a/enclave_apps/oak_functions_enclave_app/build.rs +++ /dev/null @@ -1,19 +0,0 @@ -// -// Copyright 2024 The Project Oak Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// - -fn main() { - println!("cargo:rustc-link-arg=-zmax-page-size=0x200000"); -} diff --git a/enclave_apps/oak_multi_process_test/BUILD b/enclave_apps/oak_multi_process_test/BUILD index 18873e9b997..dace1b1c82c 100644 --- a/enclave_apps/oak_multi_process_test/BUILD +++ b/enclave_apps/oak_multi_process_test/BUILD @@ -25,6 +25,9 @@ rust_binary( name = "oak_multi_process_test", srcs = ["src/main.rs"], platform = "//:x86_64-unknown-none", + rustc_flags = [ + "--codegen=link-arg=-zmax-page-size=0x200000", + ], deps = [ "//oak_restricted_kernel_interface", "//oak_restricted_kernel_sdk", diff --git a/enclave_apps/oak_multi_process_test/Cargo.toml b/enclave_apps/oak_multi_process_test/Cargo.toml deleted file mode 100644 index 8c4aa792696..00000000000 --- a/enclave_apps/oak_multi_process_test/Cargo.toml +++ /dev/null @@ -1,16 +0,0 @@ -[package] -name = "oak_multi_process_test" -version = "0.1.0" -authors = ["Ivan Petrov "] -edition = "2021" -license = "Apache-2.0" - -[dependencies] -log = "*" -oak_restricted_kernel_sdk = { workspace = true } -oak_restricted_kernel_interface = { workspace = true } - -[[bin]] -name = "oak_multi_process_test" -test = false -bench = false diff --git a/enclave_apps/oak_multi_process_test/build.rs b/enclave_apps/oak_multi_process_test/build.rs deleted file mode 100644 index 5a11b6a9c5e..00000000000 --- a/enclave_apps/oak_multi_process_test/build.rs +++ /dev/null @@ -1,19 +0,0 @@ -// -// Copyright 2022 The Project Oak Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// - -fn main() { - println!("cargo:rustc-link-arg=-zmax-page-size=0x200000"); -} diff --git a/enclave_apps/oak_orchestrator/BUILD b/enclave_apps/oak_orchestrator/BUILD index 4e1650c4bab..99fb54e1734 100644 --- a/enclave_apps/oak_orchestrator/BUILD +++ b/enclave_apps/oak_orchestrator/BUILD @@ -25,6 +25,9 @@ rust_binary( name = "oak_orchestrator", srcs = ["src/main.rs"], platform = "//:x86_64-unknown-none", + rustc_flags = [ + "--codegen=link-arg=-zmax-page-size=0x200000", + ], deps = [ "//oak_dice", "//oak_restricted_kernel_interface", diff --git a/enclave_apps/oak_orchestrator/Cargo.toml b/enclave_apps/oak_orchestrator/Cargo.toml deleted file mode 100644 index c5a7f53378b..00000000000 --- a/enclave_apps/oak_orchestrator/Cargo.toml +++ /dev/null @@ -1,20 +0,0 @@ -[package] -name = "oak_orchestrator" -version = "0.1.0" -authors = ["Juliette Pluto "] -edition = "2021" -license = "Apache-2.0" - -[dependencies] -oak_restricted_kernel_sdk = { workspace = true } -oak_restricted_kernel_interface = { workspace = true } -oak_restricted_kernel_orchestrator = { path = "../../oak_restricted_kernel_orchestrator" } -oak_dice = { workspace = true } -zerocopy = "*" -log = "*" -zeroize = "*" - -[[bin]] -name = "oak_orchestrator" -test = false -bench = false diff --git a/enclave_apps/oak_orchestrator/build.rs b/enclave_apps/oak_orchestrator/build.rs deleted file mode 100644 index 20f94b4f0fb..00000000000 --- a/enclave_apps/oak_orchestrator/build.rs +++ /dev/null @@ -1,19 +0,0 @@ -// -// Copyright 2024 The Project Oak Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// - -fn main() { - println!("cargo:rustc-link-arg=-zmax-page-size=0x200000"); -} diff --git a/oak_file_utils/Cargo.toml b/oak_file_utils/Cargo.toml index 0eb85260b83..59724cddfdc 100644 --- a/oak_file_utils/Cargo.toml +++ b/oak_file_utils/Cargo.toml @@ -5,3 +5,7 @@ authors = ["Juliette Pluto "] edition = "2021" license = "Apache-2.0" description = "Shared utilities file access" + +[features] +bazel = [] +default = [] diff --git a/testing/oak_echo_service/BUILD b/testing/oak_echo_service/BUILD index d2c2c5678ff..fe719f51789 100644 --- a/testing/oak_echo_service/BUILD +++ b/testing/oak_echo_service/BUILD @@ -67,7 +67,6 @@ cargo_build_script( "PROTOC": "$(execpath @com_google_protobuf//:protoc)", "DESCRIPTOR_PROTO_PATH": "$(location @com_google_protobuf//:descriptor_proto_srcs)", }, - crate_features = ["bazel"], data = [ "//proto:digest.proto", "//proto/attestation:eventlog.proto", diff --git a/testing/oak_echo_service/Cargo.toml b/testing/oak_echo_service/Cargo.toml deleted file mode 100644 index dbc936d7035..00000000000 --- a/testing/oak_echo_service/Cargo.toml +++ /dev/null @@ -1,21 +0,0 @@ -[package] -name = "oak_echo_service" -version = "0.1.0" -authors = ["Ivan Petrov "] -edition = "2021" -license = "Apache-2.0" - -[dependencies] -hashbrown = "*" -log = "*" -micro_rpc = { workspace = true } -oak_proto_rust = { workspace = true } -oak_restricted_kernel_sdk = { workspace = true } -prost = { workspace = true } - -[build-dependencies] -micro_rpc_build = { workspace = true } - -[dev-dependencies] -async-trait = "*" -oak_restricted_kernel_sdk = { workspace = true, features = ["testing"] } diff --git a/testing/oak_echo_service/build.rs b/testing/oak_echo_service/build.rs index c602adbd3f9..bb942d2127e 100644 --- a/testing/oak_echo_service/build.rs +++ b/testing/oak_echo_service/build.rs @@ -14,16 +14,6 @@ // limitations under the License. // -#[cfg(not(feature = "bazel"))] -fn main() { - micro_rpc_build::compile( - &["testing/oak_echo_service/proto/oak_echo.proto", "proto/attestation/evidence.proto"], - &["../.."], - Default::default(), - ); -} - -#[cfg(feature = "bazel")] fn main() { micro_rpc_build::compile( &[