This is an automated email from the ASF dual-hosted git repository.

rduan pushed a commit to branch v2.0.0-preview
in repository https://gitbox.apache.org/repos/asf/incubator-teaclave-sgx-sdk.git


The following commit(s) were added to refs/heads/v2.0.0-preview by this push:
     new 85aee3d1 Update logger samplecode
85aee3d1 is described below

commit 85aee3d1c870c823219dc66a1d383ae187641ba9
Author: volcano <[email protected]>
AuthorDate: Sun Aug 7 00:14:36 2022 +0800

    Update logger samplecode
---
 samplecode/logger/Makefile           | 2 +-
 samplecode/logger/enclave/Xargo.toml | 2 +-
 samplecode/logger/enclave/src/lib.rs | 1 -
 3 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/samplecode/logger/Makefile b/samplecode/logger/Makefile
index e5ebd227..013a44c4 100644
--- a/samplecode/logger/Makefile
+++ b/samplecode/logger/Makefile
@@ -89,7 +89,7 @@ endif
 
 ifeq ($(BUILD_STD), cargo)
        Rust_Build_Std := --release -Z build-std=core,alloc
-       Rust_Std_Features := --features env,untrusted_time,untrusted_fs
+       Rust_Std_Features := --features env,untrusted_time
        Rust_Target_Flags := --target 
$(Rust_Target_Path)/$(Rust_Build_Target).json
        Rust_Sysroot_Path := $(CURDIR)/sysroot
        Rust_Sysroot_Flags := RUSTFLAGS="--sysroot $(Rust_Sysroot_Path)"
diff --git a/samplecode/logger/enclave/Xargo.toml 
b/samplecode/logger/enclave/Xargo.toml
index 39269767..b194bfbc 100644
--- a/samplecode/logger/enclave/Xargo.toml
+++ b/samplecode/logger/enclave/Xargo.toml
@@ -20,5 +20,5 @@ alloc = {}
 
 [dependencies.std]
 path = "../../../rustlib/std"
-features = ["env", "untrusted_fs", "untrusted_time"]
+features = ["env", "untrusted_time"]
 stage = 1
diff --git a/samplecode/logger/enclave/src/lib.rs 
b/samplecode/logger/enclave/src/lib.rs
index 71806a29..01ef10a8 100644
--- a/samplecode/logger/enclave/src/lib.rs
+++ b/samplecode/logger/enclave/src/lib.rs
@@ -21,7 +21,6 @@ extern crate sgx_types;
 use log::{debug, error, info, trace};
 use sgx_types::error::SgxStatus;
 use std::slice;
-use std::string::String;
 
 /// # Safety
 #[no_mangle]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to