Skip to content

Commit

Permalink
Move the remaining crates to separate workspaces
Browse files Browse the repository at this point in the history
  • Loading branch information
rbehjati committed Jun 9, 2020
1 parent 19c442b commit 14b65bd
Show file tree
Hide file tree
Showing 13 changed files with 2,545 additions and 178 deletions.
157 changes: 0 additions & 157 deletions Cargo.lock

Large diffs are not rendered by default.

14 changes: 2 additions & 12 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
[workspace]
members = [
"oak/server/rust/oak_loader",
"oak/server/rust/oak_runtime",
"runner",
"sdk/rust/oak",
"sdk/rust/oak_tests",
"third_party/roughenough",
]
exclude = ["oak_abi", "oak_utils"]
members = ["oak/server/rust/oak_loader", "oak/server/rust/oak_runtime"]
exclude = ["third_party/expect", "third_party/roughenough"]

# Patch dependencies on oak crates so that they refer to the versions within this same repository.
#
Expand All @@ -16,12 +9,9 @@ exclude = ["oak_abi", "oak_utils"]
# > explicit about the dependency relationships between the crates.
[patch.crates-io]
# Oak.
oak = { path = "sdk/rust/oak" }
oak_abi = { path = "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" }
oak_utils = { path = "oak_utils" }
runner = { path = "runner" }
# Third party.
roughenough = { path = "third_party/roughenough" }
2 changes: 2 additions & 0 deletions oak_abi/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[workspace]

[package]
name = "oak_abi"
version = "0.1.0"
Expand Down
2 changes: 2 additions & 0 deletions oak_utils/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[workspace]

[package]
name = "oak_utils"
version = "0.1.0"
Expand Down
310 changes: 310 additions & 0 deletions runner/Cargo.lock

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

2 changes: 2 additions & 0 deletions runner/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[workspace]

[package]
name = "runner"
version = "0.1.0"
Expand Down
10 changes: 5 additions & 5 deletions scripts/build_gh_pages
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ fi
readonly TARGET_ABS_PATH="$(realpath "${TARGET_DIR}")"

# All the dirs that we want to generate docs for.
declare -ar SOURCE_PATHS=("." "oak_abi" "oak_utils")
declare -ar TARGET_SUBDIRS=("oak" "oak_abi" "oak_utils")
declare -ar SOURCE_PATHS=("." "oak_abi" "oak_utils" "sdk/rust" "runner")
declare -ar TARGET_SUBDIRS=("oak" "oak_abi" "oak_utils" "sdk" "runner")

# Titles used in the top-level index.html files.
declare -ar PAGE_TITLES=("SDK" "ABI" "Utils")
declare -ar PAGE_TITLES=("Runtime" "ABI" "Utils" "SDK" "Runner")

readonly LEN=${#SOURCE_PATHS[@]}

Expand Down Expand Up @@ -78,10 +78,10 @@ cat <<-END > "${TARGET_ABS_PATH}/index.html"
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Refresh" content="0; url=./oak/doc/oak/index.html" />
<meta http-equiv="Refresh" content="0; url=./sdk/doc/oak/index.html" />
</head>
<body>
<p><a href="./oak/doc/oak/index.html">Oak SDK main page</a></p>
<p><a href="./sdk/doc/oak/index.html">Oak SDK main page</a></p>
</body>
</html>
END
2 changes: 1 addition & 1 deletion scripts/common
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ readonly SERVER_DOCKER_IMAGE_NAME='gcr.io/oak-ci/oak-server'
readonly CACHE_DIR='bazel-cache'

# List all workspaces, and standalone crates.
declare -ar ALL_CRATES=("oak_utils" "oak_abi" "." "examples" "experimental")
declare -ar ALL_CRATES=("oak_utils" "oak_abi" "." "sdk" "examples" "runner" "experimental")

# To set up remote cache write credentials:
# - navigate to https://pantheon.corp.google.com/iam-admin/serviceaccounts?project=oak-ci
Expand Down
Loading

0 comments on commit 14b65bd

Please sign in to comment.