Skip to content

Commit

Permalink
Move bazel Rust crate definition into separate files.
Browse files Browse the repository at this point in the history
This makes it easier for depending projects to configure Oak
dependencies in their own WORKSPACE.

We should probably do this for many other dependencies as well. This is just a
first step, tackling one of the most complicated dependnecies, to help unblock
others.

Now, if you depend on Oak via Bazel, you can load the crate repository with:

load("@oak//bazel/crates:repositories.bzl", "create_oak_crate_repositories")

create_oak_crate_repositories()

load("@oak//bazel/crates:crates.bzl", "load_oak_crate_repositories")

load_oak_crate_repositories()

Bug: b/343803989

Change-Id: Ibdeb66340c70679568396e1f339d8b558cf82c9a
  • Loading branch information
jblebrun committed Jun 4, 2024
1 parent 0b5230d commit 366b315
Show file tree
Hide file tree
Showing 23 changed files with 29,820 additions and 450 deletions.
1 change: 1 addition & 0 deletions .bazelignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bazel/test_workspace
1 change: 1 addition & 0 deletions .bazelversion
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
6.5.0
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# Ignore all bazel-* symlinks. There is no full list since this can change
# based on the name of the directory bazel is cloned into.
/bazel-*
bazel-*
# Local additional settings and overrides.
/.local.bazelrc

Expand Down
Loading

0 comments on commit 366b315

Please sign in to comment.