Skip to content

Commit

Permalink
keymanager: Move client crate to runtime crate
Browse files Browse the repository at this point in the history
  • Loading branch information
peternose committed Sep 13, 2022
1 parent 7113bbf commit 3ea0e38
Show file tree
Hide file tree
Showing 11 changed files with 8 additions and 52 deletions.
15 changes: 0 additions & 15 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
members = [
"runtime",
"runtime-loader",
"client",
"keymanager-client",
"keymanager-api-common",
"keymanager-lib",
Expand Down
16 changes: 0 additions & 16 deletions client/Cargo.toml

This file was deleted.

7 changes: 0 additions & 7 deletions client/src/enclave_rpc/mod.rs

This file was deleted.

6 changes: 0 additions & 6 deletions client/src/lib.rs

This file was deleted.

1 change: 0 additions & 1 deletion keymanager-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ authors = ["Oasis Protocol Foundation <[email protected]>"]
edition = "2018"

[dependencies]
oasis-core-client = { path = "../client" }
oasis-core-runtime = { path = "../runtime" }
oasis-core-keymanager-api-common = { path = "../keymanager-api-common" }
cbor = { version = "0.5.0", package = "oasis-cbor" }
Expand Down
3 changes: 1 addition & 2 deletions keymanager-client/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,11 @@ use futures::future::{self, BoxFuture};
use io_context::Context;
use lru::LruCache;

use oasis_core_client::RpcClient;
use oasis_core_keymanager_api_common::*;
use oasis_core_runtime::{
common::{namespace::Namespace, sgx::EnclaveIdentity},
consensus::{beacon::EpochTime, keymanager::SignedPolicySGX, verifier::Verifier},
enclave_rpc::session,
enclave_rpc::{client::RpcClient, session},
protocol::Protocol,
rak::RAK,
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use io_context::Context;
use thiserror::Error;
use tokio;

use oasis_core_runtime::{
use crate::{
cbor,
common::sgx::EnclaveIdentity,
enclave_rpc::{
Expand Down Expand Up @@ -377,7 +377,7 @@ mod test {
use futures::future::{self, BoxFuture};
use io_context::Context;

use oasis_core_runtime::{
use crate::{
enclave_rpc::{demux::Demux, session, types},
rak::RAK,
};
Expand Down
2 changes: 2 additions & 0 deletions runtime/src/enclave_rpc/mod.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
//! Secure inter-enclave RPC.
pub mod client;
pub mod context;
pub mod demux;
pub mod dispatcher;
pub mod session;
mod transport;
pub mod types;

// Re-exports.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ use anyhow::{anyhow, Error as AnyError};
use futures::future::{self, BoxFuture};
use io_context::Context;

use oasis_core_runtime::{enclave_rpc::types, protocol::Protocol, types::Body};
use crate::{types::Body, Protocol};

use super::types;

/// An EnclaveRPC transport.
pub trait Transport: Send + Sync {
Expand Down
1 change: 0 additions & 1 deletion tests/runtimes/simple-keyvalue/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ threads = 6
[dependencies]
cbor = { version = "0.5.0", package = "oasis-cbor" }
oasis-core-runtime = { path = "../../../runtime" }
oasis-core-client = { path = "../../../client" }
oasis-core-keymanager-client = { path = "../../../keymanager-client" }
oasis-core-keymanager-api-common = { path = "../../../keymanager-api-common" }
simple-keymanager = { path = "../simple-keymanager" }
Expand Down

0 comments on commit 3ea0e38

Please sign in to comment.