-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved rust and bazel support for external usage.
This change include * bugfixes for rust-codegenerator * refactoring of everest-rs for easier usage outside of the everest-workspace * refactoring of bazel builds to support everestrs * small improvements to bazel-build for easier external usage. Co-authored-by: Dima Dorezyuk <ddo@qwello.eu> Co-authored-by: Dima Dorezyuk <dmitrij.dorezyuk@hotmail.de> Co-authored-by: Holger Rapp <HolgerRapp@gmx.net> Co-authored-by: Holger Rapp <holger@qwello.eu> Signed-off-by: Evgeny Petrov <evgeny@epetrov.net>
- Loading branch information
1 parent
12b7665
commit d109e06
Showing
28 changed files
with
450 additions
and
136 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
build |
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
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
File renamed without changes.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,40 @@ | ||
load("@rules_rust//rust:defs.bzl", "rust_binary", "rust_library") | ||
|
||
filegroup( | ||
name = "templates", | ||
srcs = glob(["jinja/**/*"]), | ||
) | ||
|
||
rust_library( | ||
name = "everestrs-build", | ||
srcs = glob(["src/**/*.rs"], exclude = ["src/bin/**"]), | ||
deps = [ | ||
"@crate_index//:anyhow", | ||
"@crate_index//:argh", | ||
"@crate_index//:convert_case", | ||
"@crate_index//:minijinja", | ||
"@crate_index//:serde", | ||
"@crate_index//:serde_json", | ||
"@crate_index//:serde_yaml", | ||
], | ||
data = ["@everest-framework//everestrs/everestrs-build:templates"], | ||
visibility = ["//visibility:public"], | ||
edition = "2021", | ||
) | ||
|
||
rust_binary( | ||
name = "codegen", | ||
srcs = glob(["src/bin/**/*.rs"]), | ||
deps = [ | ||
"@crate_index//:anyhow", | ||
"@crate_index//:argh", | ||
"@crate_index//:convert_case", | ||
"@crate_index//:minijinja", | ||
"@crate_index//:serde", | ||
"@crate_index//:serde_json", | ||
"@crate_index//:serde_yaml", | ||
"@everest-framework//everestrs/everestrs-build:everestrs-build", | ||
], | ||
visibility = ["//visibility:public"], | ||
edition = "2021", | ||
) |
Oops, something went wrong.