Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mmorel-35 authored and aiuto committed Jun 3, 2024
1 parent 095d3c9 commit 8a1bfd0
Show file tree
Hide file tree
Showing 6 changed files with 338 additions and 0 deletions.
37 changes: 37 additions & 0 deletions modules/jwt_verify_lib/0.0.0-20230517-b59e807/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
module(
name = "jwt_verify_lib",
version = "0.0.0-20230517-b59e807",
compatibility_level = 1,
)

bazel_dep(
name = "abseil-cpp",
version = "20240116.2",
repo_name = "com_google_absl",
)
bazel_dep(
name = "boringssl",
version = "0.0.0-20240530-2db0eb3",
)
bazel_dep(
name = "googletest",
version = "1.14.0.bcr.1",
repo_name = "com_google_googletest",
)
bazel_dep(
name = "libprotobuf-mutator",
version = "1.3",
)
bazel_dep(
name = "protobuf",
version = "26.0.bcr.1",
repo_name = "com_google_protobuf",
)
bazel_dep(
name = "rules_fuzzing",
version = "0.5.2",
)
bazel_dep(
name = "rules_proto",
version = "4.0.0",
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,194 @@
diff --git a/BUILD b/BUILD
index 63c69bc..0a936b4 100644
--- a/BUILD
+++ b/BUILD
@@ -23,11 +23,11 @@ cc_library(
"jwt_verify_lib/verify.h",
],
deps = [
- "//external:abseil_flat_hash_set",
- "//external:abseil_strings",
- "//external:abseil_time",
- "//external:protobuf",
- "//external:ssl",
+ "@boringssl//:ssl",
+ "@com_google_absl//absl/container:flat_hash_set",
+ "@com_google_absl//absl/strings",
+ "@com_google_absl//absl/time",
+ "@com_google_protobuf//:protobuf",
],
)

@@ -38,7 +38,7 @@ cc_library(
"simple_lru_cache/simple_lru_cache_inl.h",
],
deps = [
- "//external:abseil_flat_hash_map",
+ "@com_google_absl//absl/container:flat_hash_map",
],
)

@@ -55,7 +55,7 @@ cc_test(
linkstatic = 1,
deps = [
":jwt_verify_lib",
- "//external:googletest_main",
+ "@com_google_googletest//:gtest_main",
],
)

@@ -72,7 +72,7 @@ cc_test(
linkstatic = 1,
deps = [
":jwt_verify_lib",
- "//external:googletest_main",
+ "@com_google_googletest//:gtest_main",
],
)

@@ -90,7 +90,7 @@ cc_test(
linkstatic = 1,
deps = [
":jwt_verify_lib",
- "//external:googletest_main",
+ "@com_google_googletest//:gtest_main",
],
)

@@ -107,7 +107,7 @@ cc_test(
linkstatic = 1,
deps = [
":simple_lru_cache_lib",
- "//external:googletest_main",
+ "@com_google_googletest//:gtest_main",
],
)

@@ -125,7 +125,7 @@ cc_test(
linkstatic = 1,
deps = [
":jwt_verify_lib",
- "//external:googletest_main",
+ "@com_google_googletest//:gtest_main",
],
)

@@ -143,7 +143,7 @@ cc_test(
linkstatic = 1,
deps = [
":jwt_verify_lib",
- "//external:googletest_main",
+ "@com_google_googletest//:gtest_main",
],
)

@@ -161,7 +161,7 @@ cc_test(
linkstatic = 1,
deps = [
":jwt_verify_lib",
- "//external:googletest_main",
+ "@com_google_googletest//:gtest_main",
],
)

@@ -179,7 +179,7 @@ cc_test(
linkstatic = 1,
deps = [
":jwt_verify_lib",
- "//external:googletest_main",
+ "@com_google_googletest//:gtest_main",
],
)

@@ -197,7 +197,7 @@ cc_test(
linkstatic = 1,
deps = [
":jwt_verify_lib",
- "//external:googletest_main",
+ "@com_google_googletest//:gtest_main",
],
)

@@ -215,7 +215,7 @@ cc_test(
linkstatic = 1,
deps = [
":jwt_verify_lib",
- "//external:googletest_main",
+ "@com_google_googletest//:gtest_main",
],
)

@@ -233,7 +233,7 @@ cc_test(
linkstatic = 1,
deps = [
":jwt_verify_lib",
- "//external:googletest_main",
+ "@com_google_googletest//:gtest_main",
],
)

@@ -251,7 +251,7 @@ cc_test(
linkstatic = 1,
deps = [
":jwt_verify_lib",
- "//external:googletest_main",
+ "@com_google_googletest//:gtest_main",
],
)

@@ -269,7 +269,7 @@ cc_test(
linkstatic = 1,
deps = [
":jwt_verify_lib",
- "//external:googletest_main",
+ "@com_google_googletest//:gtest_main",
],
)

@@ -287,7 +287,7 @@ cc_test(
linkstatic = 1,
deps = [
":jwt_verify_lib",
- "//external:googletest_main",
+ "@com_google_googletest//:gtest_main",
],
)

