Using proc_macro and trait system to automatically generate rust code for ecall and ocall.
The code placed in sgx_new_edl crate, and i also provide a example in samplecode folder named new_helloworld. You can view, comment on, or merge this pull request online at: https://github.com/apache/incubator-teaclave-sgx-sdk/pull/465 -- Commit Summary -- * automatically generate rust edl code -- File Changes -- M samplecode/helloworld/Makefile (2) M samplecode/helloworld/enclave/src/lib.rs (28) A samplecode/new_helloworld/.cargo/config.toml (4) A samplecode/new_helloworld/Cargo.toml (4) A samplecode/new_helloworld/Makefile (226) A samplecode/new_helloworld/README.md (6) A samplecode/new_helloworld/app/Cargo.toml (14) A samplecode/new_helloworld/app/build.rs (22) A samplecode/new_helloworld/app/src/main.rs (57) A samplecode/new_helloworld/edl/Cargo.toml (19) A samplecode/new_helloworld/edl/build.rs (7) A samplecode/new_helloworld/edl/enclave.edl (25) A samplecode/new_helloworld/edl/src/ecalls.rs (10) A samplecode/new_helloworld/edl/src/lib.rs (8) A samplecode/new_helloworld/edl/src/ocalls.rs (95) A samplecode/new_helloworld/enclave/Cargo.toml (18) A samplecode/new_helloworld/enclave/build.rs (40) A samplecode/new_helloworld/enclave/config.xml (31) A samplecode/new_helloworld/enclave/enclave.lds (12) A samplecode/new_helloworld/enclave/private.pem (39) A samplecode/new_helloworld/enclave/src/lib.rs (27) A samplecode/new_helloworld/xtask/Cargo.toml (8) A samplecode/new_helloworld/xtask/src/main.rs (282) A samplecode/skel/Cargo.toml (3) A samplecode/skel/app/Cargo.toml (9) A samplecode/skel/app/src/main.rs (6) A samplecode/skel/common/Cargo.toml (12) A samplecode/skel/common/src/ecalls.rs (11) A samplecode/skel/common/src/lib.rs (3) A samplecode/skel/common/src/ocalls.rs (7) A samplecode/skel/enclave/Cargo.toml (9) A samplecode/skel/enclave/src/lib.rs (14) A sgx_demo/Cargo.toml (8) A sgx_demo/src/lib.rs (13) A sgx_new_edl/.gitignore (1) A sgx_new_edl/Cargo.toml (18) A sgx_new_edl/sgx_edl_macros/Cargo.toml (13) A sgx_new_edl/sgx_edl_macros/src/lib.rs (403) A sgx_new_edl/src/arg.rs (247) A sgx_new_edl/src/ecall.rs (146) A sgx_new_edl/src/lib.rs (43) A sgx_new_edl/src/ocall.rs (161) A sgx_new_edl/src/ser.rs (18) -- Patch Links -- https://github.com/apache/incubator-teaclave-sgx-sdk/pull/465.patch https://github.com/apache/incubator-teaclave-sgx-sdk/pull/465.diff -- Reply to this email directly or view it on GitHub: https://github.com/apache/incubator-teaclave-sgx-sdk/pull/465 You are receiving this because you are subscribed to this thread. Message ID: <apache/incubator-teaclave-sgx-sdk/pull/4...@github.com>