hi, I tried again based on helloworld sample, it works well, but this example use very few deps and features
hellworld sample, Cargo.toml of enclave ```toml [target.'cfg(not(target_vendor = "teaclave"))'.dependencies] sgx_types = { path = "../../../sgx_types" } sgx_tstd = { path = "../../../sgx_tstd" } sgx_crypto = { path = "../../../sgx_crypto" } # added ``` and no features enabled for sysroot `Rust_Std_Features :=` head lines in lib.rs: ```rs #![cfg_attr(not(target_vendor = "teaclave"), no_std)] #![cfg_attr(target_vendor = "teaclave", feature(rustc_private))] #[cfg(not(target_vendor = "teaclave"))] #[macro_use] extern crate sgx_tstd as std; extern crate sgx_types; ``` ---- regarding my demo (based on hyper-rustls-https-server actually), Cargo.toml of enclave ```toml [dependencies] sgx_libc = { path = "../../incubator-teaclave-sgx-sdk/sgx_libc" } sgx_types = { path = "../../incubator-teaclave-sgx-sdk/sgx_types" } sgx_crypto = { path = "../../incubator-teaclave-sgx-sdk/sgx_crypto" } tokio = { version = "1.0", features = ["macros", "net", "rt-multi-thread"] } jsonrpsee-http-server = "0.15.1" base64 = "0.21.7" ``` features enabled: `Rust_Std_Features := --features backtrace,net,thread,untrusted_time,untrusted_fs,unsupported_process,capi` (added some) head lines in lib.rs (exact same with hyper sample): ```rs extern crate sgx_libc; extern crate sgx_types; ``` and this one got compile error as posted I noticed the head lines difference of the two, but not very clear about what it means also I add sgx_tstd dep and replace the above head lines with exact same lines in helloword example (with other imports fixed), got same compile error still -- Reply to this email directly or view it on GitHub: https://github.com/apache/incubator-teaclave-sgx-sdk/issues/455#issuecomment-2014311600 You are receiving this because you are subscribed to this thread. Message ID: <apache/incubator-teaclave-sgx-sdk/issues/455/2014311...@github.com>