@@ -305,6 +305,6 @@ cc_test(
linkstatic = 1,
deps = [
":jwt_verify_lib",
- "//external:googletest_main",
+ "@com_google_googletest//:gtest_main",
],
)
diff --git a/test/fuzz/BUILD b/test/fuzz/BUILD
index 28247dd..e35142b 100644
--- a/test/fuzz/BUILD
+++ b/test/fuzz/BUILD
@@ -1,5 +1,5 @@
load("@rules_fuzzing//fuzzing:cc_defs.bzl", "cc_fuzz_test")
-# load cc_proto_library
+load("@rules_proto//proto:defs.bzl", "proto_library")

licenses(["notice"])

@@ -27,7 +27,7 @@ cc_fuzz_test(
deps = [
":jwt_verify_lib_fuzz_input_cc_proto",
"//:jwt_verify_lib",
- "//external:libprotobuf_mutator",
+ "@libprotobuf-mutator",
],
)

@@ -41,7 +41,7 @@ cc_test(
deps = [
":jwt_verify_lib_fuzz_input_cc_proto",
"//:jwt_verify_lib",
- "//external:abseil_strings",
- "//external:googletest_main",
+ "@com_google_absl//absl/strings",
+ "@com_google_googletest//:gtest_main",
],
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
--- a/MODULE.bazel
+++ a/MODULE.bazel
@@ -0,0 +1,37 @@
+module(
+ name = "jwt_verify_lib",
+ version = "0.0.0-20230517-b59e807",
+ compatibility_level = 1,
+)
+
+bazel_dep(
+ name = "abseil-cpp",
+ version = "20240116.2",
+ repo_name = "com_google_absl",
+)
+bazel_dep(
+ name = "boringssl",
+ version = "0.0.0-20240530-2db0eb3",
+)
+bazel_dep(
+ name = "googletest",
+ version = "1.14.0.bcr.1",
+ repo_name = "com_google_googletest",
+)
+bazel_dep(
+ name = "libprotobuf-mutator",
+ version = "1.3",
+)
+bazel_dep(
+ name = "protobuf",
+ version = "26.0.bcr.1",
+ repo_name = "com_google_protobuf",
+)
+bazel_dep(
+ name = "rules_fuzzing",
+ version = "0.5.2",
+)
+bazel_dep(
+ name = "rules_proto",
+ version = "4.0.0",
+)
41 changes: 41 additions & 0 deletions modules/jwt_verify_lib/0.0.0-20230517-b59e807/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
matrix:
platform:
- debian10
- ubuntu2004
- windows
bazel:
- 7.x
- 6.x
tasks:
verify_targets:
name: Verify build targets
platform: ${{ platform }}
bazel: ${{ bazel }}
build_flags:
- '--cxxopt=-std=c++14'
- '--host_cxxopt=-std=c++14'
build_targets:
- '@jwt_verify_lib//:jwt_verify_lib'
- '@jwt_verify_lib//:simple_lru_cache_lib'
verify_macos_targets:
name: Verify build targets
platform: macos
bazel: ${{ bazel }}
build_flags:
- '--cxxopt=-std=c++14'
- '--host_cxxopt=-std=c++14'
- '--sandbox_block_path=/usr/local'
build_targets:
- '@jwt_verify_lib//:jwt_verify_lib'
- '@jwt_verify_lib//:simple_lru_cache_lib'
verify_macos_arm64_targets:
name: Verify build targets
platform: macos_arm64
bazel: ${{ bazel }}
build_flags:
- '--cxxopt=-std=c++14'
- '--host_cxxopt=-std=c++14'
- '--sandbox_block_path=/usr/local'
build_targets:
- '@jwt_verify_lib//:jwt_verify_lib'
- '@jwt_verify_lib//:simple_lru_cache_lib'
10 changes: 10 additions & 0 deletions modules/jwt_verify_lib/0.0.0-20230517-b59e807/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"url": "https://github.com/google/jwt_verify_lib/archive/b59e8075d4a4f975ba6f109e1916d6e60aeb5613.tar.gz",
"integrity": "sha256-Y35Jg1BsTya74oCK5OGUTkbLsid9NP8Lijtyvaw8S5E=",
"strip_prefix": "jwt_verify_lib-b59e8075d4a4f975ba6f109e1916d6e60aeb5613",
"patches": {
"jwt_verify_lib.patch": "sha256-d2jr23vOsykIXWFJG1AzokKVceZ97l2wPY03/gVj5QU=",
"module_dot_bazel.patch": "sha256-w4exEIhtWzDJe73zMYEmdyYPTaW5Md001RSuNlQtoGQ="
},
"patch_strip": 1
}
16 changes: 16 additions & 0 deletions modules/jwt_verify_lib/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"homepage": "https://github.com/google/jwt_verify_lib",
"maintainers": [
{
"email": "[email protected]",
"name": "No Maintainer Specified"
}
],
"repository": [
"github:google/jwt_verify_lib"
],
"versions": [
"0.0.0-20230517-b59e807"
],
"yanked_versions": {}
}

0 comments on commit 8a1bfd0

Please sign in to comment.