| # Copyright 2026 Google LLC | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # https://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # Unless required by applicable law or agreed to in writing, software | |
| # distributed under the License is distributed on an "AS IS" BASIS, | |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| # See the License for the specific language governing permissions and | |
| # limitations under the License. | |
| # | |
| load("@rules_cc//cc:cc_test.bzl", "cc_test") | |
| load("@rules_cc//cc:defs.bzl", "cc_library") | |
| package(default_visibility = ["//visibility:public"]) | |
| cc_library( | |
| name = "uuid", | |
| srcs = ["uuid.cc"], | |
| hdrs = ["uuid.h"], | |
| deps = [ | |
| "@abseil-cpp//absl/base:no_destructor", | |
| "@abseil-cpp//absl/log", | |
| "@abseil-cpp//absl/log:check", | |
| "@abseil-cpp//absl/numeric:int128", | |
| "@abseil-cpp//absl/random", | |
| "@abseil-cpp//absl/random:distributions", | |
| "@abseil-cpp//absl/status", | |
| "@abseil-cpp//absl/status:statusor", | |
| "@abseil-cpp//absl/strings", | |
| "@abseil-cpp//absl/strings:string_view", | |
| "@riegeli//riegeli/endian:endian_reading", | |
| "@riegeli//riegeli/endian:endian_writing", | |
| ], | |
| ) | |
| cc_test( | |
| name = "uuid_test", | |
| srcs = ["uuid_test.cc"], | |
| deps = [ | |
| ":uuid", | |
| "@abseil-cpp//absl/log:check", | |
| "@abseil-cpp//absl/numeric:int128", | |
| "@abseil-cpp//absl/random", | |
| "@abseil-cpp//absl/status", | |
| "@abseil-cpp//absl/status:status_matchers", | |
| "@abseil-cpp//absl/status:statusor", | |
| "@abseil-cpp//absl/strings:string_view", | |
| "@googletest//:gtest_main", | |
| ], | |
| ) |