This is a port of sqlite3. Now we can use FFI to take advantage of sqlite3 in Rust 👯♀️ .
The README.md file explains the context also. All changes are under samplecode/sqlite3. You can view, comment on, or merge this pull request online at: https://github.com/apache/incubator-teaclave-sgx-sdk/pull/274 -- Commit Summary -- * init: start of porting sqlite3 to rust-sgx-sdk, by linking sqlite3 and expose ffi to rustlang * wip: finish compile and link sqlite3 source to enclave.so * wip: finish add rust bindings for sqlite3 c header * wip: finish add ocall interface and successfully compile * wip: finish prototype of sqlite inside sgx * wip: finish porting ecalls, need to fix fchown syscall for root user in docker env * wip: finish port and tested, document README and reorg a bit and tidy up left. * wip: finish reorg system headers * wip: fix time.h * wip: ignore bin and lib directory * done: clean up and add README * fix: remove change to .gitignore under root directory -- File Changes -- A samplecode/sqlite3/.gitignore (10) A samplecode/sqlite3/Makefile (210) A samplecode/sqlite3/README.md (56) A samplecode/sqlite3/app/app.c (242) A samplecode/sqlite3/app/app.h (50) A samplecode/sqlite3/app/appcpp.cpp (19) A samplecode/sqlite3/app/ocalls.c (97) A samplecode/sqlite3/enclave/Cargo.toml (44) A samplecode/sqlite3/enclave/Enclave.config.xml (12) A samplecode/sqlite3/enclave/Enclave.edl (59) A samplecode/sqlite3/enclave/Enclave.lds (9) A samplecode/sqlite3/enclave/Enclave_private.pem (39) A samplecode/sqlite3/enclave/Makefile (40) A samplecode/sqlite3/enclave/Xargo.toml (94) A samplecode/sqlite3/enclave/include/fcntl.h (221) A samplecode/sqlite3/enclave/include/sys/_types.h (168) A samplecode/sqlite3/enclave/include/sys/bitsperlong.h (16) A samplecode/sqlite3/enclave/include/sys/posix_types.h (99) A samplecode/sqlite3/enclave/include/sys/stat.h (246) A samplecode/sqlite3/enclave/include/sys/time.h (176) A samplecode/sqlite3/enclave/include/sys/types.h (130) A samplecode/sqlite3/enclave/ocall_interface.c (358) A samplecode/sqlite3/enclave/sqlite3.c (202924) A samplecode/sqlite3/enclave/sqlite3.h (10500) A samplecode/sqlite3/enclave/src/bindings.rs (4979) A samplecode/sqlite3/enclave/src/lib.rs (136) A samplecode/sqlite3/enclave/x86_64-unknown-linux-sgx.json (31) A samplecode/sqlite3/ocall_types.h (74) -- Patch Links -- https://github.com/apache/incubator-teaclave-sgx-sdk/pull/274.patch https://github.com/apache/incubator-teaclave-sgx-sdk/pull/274.diff -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/apache/incubator-teaclave-sgx-sdk/pull/274