Skip to content

Commit

Permalink
Adding jwt-cpp version 0.7.0.bcr.1 (#3188)
Browse files Browse the repository at this point in the history
Visibility is added to an additional target.
  • Loading branch information
olipauly authored Nov 15, 2024
1 parent 59c0b47 commit b9775ff
Show file tree
Hide file tree
Showing 6 changed files with 88 additions and 1 deletion.
8 changes: 8 additions & 0 deletions modules/jwt-cpp/0.7.0.bcr.1/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module(
name = "jwt-cpp",
version = "0.7.0.bcr.1",
)

bazel_dep(name = "boringssl", version = "0.0.0-20240530-2db0eb3")
bazel_dep(name = "nlohmann_json", version = "3.11.3.bcr.1")
bazel_dep(name = "rules_license", version = "0.0.8")
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
diff --git a/include/jwt-cpp/traits/nlohmann-json/BUILD b/include/jwt-cpp/traits/nlohmann-json/BUILD
new file mode 100644
index 0000000..a831816
--- /dev/null
+++ b/include/jwt-cpp/traits/nlohmann-json/BUILD
@@ -0,0 +1,24 @@
+cc_library(
+ name = "traits",
+ hdrs = ["traits.h"],
+ copts = ["-fexceptions"],
+ features = ["-use_header_modules"],
+ include_prefix = "jwt-cpp/traits/nlohmann-json",
+ deps = [
+ "//include/jwt-cpp:jwt",
+ "@nlohmann_json//:json",
+ ],
+ visibility = ["//visibility:public"],
+)
+
+cc_library(
+ name = "specialization",
+ hdrs = ["defaults.h"],
+ copts = ["-fexceptions"],
+ features = ["-use_header_modules"],
+ include_prefix = "jwt-cpp/traits/nlohmann-json",
+ deps = [
+ ":traits",
+ ],
+ visibility = ["//visibility:public"],
+)
14 changes: 14 additions & 0 deletions modules/jwt-cpp/0.7.0.bcr.1/patches/add-module_dot_bazel.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
diff --git a/MODULE.bazel b/MODULE.bazel
new file mode 100644
index 0000000..4c7ab4d
--- /dev/null
+++ b/MODULE.bazel
@@ -0,0 +1,8 @@
+module(
+ name = "jwt-cpp",
+ version = "0.7.0.bcr.1",
+)
+
+bazel_dep(name = "boringssl", version = "0.0.0-20240530-2db0eb3")
+bazel_dep(name = "nlohmann_json", version = "3.11.3.bcr.1")
+bazel_dep(name = "rules_license", version = "0.0.8")
17 changes: 17 additions & 0 deletions modules/jwt-cpp/0.7.0.bcr.1/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
matrix:
platform:
- debian10
- ubuntu2004
bazel:
- 7.x
tasks:
verify_targets:
name: Verify build targets
platform: ${{ platform }}
bazel: ${{ bazel }}
build_targets:
- '@jwt-cpp//example:rsa_create'
- '@jwt-cpp//example:rsa_verify'
- '@jwt-cpp//include/jwt-cpp:jwt'
- '@jwt-cpp//include/jwt-cpp/traits/nlohmann-json:specialization'
- '@jwt-cpp//include/jwt-cpp/traits/nlohmann-json:traits'
17 changes: 17 additions & 0 deletions modules/jwt-cpp/0.7.0.bcr.1/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"url": "https://github.com/Thalhammer/jwt-cpp/archive/refs/tags/v0.7.0.tar.gz",
"integrity": "sha256-uesnDjuoIh5LK8OHI8mhy0+mwkGkKQi5ozTa/zETdAY=",
"strip_prefix": "jwt-cpp-0.7.0",
"patch_strip": 1,
"patches": {
"../../0.7.0/patches/add-build.patch": "sha256-893niHcbMlUl7JFb82Wr3tmirBTWi5pSUQQR64pnTIo=",
"../../0.7.0/patches/add-example-build.patch": "sha256-Y3pX2jEysCW+oLC7DXUOOM8qS3079y/pH5XtKfvD4I8=",
"../../0.7.0/patches/add-include-jwt_cpp-build.patch": "sha256-/KwU11KD0tiOZI75GEhG27vgrKO/5lkJo+eMaq9S8LU=",
"add-include-jwt_cpp-traits-nlohmann_json-build.patch": "sha256-+ApQal7GY/wVqmBXbAQ0eNca9eHCTqb+8wvI623ynes=",
"add-module_dot_bazel.patch": "sha256-tOqAVlsM3aO+huevBLLylAPna16s5wvZ1IB/I/uE5pE=",
"../../0.7.0/patches/example-rsa_create_dot_cpp.patch": "sha256-iCpjm5sjpe7A74HQG5ignnNPLlWLAJJzCZecD4sR48M=",
"../../0.7.0/patches/example-rsa_verify_dot_cpp.patch": "sha256-iN9omLteaaSzpjlKVc9vpDDv+sHmkXHGuAkm9vidOTw=",
"../../0.7.0/patches/include-jwt_cpp-jwt_dot_h.patch": "sha256-btgMIAOi/lqMSQYrr4zsqpykcdJXUxtkMzzGsOvVZ8A=",
"../../0.7.0/patches/include-jwt_cpp-traits-nlohmann_json-defaults_dot_h.patch": "sha256-LcYqP7JRtsDfU3Y1Uh/kRmQXK4veCxbkmLyOcaVVCLM="
}
}
3 changes: 2 additions & 1 deletion modules/jwt-cpp/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"github:Thalhammer/jwt-cpp"
],
"versions": [
"0.7.0"
"0.7.0",
"0.7.0.bcr.1"
],
"yanked_versions": {}
}

0 comments on commit b9775ff

Please sign in to comment.