-
Notifications
You must be signed in to change notification settings - Fork 435
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved rust extension rules into a separate
rules_rust_ext
workspace. (
#3007) This change moves the `bindgen`, `proto`, and `wasm_bindgen` sub-packages into individual workspaces within the `extensions` directory. The intent is improve ease of maintenance of both core and extension Rust rules by ensuring changes to extensions have no impact on the core rules. Core rules should *never* depend on extensions. Load statements should be updated according to the following table: | before | after | | --- | --- | | `@rules_rust//bindgen` | `@rules_rust_bindgen//` | | `@rules_rust//proto/prost` | `@rules_rust_prost//` | | `@rules_rust//proto/protobuf` | `@rules_rust_protobuf//` | | `@rules_rust//wasm_bindgen` | `@rules_rust_wasm_bindgen//` | closes #2882
- Loading branch information
1 parent
0f0b354
commit 2bad96d
Showing
724 changed files
with
8,445 additions
and
7,144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
.direnv | ||
bzlmod | ||
crate_universe/private/bootstrap | ||
docs | ||
examples | ||
crate_universe/private/bootstrap | ||
extensions | ||
test/aliased_toolchains | ||
test/bzlmod_repo_mapping | ||
test/cc_common_link | ||
test/no_std | ||
.direnv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
fixedReleaser: | ||
login: scentini | ||
email: [email protected] | ||
moduleRoots: [".", "extensions"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"homepage": "https://github.com/bazelbuild/rules_rust/extensions/bindgen", | ||
"maintainers": [ | ||
{ | ||
"email": "[email protected]", | ||
"github": "UebelAndre", | ||
"name": "UebelAndre" | ||
}, | ||
{ | ||
"email": "[email protected]", | ||
"github": "illicitonion", | ||
"name": "Daniel Wagner-Hall" | ||
}, | ||
{ | ||
"email": "[email protected]", | ||
"github": "scentini", | ||
"name": "Rosica Dejanovska" | ||
} | ||
], | ||
"repository": ["github:bazelbuild/rules_rust"], | ||
"versions": [], | ||
"yanked_versions": {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
bcr_test_module: | ||
module_path: "extensions/bindgen" | ||
matrix: | ||
platform: ["macos_arm64", "ubuntu2004", "windows"] | ||
bazel: ["7.x"] | ||
tasks: | ||
run_tests: | ||
name: "Run test module" | ||
platform: ${{ platform }} | ||
bazel: ${{ bazel }} | ||
# Remove the lockfile because we generate on Bazel 7, but test on Bazel 6 which may not be able to parse a future-generated lockfile. | ||
shell_commands: | ||
- "rm MODULE.bazel.lock" | ||
test_targets: | ||
- "//..." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"integrity": "**leave this alone**", | ||
"strip_prefix": "", | ||
"url": "https://github.com/{OWNER}/{REPO}/releases/download/{TAG}/{REPO}_bindgen-{VERSION}.tar.gz" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"homepage": "https://github.com/bazelbuild/rules_rust/extensions/prost", | ||
"maintainers": [ | ||
{ | ||
"email": "[email protected]", | ||
"github": "UebelAndre", | ||
"name": "UebelAndre" | ||
}, | ||
{ | ||
"email": "[email protected]", | ||
"github": "illicitonion", | ||
"name": "Daniel Wagner-Hall" | ||
}, | ||
{ | ||
"email": "[email protected]", | ||
"github": "scentini", | ||
"name": "Rosica Dejanovska" | ||
} | ||
], | ||
"repository": ["github:bazelbuild/rules_rust"], | ||
"versions": [], | ||
"yanked_versions": {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
bcr_test_module: | ||
module_path: "extensions/prost" | ||
matrix: | ||
platform: ["macos_arm64", "ubuntu2004", "windows"] | ||
bazel: ["7.x"] | ||
tasks: | ||
run_tests: | ||
name: "Run test module" | ||
platform: ${{ platform }} | ||
bazel: ${{ bazel }} | ||
# Remove the lockfile because we generate on Bazel 7, but test on Bazel 6 which may not be able to parse a future-generated lockfile. | ||
shell_commands: | ||
- "rm MODULE.bazel.lock" | ||
test_targets: | ||
- "//..." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"integrity": "**leave this alone**", | ||
"strip_prefix": "", | ||
"url": "https://github.com/{OWNER}/{REPO}/releases/download/{TAG}/{REPO}_prost-{VERSION}.tar.gz" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"homepage": "https://github.com/bazelbuild/rules_rust/extensions/protobuf", | ||
"maintainers": [ | ||
{ | ||
"email": "[email protected]", | ||
"github": "UebelAndre", | ||
"name": "UebelAndre" | ||
}, | ||
{ | ||
"email": "[email protected]", | ||
"github": "illicitonion", | ||
"name": "Daniel Wagner-Hall" | ||
}, | ||
{ | ||
"email": "[email protected]", | ||
"github": "scentini", | ||
"name": "Rosica Dejanovska" | ||
} | ||
], | ||
"repository": ["github:bazelbuild/rules_rust"], | ||
"versions": [], | ||
"yanked_versions": {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
bcr_test_module: | ||
module_path: "extensions/protobuf" | ||
matrix: | ||
platform: ["macos_arm64", "ubuntu2004", "windows"] | ||
bazel: ["7.x"] | ||
tasks: | ||
run_tests: | ||
name: "Run test module" | ||
platform: ${{ platform }} | ||
bazel: ${{ bazel }} | ||
# Remove the lockfile because we generate on Bazel 7, but test on Bazel 6 which may not be able to parse a future-generated lockfile. | ||
shell_commands: | ||
- "rm MODULE.bazel.lock" | ||
test_targets: | ||
- "//..." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"integrity": "**leave this alone**", | ||
"strip_prefix": "", | ||
"url": "https://github.com/{OWNER}/{REPO}/releases/download/{TAG}/{REPO}_protobuf-{VERSION}.tar.gz" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"homepage": "https://github.com/bazelbuild/rules_rust/extensions/wasm_bindgen", | ||
"maintainers": [ | ||
{ | ||
"email": "[email protected]", | ||
"github": "UebelAndre", | ||
"name": "UebelAndre" | ||
}, | ||
{ | ||
"email": "[email protected]", | ||
"github": "illicitonion", | ||
"name": "Daniel Wagner-Hall" | ||
}, | ||
{ | ||
"email": "[email protected]", | ||
"github": "scentini", | ||
"name": "Rosica Dejanovska" | ||
} | ||
], | ||
"repository": ["github:bazelbuild/rules_rust"], | ||
"versions": [], | ||
"yanked_versions": {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
bcr_test_module: | ||
module_path: "extensions/wasm_bindgen" | ||
matrix: | ||
platform: ["macos_arm64", "ubuntu2004", "windows"] | ||
bazel: ["7.x"] | ||
tasks: | ||
run_tests: | ||
name: "Run test module" | ||
platform: ${{ platform }} | ||
bazel: ${{ bazel }} | ||
# Remove the lockfile because we generate on Bazel 7, but test on Bazel 6 which may not be able to parse a future-generated lockfile. | ||
shell_commands: | ||
- "rm MODULE.bazel.lock" | ||
test_targets: | ||
- "//..." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"integrity": "**leave this alone**", | ||
"strip_prefix": "", | ||
"url": "https://github.com/{OWNER}/{REPO}/releases/download/{TAG}/{REPO}_wasm_bindgen-{VERSION}.tar.gz" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"integrity": "**leave this alone**", | ||
"strip_prefix": "", | ||
"url": "https://github.com/{OWNER}/{REPO}/releases/download/{TAG}/{REPO}-v{VERSION}.tar.gz" | ||
"url": "https://github.com/{OWNER}/{REPO}/releases/download/{TAG}/{REPO}-{VERSION}.tar.gz" | ||
} |
Oops, something went wrong.