## Description Upgrade Rust toolchain and SGX software.
Fixes # (issue) https://github.com/apache/incubator-teaclave/issues/664 https://github.com/apache/incubator-teaclave/issues/662 ## Type of change (select or add applied and delete the others) - [ ] Bug fix (non-breaking change which fixes an issue) - [X] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] API change with a documentation update - [ ] Additional test coverage - [ ] Code cleanup or just sync with upstream third-party crates ## How has this been tested? CI and local HW tests. ## Checklist - [X] Fork the repo and create your branch from `master`. - [ ] If you've added code that should be tested, add tests. - [ ] If you've changed APIs, update the documentation. - [X] Ensure the tests pass (see CI results). - [X] Make sure your code lints/format. You can view, comment on, or merge this pull request online at: https://github.com/apache/incubator-teaclave/pull/666 -- Commit Summary -- * Upgrade to Rust SGX SDK 2.0.0 -- File Changes -- M .github/workflows/ci.yml (14) M .github/workflows/codeql-analysis.yml (2) A .github/workflows/docker.yml (163) M .github/workflows/ubuntu1804-test.yml (2) M .github/workflows/ubuntu2004-test.yml (12) M .gitmodules (28) M CMakeLists.txt (54) M attestation/Cargo.toml (22) M attestation/src/attestation.rs (7) M attestation/src/cert.rs (4) M attestation/src/key.rs (50) M attestation/src/lib.rs (21) M attestation/src/platform.rs (107) M attestation/src/report.rs (17) M attestation/src/service.rs (39) M attestation/src/verifier.rs (10) M binder/Cargo.toml (11) M binder/attribute/Cargo.toml (2) M binder/src/binder.rs (36) M binder/src/error.rs (2) M binder/src/ipc/app.rs (22) M binder/src/ipc/enclave.rs (4) M binder/src/ipc/mod.rs (1) M binder/src/lib.rs (4) M binder/src/ocall.rs (51) M binder/src/proto.rs (7) M cli/Cargo.toml (4) M cmake/TeaclaveGenVars.cmake (13) M cmake/TeaclaveUtils.cmake (8) M cmake/scripts/build_in_ci.sh (3) M cmake/scripts/prep.sh (4) M cmake/scripts/setup_cmake_tomls.py (12) M cmake/scripts/sgx_link_sign.sh (8) M cmake/scripts/test.sh (6) M cmake/tomls/Cargo.sgx_trusted_lib.toml (83) M cmake/tomls/Cargo.sgx_untrusted_app.toml (10) M cmake/tomls/Cargo.unix_app.toml (10) D common/protected_fs_rs/Cargo.lock (132) M common/protected_fs_rs/Cargo.toml (13) M common/protected_fs_rs/build.rs (9) M common/protected_fs_rs/protected_fs_c/sgx_tprotected_fs.edl (4) M common/protected_fs_rs/src/deps.rs (28) M common/protected_fs_rs/src/lib.rs (3) M common/protected_fs_rs/src/protected_fs.rs (46) M common/protected_fs_rs/src/sgx_fs_inner.rs (28) M common/protected_fs_rs/src/sgx_tprotected_fs.rs (93) M common/rusty_leveldb_sgx/Cargo.toml (11) M common/rusty_leveldb_sgx/src/block.rs (3) M common/rusty_leveldb_sgx/src/block_builder.rs (3) M common/rusty_leveldb_sgx/src/blockhandle.rs (1) M common/rusty_leveldb_sgx/src/cache.rs (3) M common/rusty_leveldb_sgx/src/cmp.rs (3) M common/rusty_leveldb_sgx/src/db_impl.rs (3) M common/rusty_leveldb_sgx/src/db_iter.rs (3) M common/rusty_leveldb_sgx/src/disk_env.rs (5) M common/rusty_leveldb_sgx/src/env.rs (2) M common/rusty_leveldb_sgx/src/env_common.rs (4) M common/rusty_leveldb_sgx/src/error.rs (6) M common/rusty_leveldb_sgx/src/filter.rs (3) M common/rusty_leveldb_sgx/src/filter_block.rs (7) M common/rusty_leveldb_sgx/src/infolog.rs (3) M common/rusty_leveldb_sgx/src/key_types.rs (3) M common/rusty_leveldb_sgx/src/lib.rs (6) M common/rusty_leveldb_sgx/src/log.rs (2) M common/rusty_leveldb_sgx/src/mem_env.rs (4) M common/rusty_leveldb_sgx/src/memtable.rs (3) M common/rusty_leveldb_sgx/src/merging_iter.rs (3) M common/rusty_leveldb_sgx/src/options.rs (3) M common/rusty_leveldb_sgx/src/skipmap.rs (3) M common/rusty_leveldb_sgx/src/snapshot.rs (1) M common/rusty_leveldb_sgx/src/table_block.rs (3) M common/rusty_leveldb_sgx/src/table_builder.rs (3) M common/rusty_leveldb_sgx/src/table_cache.rs (2) M common/rusty_leveldb_sgx/src/table_reader.rs (3) M common/rusty_leveldb_sgx/src/test_util.rs (3) M common/rusty_leveldb_sgx/src/types.rs (2) M common/rusty_leveldb_sgx/src/version.rs (3) M common/rusty_leveldb_sgx/src/version_edit.rs (4) M common/rusty_leveldb_sgx/src/version_set.rs (3) M common/rusty_leveldb_sgx/src/write_batch.rs (3) M config/Cargo.toml (6) M config/build.rs (5) M config/config_gen/Cargo.lock (140) M config/config_gen/Cargo.toml (2) M config/config_gen/main.rs (16) M config/src/lib.rs (5) M config/src/runtime.rs (2) M crypto/Cargo.toml (7) M crypto/src/lib.rs (10) M dcap/Cargo.toml (10) M dcap/README.md (2) M dcap/Rocket.toml (2) M dcap/src/main.rs (139) M docker/README.md (2) R docker/build.ubuntu-1804-sgx-2.17.1.Dockerfile (12) R docker/build.ubuntu-1804-sgx-dcap-1.14.Dockerfile (14) R docker/build.ubuntu-2004-sgx-2.17.1.Dockerfile (12) R docker/build.ubuntu-2004-sgx-dcap-1.14.Dockerfile (14) M docker/teaclave-rt.ubuntu-1804.Dockerfile (6) M docker/teaclave-rt.ubuntu-2004.Dockerfile (6) M edl/Enclave_common.edl (8) M examples/c/Makefile (2) M examples/python/wasm_rust_psi_payload/Cargo.lock (2) M examples/python/wasm_rust_psi_payload/Cargo.toml (2) M examples/python/wasm_tvm_mnist_payload/Cargo.toml (2) M examples/rust/builtin_echo/Cargo.lock (327) M examples/rust/builtin_echo/Cargo.toml (2) M examples/rust/builtin_ordered_set_intersect/Cargo.lock (327) M examples/rust/builtin_ordered_set_intersect/Cargo.toml (2) M executor/Cargo.toml (10) M executor/context/Cargo.toml (8) M executor/context/src/context.rs (21) M executor/context/src/lib.rs (7) M executor/src/builtin.rs (3) M executor/src/lib.rs (9) M executor/src/mesapy.rs (4) M executor/src/wamr.rs (6) D file_agent/Cargo.lock (1468) M file_agent/Cargo.toml (2) M function/Cargo.toml (14) M function/src/echo.rs (3) M function/src/face_detection.rs (2) M function/src/gbdt_predict.rs (7) M function/src/gbdt_train.rs (11) M function/src/lib.rs (7) M function/src/logistic_regression_predict.rs (11) M function/src/logistic_regression_train.rs (44) M function/src/online_decrypt.rs (13) M function/src/ordered_set_intersect.rs (3) M function/src/password_check.rs (5) M function/src/principal_components_analysis.rs (3) M function/src/private_join_and_compute.rs (10) M function/src/rsa_sign.rs (23) M rpc/Cargo.toml (10) M rpc/proc_macro/Cargo.toml (2) M rpc/src/config.rs (18) M rpc/src/endpoint.rs (1) M rpc/src/lib.rs (5) M rpc/src/protocol.rs (2) M rpc/src/request.rs (1) M rpc/src/transport.rs (1) M runtime/Cargo.toml (10) M runtime/src/default.rs (3) M runtime/src/lib.rs (4) M runtime/src/raw_io.rs (3) D sdk/payload/wasm/teaclave_context/Cargo.lock (7) M sdk/payload/wasm/teaclave_context/Cargo.toml (2) M sdk/rust/Cargo.lock (329) M sdk/rust/Cargo.toml (2) M sdk/rust/src/bindings.rs (4) M services/access_control/app/Cargo.toml (2) M services/access_control/app/build.rs (2) M services/access_control/enclave/Cargo.toml (9) M services/access_control/enclave/src/acs.rs (14) M services/access_control/enclave/src/error.rs (2) M services/access_control/enclave/src/lib.rs (9) M services/access_control/enclave/src/service.rs (1) M services/authentication/app/Cargo.toml (2) M services/authentication/app/build.rs (2) M services/authentication/enclave/Cargo.toml (9) M services/authentication/enclave/src/api_service.rs (8) M services/authentication/enclave/src/error.rs (2) M services/authentication/enclave/src/internal_service.rs (18) M services/authentication/enclave/src/lib.rs (13) M services/authentication/enclave/src/user_db.rs (1) M services/authentication/enclave/src/user_info.rs (7) M services/execution/app/Cargo.toml (2) M services/execution/app/build.rs (2) M services/execution/enclave/Cargo.toml (10) M services/execution/enclave/src/lib.rs (11) M services/execution/enclave/src/ocall.rs (15) M services/execution/enclave/src/service.rs (19) M services/execution/enclave/src/task_file_manager.rs (3) M services/frontend/app/Cargo.toml (2) M services/frontend/app/build.rs (2) M services/frontend/enclave/Cargo.toml (9) M services/frontend/enclave/src/error.rs (2) M services/frontend/enclave/src/lib.rs (9) M services/frontend/enclave/src/service.rs (27) M services/management/app/Cargo.toml (2) M services/management/app/build.rs (2) M services/management/enclave/Cargo.toml (9) M services/management/enclave/src/error.rs (1) M services/management/enclave/src/lib.rs (10) M services/management/enclave/src/service.rs (39) M services/proto/Cargo.toml (14) M services/proto/build.rs (20) M services/proto/proto_gen/Cargo.lock (239) M services/proto/proto_gen/Cargo.toml (2) M services/proto/proto_gen/main.rs (4) M services/proto/src/lib.rs (4) M services/proto/src/teaclave_access_control_service.rs (1) M services/proto/src/teaclave_authentication_service.rs (1) M services/proto/src/teaclave_common.rs (3) M services/proto/src/teaclave_frontend_service.rs (1) M services/proto/src/teaclave_scheduler_service.rs (1) M services/proto/src/teaclave_storage_service.rs (1) M services/scheduler/app/Cargo.toml (2) M services/scheduler/app/build.rs (2) M services/scheduler/enclave/Cargo.toml (10) M services/scheduler/enclave/src/error.rs (2) M services/scheduler/enclave/src/lib.rs (14) M services/scheduler/enclave/src/publisher.rs (3) M services/scheduler/enclave/src/service.rs (9) M services/storage/app/Cargo.toml (2) M services/storage/app/build.rs (2) M services/storage/enclave/Cargo.toml (8) M services/storage/enclave/src/error.rs (2) M services/storage/enclave/src/lib.rs (9) M services/storage/enclave/src/proxy.rs (1) M services/storage/enclave/src/service.rs (1) M services/utils/service_app_utils/Cargo.toml (2) M services/utils/service_enclave_utils/Cargo.toml (15) M services/utils/service_enclave_utils/proc_macro/Cargo.toml (2) M services/utils/service_enclave_utils/proc_macro/src/lib.rs (2) M services/utils/service_enclave_utils/src/lib.rs (25) M tests/fixtures/functions/logistic_regression_prediction/model.txt (2) M tests/fixtures/functions/logistic_regression_training/expected_model.txt (2) M tests/fixtures/functions/princopal_components_analysis/expected_result.txt (130) M tests/functional/app/Cargo.toml (4) M tests/functional/app/build.rs (2) M tests/functional/enclave/Cargo.toml (7) M tests/functional/enclave/src/access_control_service.rs (1) M tests/functional/enclave/src/authentication_service.rs (3) M tests/functional/enclave/src/end_to_end/mesapy_data_fusion.rs (4) M tests/functional/enclave/src/end_to_end/mod.rs (1) M tests/functional/enclave/src/execution_service.rs (1) M tests/functional/enclave/src/frontend_service.rs (1) M tests/functional/enclave/src/lib.rs (10) M tests/functional/enclave/src/management_service.rs (1) M tests/functional/enclave/src/scheduler_service.rs (1) M tests/functional/enclave/src/storage_service.rs (1) M tests/functional/enclave/src/utils.rs (7) M tests/integration/app/Cargo.toml (4) M tests/integration/app/build.rs (2) M tests/integration/enclave/Cargo.toml (11) M tests/integration/enclave/src/lib.rs (10) M tests/integration/enclave/src/protected_fs_rs.rs (21) M tests/integration/enclave/src/rusty_leveldb_sgx.rs (14) M tests/integration/enclave/src/teaclave_rpc.rs (6) M tests/integration/enclave/src/teaclave_worker.rs (2) M tests/unit/app/Cargo.toml (4) M tests/unit/app/build.rs (2) M tests/unit/enclave/Cargo.toml (7) M tests/unit/enclave/src/lib.rs (6) M tests/utils/Cargo.toml (7) M tests/utils/proc_macro/Cargo.toml (2) M tests/utils/src/lib.rs (6) M third_party/rust-sgx-sdk (2) M tool/app/Cargo.toml (4) M tool/app/build.rs (2) M tool/enclave/Cargo.toml (7) M tool/enclave/src/lib.rs (12) M types/Cargo.toml (9) M types/src/attestation.rs (16) M types/src/crypto.rs (8) M types/src/error.rs (5) M types/src/file.rs (1) M types/src/file_agent.rs (1) M types/src/function.rs (1) M types/src/lib.rs (8) M types/src/staged_file.rs (1) M types/src/staged_function.rs (1) M types/src/staged_task.rs (1) M types/src/storage.rs (1) M types/src/task.rs (4) M types/src/task_state.rs (2) M types/src/user.rs (2) M types/src/worker.rs (3) M worker/Cargo.toml (10) M worker/src/lib.rs (4) M worker/src/worker.rs (8) -- Patch Links -- https://github.com/apache/incubator-teaclave/pull/666.patch https://github.com/apache/incubator-teaclave/pull/666.diff -- Reply to this email directly or view it on GitHub: https://github.com/apache/incubator-teaclave/pull/666 You are receiving this because you are subscribed to this thread. Message ID: <apache/incubator-teaclave/pull/6...@github.com>