Skip to content

Commit

Permalink
Build packages via Bazel
Browse files Browse the repository at this point in the history
  • Loading branch information
kiron1 committed Mar 1, 2023
1 parent e22aad2 commit 354f520
Show file tree
Hide file tree
Showing 36 changed files with 1,248 additions and 225 deletions.
2 changes: 2 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
build --flag_alias=features=//:features

test --test_output=errors

try-import %workspace%/user.bazelrc
9 changes: 9 additions & 0 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,12 @@ config_setting(
":features": "negotiate",
},
)

genrule(
name = "version",
srcs = ["//proxydetox:Cargo.toml"],
outs = ["version.txt"],
cmd = "./$(location //tools:toml_get) $(location //proxydetox:Cargo.toml) package version > \"$@\"",
tools = ["//tools:toml_get"],
visibility = ["//visibility:public"],
)
30 changes: 15 additions & 15 deletions Cargo.Bazel.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"checksum": "64cbc0def249b1a36d3071dec712fe8ff8f5a3cb8521f2c74e62668339732441",
"checksum": "f197a0f56ffb0ba65e3bfab419d594554153b9d34f7ca085ee73046956e105e4",
"crates": {
"aho-corasick 0.7.20": {
"name": "aho-corasick",
Expand Down Expand Up @@ -1049,13 +1049,13 @@
},
"license": "MIT"
},
"clap 4.1.7": {
"clap 4.1.8": {
"name": "clap",
"version": "4.1.7",
"version": "4.1.8",
"repository": {
"Http": {
"url": "https://crates.io/api/v1/crates/clap/4.1.7/download",
"sha256": "2f3061d6db6d8fcbbd4b05e057f2acace52e64e96b498c08c2d7a4e65addd340"
"url": "https://crates.io/api/v1/crates/clap/4.1.8/download",
"sha256": "c3d7ae14b20b94cb02149ed21a86c423859cbe18dc7ed69845cace50e52b40a5"
}
},
"targets": [
Expand Down Expand Up @@ -1121,23 +1121,23 @@
"proc_macro_deps": {
"common": [
{
"id": "clap_derive 4.1.7",
"id": "clap_derive 4.1.8",
"target": "clap_derive"
}
],
"selects": {}
},
"version": "4.1.7"
"version": "4.1.8"
},
"license": "MIT OR Apache-2.0"
},
"clap_derive 4.1.7": {
"clap_derive 4.1.8": {
"name": "clap_derive",
"version": "4.1.7",
"version": "4.1.8",
"repository": {
"Http": {
"url": "https://crates.io/api/v1/crates/clap_derive/4.1.7/download",
"sha256": "34d122164198950ba84a918270a3bb3f7ededd25e15f7451673d986f55bd2667"
"url": "https://crates.io/api/v1/crates/clap_derive/4.1.8/download",
"sha256": "44bec8e5c9d09e439c4335b1af0abaab56dcf3b94999a936e1bb47b9134288f0"
}
},
"targets": [
Expand Down Expand Up @@ -1188,7 +1188,7 @@
"selects": {}
},
"edition": "2021",
"version": "4.1.7"
"version": "4.1.8"
},
"license": "MIT OR Apache-2.0"
},
Expand Down Expand Up @@ -1890,7 +1890,7 @@
"deps": {
"common": [
{
"id": "clap 4.1.7",
"id": "clap 4.1.8",
"target": "clap"
},
{
Expand Down Expand Up @@ -5510,7 +5510,7 @@
"deps": {
"common": [
{
"id": "clap 4.1.7",
"id": "clap 4.1.8",
"target": "clap"
},
{
Expand Down Expand Up @@ -6085,7 +6085,7 @@
"deps": {
"common": [
{
"id": "clap 4.1.7",
"id": "clap 4.1.8",
"target": "clap"
},
{
Expand Down
Loading

0 comments on commit 354f520

Please sign in to comment.