From f99d39fd04f05ac3551f238cdaee0d483d4330c3 Mon Sep 17 00:00:00 2001 From: Yawning Angel Date: Thu, 11 Jun 2020 12:06:15 +0000 Subject: [PATCH] client: Rename the rpc crate to enclave_rpc --- .changelog/2469.internal.2.md | 1 + client/src/{rpc => enclave_rpc}/api/enclaverpc.rs | 0 client/src/{rpc => enclave_rpc}/api/mod.rs | 0 client/src/{rpc => enclave_rpc}/client.rs | 0 client/src/{rpc => enclave_rpc}/macros.rs | 0 client/src/{rpc => enclave_rpc}/mod.rs | 0 client/src/{rpc => enclave_rpc}/transport.rs | 0 client/src/lib.rs | 5 ++--- 8 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 .changelog/2469.internal.2.md rename client/src/{rpc => enclave_rpc}/api/enclaverpc.rs (100%) rename client/src/{rpc => enclave_rpc}/api/mod.rs (100%) rename client/src/{rpc => enclave_rpc}/client.rs (100%) rename client/src/{rpc => enclave_rpc}/macros.rs (100%) rename client/src/{rpc => enclave_rpc}/mod.rs (100%) rename client/src/{rpc => enclave_rpc}/transport.rs (100%) diff --git a/.changelog/2469.internal.2.md b/.changelog/2469.internal.2.md new file mode 100644 index 00000000000..e8a3bb16511 --- /dev/null +++ b/.changelog/2469.internal.2.md @@ -0,0 +1 @@ +client: Rename the rpc crate to enclave_rpc diff --git a/client/src/rpc/api/enclaverpc.rs b/client/src/enclave_rpc/api/enclaverpc.rs similarity index 100% rename from client/src/rpc/api/enclaverpc.rs rename to client/src/enclave_rpc/api/enclaverpc.rs diff --git a/client/src/rpc/api/mod.rs b/client/src/enclave_rpc/api/mod.rs similarity index 100% rename from client/src/rpc/api/mod.rs rename to client/src/enclave_rpc/api/mod.rs diff --git a/client/src/rpc/client.rs b/client/src/enclave_rpc/client.rs similarity index 100% rename from client/src/rpc/client.rs rename to client/src/enclave_rpc/client.rs diff --git a/client/src/rpc/macros.rs b/client/src/enclave_rpc/macros.rs similarity index 100% rename from client/src/rpc/macros.rs rename to client/src/enclave_rpc/macros.rs diff --git a/client/src/rpc/mod.rs b/client/src/enclave_rpc/mod.rs similarity index 100% rename from client/src/rpc/mod.rs rename to client/src/enclave_rpc/mod.rs diff --git a/client/src/rpc/transport.rs b/client/src/enclave_rpc/transport.rs similarity index 100% rename from client/src/rpc/transport.rs rename to client/src/enclave_rpc/transport.rs diff --git a/client/src/lib.rs b/client/src/lib.rs index f6fbbbdf752..b173ecfcb28 100644 --- a/client/src/lib.rs +++ b/client/src/lib.rs @@ -3,10 +3,9 @@ #[cfg(not(target_env = "sgx"))] #[macro_use] pub mod grpc; +pub mod enclave_rpc; #[cfg(not(target_env = "sgx"))] pub mod node; -// TODO: Rename "rpc" module to "enclave_rpc" or similar. -pub mod rpc; #[cfg(not(target_env = "sgx"))] pub mod transaction; @@ -14,6 +13,6 @@ pub mod transaction; pub type BoxFuture = Box + Send>; // Re-exports. -pub use self::rpc::RpcClient; +pub use self::enclave_rpc::RpcClient; #[cfg(not(target_env = "sgx"))] pub use self::{node::Node, transaction::TxnClient};