Skip to content

Commit

Permalink
Make oak_abi a standalone crate
Browse files Browse the repository at this point in the history
  • Loading branch information
rbehjati committed May 27, 2020
1 parent 333681d commit a872772
Show file tree
Hide file tree
Showing 18 changed files with 18 additions and 21 deletions.
2 changes: 0 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ members = [
"experimental/split_grpc/client",
"experimental/split_grpc/proxy",
"experimental/split_grpc/server",
"oak/server/rust/oak_abi",
"oak/server/rust/oak_glue",
"oak/server/rust/oak_loader",
"oak/server/rust/oak_runtime",
Expand All @@ -37,7 +36,6 @@ members = [
[patch.crates-io]
# Oak.
oak = { path = "sdk/rust/oak" }
oak_abi = { path = "oak/server/rust/oak_abi" }
oak_loader = { path = "oak/server/rust/oak_loader" }
oak_runtime = { path = "oak/server/rust/oak_runtime" }
oak_tests = { path = "sdk/rust/oak_tests" }
Expand Down
2 changes: 1 addition & 1 deletion examples/abitest/module_0/rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ expect = { path = "../../../../third_party/expect" }
hex = "*"
log = "*"
oak = "=0.1.0"
oak_abi = "=0.1.0"
oak_abi = { path = "../../../../oak_abi" }
prost = "*"
rand_core = "*"
rand = "*"
Expand Down
2 changes: 1 addition & 1 deletion examples/abitest/tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ abitest_0_frontend = { path = "../module_0/rust" }
abitest_1_backend = { path = "../module_1/rust" }
log = "*"
oak = "=0.1.0"
oak_abi = "=0.1.0"
oak_abi = { path = "../../../oak_abi" }
prost = "*"
tonic = { version = "*", features = ["tls"] }

Expand Down
3 changes: 1 addition & 2 deletions examples/aggregator/module/rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,11 @@ aggregator_common = { path = "../../common" }
itertools = "*"
log = "*"
oak = "=0.1.0"
oak_abi = "=0.1.0"
oak_abi = { path = "../../../../oak_abi" }
prost = "*"

[dev-dependencies]
assert_matches = "*"
oak_abi = "=0.1.0"
oak_runtime = "=0.1.0"
oak_tests = "=0.1.0"
maplit = "*"
Expand Down
2 changes: 1 addition & 1 deletion examples/chat/module/rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ crate-type = ["cdylib"]
bincode = "*"
log = "*"
oak = "=0.1.0"
oak_abi = "=0.1.0"
oak_abi = { path = "../../../../oak_abi" }
prost = "*"
rand_core = "*"
rand = "*"
Expand Down
2 changes: 1 addition & 1 deletion examples/running_average/module/rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ prost = "*"

[dev-dependencies]
assert_matches = "*"
oak_abi = "=0.1.0"
oak_abi = { path = "../../../../oak_abi" }
oak_runtime = "=0.1.0"
oak_tests = "=0.1.0"
simple_logger = "*"
Expand Down
2 changes: 1 addition & 1 deletion oak/server/rust/oak_glue/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ name = "oak_glue"
byteorder = "*"
lazy_static = "*"
log = { version = "*", features = ["std"] }
oak_abi = { version = "=0.1.0" }
oak_abi = { path = "../../../../oak_abi" }
oak_runtime = { version = "=0.1.0" }
prost = "*"
simple_logger = "*"
2 changes: 1 addition & 1 deletion oak/server/rust/oak_loader/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ default = ["oak_debug"]
anyhow = "*"
log = "*"
oak_runtime = "=0.1.0"
oak_abi = "=0.1.0"
oak_abi = { path = "../../../../oak_abi" }
prost = "*"
rustls = "*"
signal-hook = "*"
Expand Down
2 changes: 1 addition & 1 deletion oak/server/rust/oak_runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ itertools = "*"
jsonwebtoken = "*"
lazy_static = "*"
log = { version = "*" }
oak_abi = "=0.1.0"
oak_abi = { path = "../../../../oak_abi" }
prometheus = { version = "0.8", features = [
"nightly"
], default-features = false }
Expand Down
File renamed without changes.
16 changes: 8 additions & 8 deletions oak/server/rust/oak_abi/build.rs → oak_abi/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
fn main() {
oak_utils::compile_protos(
&[
"../../../../oak/proto/application.proto",
"../../../../oak/proto/grpc_encap.proto",
"../../../../oak/proto/label.proto",
"../../../../oak/proto/log.proto",
"../../../../oak/proto/oak_abi.proto",
"../../../../third_party/google/rpc/code.proto",
"../../../../third_party/google/rpc/status.proto",
"../oak/proto/application.proto",
"../oak/proto/grpc_encap.proto",
"../oak/proto/label.proto",
"../oak/proto/log.proto",
"../oak/proto/oak_abi.proto",
"../third_party/google/rpc/code.proto",
"../third_party/google/rpc/status.proto",
],
&["../../../.."],
&[".."],
);
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion sdk/rust/oak/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ edition = "2018"
license = "Apache-2.0"

[dependencies]
oak_abi = "=0.1.0"
oak_abi = { path = "../../../oak_abi" }
prost = "*"
prost-types = "*"
fmt = "*"
Expand Down
2 changes: 1 addition & 1 deletion sdk/rust/oak_tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ cargo_metadata = "*"
lazy_static = "*"
log = { version = "*", features = ["std"] }
oak = "=0.1.0"
oak_abi = "=0.1.0"
oak_abi = { path = "../../../oak_abi" }
oak_runtime = { version = "=0.1.0", features = ["test_build"] }
prost = "*"
rand = { version = "*" }
Expand Down

0 comments on commit a872772

Please sign in to comment.