You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@teaclave.apache.org by ms...@apache.org on 2020/01/06 19:56:51 UTC
[incubator-teaclave] branch develop updated: Tidy Cargo.toml
This is an automated email from the ASF dual-hosted git repository.
mssun pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/incubator-teaclave.git
The following commit(s) were added to refs/heads/develop by this push:
new db07f80 Tidy Cargo.toml
db07f80 is described below
commit db07f8082000b1a3e75b9543bba3e8ef59b1b536
Author: Mingshen Sun <bo...@mssun.me>
AuthorDate: Mon Jan 6 11:51:26 2020 -0800
Tidy Cargo.toml
---
attestation/Cargo.toml | 19 +++++-----
binder/Cargo.toml | 22 ++++-------
config/Cargo.toml | 11 +++---
ipc/Cargo.toml | 7 ++--
rpc/Cargo.toml | 25 ++++++------
services/teaclave_frontend/proto/build.rs | 3 ++
services/teaclave_frontend/sgx_app/Cargo.toml | 16 ++++----
.../teaclave_frontend/sgx_trusted_lib/Cargo.toml | 44 ++++++++++------------
types/Cargo.toml | 9 +++--
utils/service_app_utils/Cargo.toml | 11 +++---
utils/service_app_utils/src/lib.rs | 2 +-
utils/service_config/Cargo.toml | 7 ++--
utils/service_enclave_utils/Cargo.toml | 14 +++----
13 files changed, 94 insertions(+), 96 deletions(-)
diff --git a/attestation/Cargo.toml b/attestation/Cargo.toml
index bf909d2..6183ba0 100644
--- a/attestation/Cargo.toml
+++ b/attestation/Cargo.toml
@@ -6,21 +6,22 @@ description = "Teaclave Attestation"
license = "Apache-2.0"
edition = "2018"
-[lib]
-name = "teaclave_attestation"
-path = "src/lib.rs"
-
[features]
default = []
-mesalock_sgx = ["sgx_tstd", "sgx_tcrypto", "sgx_rand", "sgx_tse"]
+mesalock_sgx = [
+ "sgx_tstd",
+ "sgx_tcrypto",
+ "sgx_rand",
+ "sgx_tse",
+]
[dependencies]
-hex = "0.4.0"
anyhow = { version = "1.0.26" }
base64 = { version = "0.10.1" }
bit-vec = { version = "0.6.1", default-features = false }
cfg-if = { version = "0.1.9" }
chrono = { version = "0.4.6" }
+hex = { version = "0.4.0" }
httparse = { version = "1.3.2", default-features = false }
log = { version = "0.4.6" }
num-bigint = { version = "0.2.2" }
@@ -32,11 +33,11 @@ webpki = { version = "0.21.0" }
webpki-roots = { version = "0.17.0" }
yasna = { version = "0.3.0", features = ["bit-vec", "num-bigint", "chrono"] }
+teaclave_config = { path = "../config" }
+teaclave_types = { path = "../types" }
+
sgx_rand = { version = "1.1.0", optional = true }
sgx_tcrypto = { version = "1.1.0", optional = true }
sgx_tse = { version = "1.1.0", optional = true }
sgx_tstd = { version = "1.1.0", features = ["net", "backtrace"], optional = true }
sgx_types = { version = "1.1.0" }
-
-teaclave_config = { path = "../config" }
-teaclave_types = { path = "../types" }
diff --git a/binder/Cargo.toml b/binder/Cargo.toml
index 2d7d639..334240f 100644
--- a/binder/Cargo.toml
+++ b/binder/Cargo.toml
@@ -6,21 +6,15 @@ description = "Abstract communication interfaces between TEE untrusted/trusted w
license = "Apache-2.0"
edition = "2018"
-[lib]
-name = "teaclave_binder"
-path = "src/lib.rs"
-
-[features]
-default = []
-
[dependencies]
-sgx_types = "1.1.0"
-sgx_urts = "1.1.0"
-log = { version = "0.4.6" }
-env_logger = "0.7.1"
anyhow = { version = "1.0.26" }
+env_logger = { version = "0.7.1" }
+log = { version = "0.4.6" }
+serde = { version = "1.0.92" }
+serde_derive = { version = "1.0.92" }
+serde_json = { version = "1.0.39" }
-serde = "1.0.92"
-serde_derive = "1.0.92"
-serde_json = "1.0.39"
teaclave_ipc = { path = "../ipc" }
+
+sgx_types = { version = "1.1.0" }
+sgx_urts = { version = "1.1.0", features = ["global_init"] }
diff --git a/config/Cargo.toml b/config/Cargo.toml
index d5059ef..ba6ba99 100644
--- a/config/Cargo.toml
+++ b/config/Cargo.toml
@@ -11,9 +11,10 @@ default = []
mesalock_sgx = ["sgx_tstd"]
[dependencies]
-lazy_static = { version = "1.0.2", features = ["spin_no_std"] }
-serde = "1.0.93"
-serde_derive = "1.0.93"
-sgx_tstd = { version = "1.1.0", optional = true }
-toml = "0.5.1"
+lazy_static = { version = "1.0.2", features = ["spin_no_std"] }
log = { version = "0.4.6" }
+serde = { version = "1.0.93" }
+serde_derive = { version = "1.0.93" }
+toml = { version = "0.5.1" }
+
+sgx_tstd = { version = "1.1.0", optional = true }
diff --git a/ipc/Cargo.toml b/ipc/Cargo.toml
index 70399c1..fcf55f6 100644
--- a/ipc/Cargo.toml
+++ b/ipc/Cargo.toml
@@ -10,7 +10,7 @@ edition = "2018"
default = []
mesalock_sgx = [
"sgx_tstd",
- "teaclave_types/mesalock_sgx"
+ "teaclave_types/mesalock_sgx",
]
[dependencies]
@@ -18,9 +18,10 @@ serde = { version = "1.0.92" }
serde_derive = { version = "1.0.92" }
anyhow = { version = "1.0.26" }
serde_json = { version = "1.0.39" }
+log = { version = "0.4.6" }
+
teaclave_ipc_attribute = { path = "./attribute" }
-teaclave_types = { path = "../types" }
+teaclave_types = { path = "../types" }
sgx_tstd = { version = "1.1.0", features = ["net", "backtrace"], optional = true }
sgx_types = { version = "1.1.0" }
-log = { version = "0.4.6" }
\ No newline at end of file
diff --git a/rpc/Cargo.toml b/rpc/Cargo.toml
index 10068f6..7f4674b 100644
--- a/rpc/Cargo.toml
+++ b/rpc/Cargo.toml
@@ -11,20 +11,21 @@ default = []
mesalock_sgx = [
"sgx_tstd",
"teaclave_types/mesalock_sgx",
- "teaclave_attestation/mesalock_sgx"
+ "teaclave_attestation/mesalock_sgx",
]
[dependencies]
-serde = { version = "1.0.92", features = ["derive"] }
-cfg-if = { version = "0.1.9" }
-log = { version = "0.4.6" }
-serde_json = { version = "1.0.39" }
-anyhow = { version = "1.0.26" }
-thiserror = { version = "1.0.9" }
-webpki = { version = "0.21.0" }
-rustls = { version = "0.16.0", features = ["dangerous_configuration"] }
-threadpool = "1.8.0"
+anyhow = { version = "1.0.26" }
+cfg-if = { version = "0.1.9" }
+log = { version = "0.4.6" }
+rustls = { version = "0.16.0", features = ["dangerous_configuration"] }
+serde = { version = "1.0.92", features = ["derive"] }
+serde_json = { version = "1.0.39" }
+thiserror = { version = "1.0.9" }
+threadpool = { version = "1.8.0" }
+webpki = { version = "0.21.0" }
-sgx_tstd = { version = "1.1.0", features = ["net", "backtrace"], optional = true }
teaclave_attestation = { path = "../attestation" }
-teaclave_types = { path = "../types" }
+teaclave_types = { path = "../types" }
+
+sgx_tstd = { version = "1.1.0", features = ["net", "backtrace"], optional = true }
diff --git a/services/teaclave_frontend/proto/build.rs b/services/teaclave_frontend/proto/build.rs
index 14b0c56..c13450e 100644
--- a/services/teaclave_frontend/proto/build.rs
+++ b/services/teaclave_frontend/proto/build.rs
@@ -25,9 +25,12 @@ fn main() {
let out_dir = env::var("OUT_DIR").expect("$OUT_DIR not set. Please build with cargo");
println!("cargo:rerun-if-changed={}", proto_path);
println!("cargo:rerun-if-changed=build.rs");
+ println!("cargo:rerun-if-changed=templates/proto.j2");
let c = Command::new("cargo")
.args(&[
"run",
+ "--target-dir",
+ "/tmp/proto_gen/target",
"--manifest-path",
"../../proto_gen/Cargo.toml",
"--",
diff --git a/services/teaclave_frontend/sgx_app/Cargo.toml b/services/teaclave_frontend/sgx_app/Cargo.toml
index 774cccc..7d0a482 100644
--- a/services/teaclave_frontend/sgx_app/Cargo.toml
+++ b/services/teaclave_frontend/sgx_app/Cargo.toml
@@ -8,13 +8,13 @@ build = "build.rs"
edition = "2018"
[dependencies]
-sgx_types = { version = "1.1.0" }
-sgx_urts = { version = "1.1.0", features = ["global_init"] }
+log = { version = "0.4.6" }
+env_logger = { version = "0.7.1" }
+anyhow = { version = "1.0.26" }
-log = { version = "0.4.6" }
-env_logger = { version = "0.7.1" }
-anyhow = { version = "1.0.26" }
-teaclave_ipc = { path = "../../../ipc" }
+teaclave_ipc = { path = "../../../ipc" }
teaclave_service_app_utils = { path = "../../../utils/service_app_utils" }
-teaclave_service_config = { path = "../../../utils/service_config" }
-teaclave_binder = { path = "../../../binder" }
\ No newline at end of file
+teaclave_service_config = { path = "../../../utils/service_config" }
+teaclave_binder = { path = "../../../binder" }
+
+sgx_types = { version = "1.1.0" }
diff --git a/services/teaclave_frontend/sgx_trusted_lib/Cargo.toml b/services/teaclave_frontend/sgx_trusted_lib/Cargo.toml
index 1e3399c..a733dc8 100644
--- a/services/teaclave_frontend/sgx_trusted_lib/Cargo.toml
+++ b/services/teaclave_frontend/sgx_trusted_lib/Cargo.toml
@@ -14,37 +14,31 @@ crate-type = ["staticlib"]
default = []
mesalock_sgx = [
"sgx_tstd",
+ "teaclave_attestation/mesalock_sgx",
"teaclave_frontend_proto/mesalock_sgx",
- "teaclave_rpc/mesalock_sgx",
"teaclave_ipc/mesalock_sgx",
- "teaclave_types/mesalock_sgx",
- "teaclave_attestation/mesalock_sgx",
- "teaclave_service_enclave_utils/mesalock_sgx",
+ "teaclave_rpc/mesalock_sgx",
"teaclave_service_config/mesalock_sgx",
+ "teaclave_service_enclave_utils/mesalock_sgx",
+ "teaclave_types/mesalock_sgx",
]
cov = ["sgx_cov"]
[dependencies]
-cfg-if = { version = "0.1.9" }
-lazy_static = { version = "1.0.2", features = ["spin_no_std"] }
-log = { version = "0.4.6" }
-env_logger = { version = "0.7.1" }
-uuid = { version = "0.7.4", features = ["v4"] }
-rand = { version = "0.7.0" }
-anyhow = { version = "1.0.26" }
-rustls = { version = "0.16.0", features = ["dangerous_configuration"] }
-serde = { version = "1.0.92" }
-thiserror = { version = "1.0.9" }
+log = { version = "0.4.6" }
+anyhow = { version = "1.0.26" }
+serde = { version = "1.0.92" }
+thiserror = { version = "1.0.9" }
-sgx_cov = { version = "1.1.0", optional = true }
-sgx_tstd = { version = "1.1.0", features = ["net", "thread", "backtrace"], optional = true }
-sgx_types = { version = "1.1.0" }
+teaclave_attestation = { path = "../../../attestation" }
+teaclave_config = { path = "../../../config" }
+teaclave_frontend_proto = { path = "../proto" }
+teaclave_ipc = { path = "../../../ipc" }
+teaclave_rpc = { path = "../../../rpc" }
+teaclave_service_config = { path = "../../../utils/service_config" }
+teaclave_service_enclave_utils = { path = "../../../utils/service_enclave_utils" }
+teaclave_types = { path = "../../../types" }
-teaclave_config = { path = "../../../config" }
-teaclave_rpc = { path = "../../../rpc" }
-teaclave_attestation = { path = "../../../attestation" }
-teaclave_ipc = { path = "../../../ipc" }
-teaclave_types = { path = "../../../types" }
-teaclave_frontend_proto = { path = "../proto", optional = true}
-teaclave_service_enclave_utils = { path = "../../../utils/service_enclave_utils", optional = true }
-teaclave_service_config = { path = "../../../utils/service_config", optional = true }
+sgx_cov = { version = "1.1.0", optional = true }
+sgx_tstd = { version = "1.1.0", features = ["net", "thread", "backtrace"], optional = true }
+sgx_types = { version = "1.1.0" }
diff --git a/types/Cargo.toml b/types/Cargo.toml
index 0b1a5f6..0db8734 100644
--- a/types/Cargo.toml
+++ b/types/Cargo.toml
@@ -11,12 +11,13 @@ default = []
mesalock_sgx = ["sgx_tstd"]
[dependencies]
-sgx_tstd = { version = "1.1.0", features = ["net", "backtrace"], optional = true }
-anyhow = { version = "1.0.26" }
-sgx_types = "1.1.0"
-hex = "0.4.0"
+anyhow = { version = "1.0.26" }
+sgx_types = { version = "1.1.0" }
+hex = { version = "0.4.0" }
serde = { version = "1.0.92" }
serde_derive = { version = "1.0.92" }
toml = { version = "0.5.3" }
ring = { version = "0.16.5" }
thiserror = { version = "1.0.9" }
+
+sgx_tstd = { version = "1.1.0", features = ["net", "backtrace"], optional = true }
\ No newline at end of file
diff --git a/utils/service_app_utils/Cargo.toml b/utils/service_app_utils/Cargo.toml
index bf70b92..6001fac 100644
--- a/utils/service_app_utils/Cargo.toml
+++ b/utils/service_app_utils/Cargo.toml
@@ -8,8 +8,9 @@ edition = "2018"
[dependencies]
-ctrlc = { version = "3.1.2" }
-env_logger = { version = "0.7.1" }
-anyhow = { version = "1.0.26" }
-log = { version = "0.4.6" }
-teaclave_binder = { path = "../../binder" }
\ No newline at end of file
+ctrlc = { version = "3.1.2" }
+env_logger = { version = "0.7.1" }
+anyhow = { version = "1.0.26" }
+log = { version = "0.4.6" }
+
+teaclave_binder = { path = "../../binder" }
diff --git a/utils/service_app_utils/src/lib.rs b/utils/service_app_utils/src/lib.rs
index 5e971dc..ed22023 100644
--- a/utils/service_app_utils/src/lib.rs
+++ b/utils/service_app_utils/src/lib.rs
@@ -24,7 +24,7 @@ impl ServiceEnclaveBuilder {
{
let ref_tee = tee.clone();
ctrlc::set_handler(move || {
- info!("\nCTRL+C pressed. Destroying server enclave");
+ info!("CTRL+C pressed. Destroying service enclave");
ref_tee.finalize();
std::process::exit(0);
})
diff --git a/utils/service_config/Cargo.toml b/utils/service_config/Cargo.toml
index 9bbaeaf..db2b102 100644
--- a/utils/service_config/Cargo.toml
+++ b/utils/service_config/Cargo.toml
@@ -19,8 +19,9 @@ env_logger = { version = "0.7.1" }
anyhow = { version = "1.0.26" }
log = { version = "0.4.6" }
lazy_static = { version = "1.0.2", features = ["spin_no_std"] }
-sgx_tstd = { version = "1.1.0", features = ["net", "backtrace"], optional = true }
-teaclave_config = { path = "../../config" }
+teaclave_config = { path = "../../config" }
teaclave_attestation = { path = "../../attestation" }
-teaclave_types = { path = "../../types" }
\ No newline at end of file
+teaclave_types = { path = "../../types" }
+
+sgx_tstd = { version = "1.1.0", features = ["net", "backtrace"], optional = true }
diff --git a/utils/service_enclave_utils/Cargo.toml b/utils/service_enclave_utils/Cargo.toml
index 1c254e8..ccbf403 100644
--- a/utils/service_enclave_utils/Cargo.toml
+++ b/utils/service_enclave_utils/Cargo.toml
@@ -12,15 +12,15 @@ mesalock_sgx = [
"sgx_tstd",
"teaclave_service_config/mesalock_sgx",
]
-
cov = ["sgx_cov"]
[dependencies]
-env_logger = { version = "0.7.1" }
-anyhow = { version = "1.0.26" }
-log = { version = "0.4.6" }
-sgx_tstd = { version = "1.1.0", features = ["net", "backtrace"], optional = true }
-sgx_cov = { version = "1.1.0", optional = true }
+anyhow = { version = "1.0.26" }
+env_logger = { version = "0.7.1" }
+log = { version = "0.4.6" }
-teaclave_service_config = { path = "../service_config" }
+teaclave_service_config = { path = "../service_config" }
teaclave_service_enclave_utils_proc_macro = { path = "./proc_macro" }
+
+sgx_cov = { version = "1.1.0", optional = true }
+sgx_tstd = { version = "1.1.0", features = ["net", "backtrace"], optional = true }
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@teaclave.apache.org
For additional commands, e-mail: commits-help@teaclave.apache.org