diff --git a/.bazelignore b/.bazelignore new file mode 100644 index 000000000..9daeafb98 --- /dev/null +++ b/.bazelignore @@ -0,0 +1 @@ +test diff --git a/BUILD.bazel b/BUILD.bazel index 7d81e970f..55f7ee688 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -75,7 +75,7 @@ cc_library( "include/**/*.h", ], exclude = _POSIX_HDRS + _WINDOWS_HDRS + _COMMON_HDRS), includes = ["include"], - srcs = glob(["src/**/*.cpp"], exclude = _POSIX_SRCS + _WINDOWS_SRCS + _COMMON_SRCS + _COMMON_EXCLUDE_SRCS), + srcs = glob(["src/**/*.cpp"], exclude = _POSIX_SRCS + _WINDOWS_SRCS + _COMMON_SRCS + _COMMON_EXCLUDE_SRCS), deps = [ "@boost.algorithm", "@boost.assert", @@ -97,7 +97,6 @@ cc_library( "@boost.throw_exception", "@boost.tuple", "@boost.utility", - "@boost.winapi", ] + select({ "@platforms//os:windows": [ ":thread_windows", diff --git a/MODULE.bazel b/MODULE.bazel index d00b951e4..e7b829f03 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -10,7 +10,7 @@ bazel_dep(name = "boost.algorithm", version = "1.83.0.bzl.1") bazel_dep(name = "boost.assert", version = "1.83.0.bzl.1") bazel_dep(name = "boost.atomic", version = "1.83.0.bzl.1") bazel_dep(name = "boost.bind", version = "1.83.0.bzl.1") -bazel_dep(name = "boost.chrono", version = "1.83.0.bzl.1") +bazel_dep(name = "boost.chrono", version = "1.83.0.bzl.2") bazel_dep(name = "boost.concept_check", version = "1.83.0.bzl.1") bazel_dep(name = "boost.config", version = "1.83.0.bzl.6") bazel_dep(name = "boost.container", version = "1.83.0.bzl.1") diff --git a/MODULE.bazel.lock b/MODULE.bazel.lock index fdea35374..2a90ce2e3 100644 --- a/MODULE.bazel.lock +++ b/MODULE.bazel.lock @@ -1,6 +1,6 @@ { "lockFileVersion": 6, - "moduleFileHash": "32e0fab4c611bb13753ac91ba9b4086762abd0871eccd9d7a257b0337fac434e", + "moduleFileHash": "7c7fb768c672c3d6fe6d1ea6e6946a53cfe4d3e37210ecf344694848a7917831", "flags": { "cmdRegistries": [ "https://raw.githubusercontent.com/bazelboost/registry/main", @@ -27,11 +27,12 @@ "extensionUsages": [], "deps": { "rules_cc": "rules_cc@0.0.9", + "platforms": "platforms@0.0.7", "boost.algorithm": "boost.algorithm@1.83.0.bzl.1", "boost.assert": "boost.assert@1.83.0.bzl.1", "boost.atomic": "boost.atomic@1.83.0.bzl.1", "boost.bind": "boost.bind@1.83.0.bzl.1", - "boost.chrono": "boost.chrono@1.83.0.bzl.1", + "boost.chrono": "boost.chrono@1.83.0.bzl.2", "boost.concept_check": "boost.concept_check@1.83.0.bzl.1", "boost.config": "boost.config@1.83.0.bzl.6", "boost.container": "boost.container@1.83.0.bzl.1", @@ -109,6 +110,33 @@ } } }, + "platforms@0.0.7": { + "name": "platforms", + "version": "0.0.7", + "key": "platforms@0.0.7", + "repoName": "platforms", + "executionPlatformsToRegister": [], + "toolchainsToRegister": [], + "extensionUsages": [], + "deps": { + "rules_license": "rules_license@0.0.7", + "bazel_tools": "bazel_tools@_", + "local_config_platform": "local_config_platform@_" + }, + "repoSpec": { + "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", + "ruleClassName": "http_archive", + "attributes": { + "urls": [ + "https://github.com/bazelbuild/platforms/releases/download/0.0.7/platforms-0.0.7.tar.gz" + ], + "integrity": "sha256-OlYcmee9vpFzqmU/1Xn+hJ8djWc5V4CrR3Cx84FDHVE=", + "strip_prefix": "", + "remote_patches": {}, + "remote_patch_strip": 0 + } + } + }, "boost.algorithm@1.83.0.bzl.1": { "name": "boost.algorithm", "version": "1.83.0.bzl.1", @@ -245,16 +273,17 @@ } } }, - "boost.chrono@1.83.0.bzl.1": { + "boost.chrono@1.83.0.bzl.2": { "name": "boost.chrono", - "version": "1.83.0.bzl.1", - "key": "boost.chrono@1.83.0.bzl.1", + "version": "1.83.0.bzl.2", + "key": "boost.chrono@1.83.0.bzl.2", "repoName": "boost.chrono", "executionPlatformsToRegister": [], "toolchainsToRegister": [], "extensionUsages": [], "deps": { "rules_cc": "rules_cc@0.0.9", + "platforms": "platforms@0.0.7", "boost.assert": "boost.assert@1.83.0.bzl.1", "boost.config": "boost.config@1.83.0.bzl.6", "boost.core": "boost.core@1.83.0.bzl.1", @@ -278,9 +307,9 @@ "ruleClassName": "http_archive", "attributes": { "urls": [ - "https://github.com/bazelboost/chrono/releases/download/bazelboost-1.83.0.bzl.1/chrono-bazelboost-1.83.0.bzl.1.tar.gz" + "https://github.com/bazelboost/chrono/releases/download/bazelboost-1.83.0.bzl.2/chrono-bazelboost-1.83.0.bzl.2.tar.gz" ], - "integrity": "sha256-xZI9hWFJRElk6uDb8bon2i+VjX7jDaNMxWrm0qj0G7I=", + "integrity": "sha256-iwiYMc+9N20D+JXstI1ESnNbNR7e3YXYCpmQ0TgeDFo=", "strip_prefix": "", "remote_patches": {}, "remote_patch_strip": 0 @@ -1219,16 +1248,15 @@ "bazel_tools": "bazel_tools@_" } }, - "platforms@0.0.7": { - "name": "platforms", + "rules_license@0.0.7": { + "name": "rules_license", "version": "0.0.7", - "key": "platforms@0.0.7", - "repoName": "platforms", + "key": "rules_license@0.0.7", + "repoName": "rules_license", "executionPlatformsToRegister": [], "toolchainsToRegister": [], "extensionUsages": [], "deps": { - "rules_license": "rules_license@0.0.7", "bazel_tools": "bazel_tools@_", "local_config_platform": "local_config_platform@_" }, @@ -1237,9 +1265,9 @@ "ruleClassName": "http_archive", "attributes": { "urls": [ - "https://github.com/bazelbuild/platforms/releases/download/0.0.7/platforms-0.0.7.tar.gz" + "https://github.com/bazelbuild/rules_license/releases/download/0.0.7/rules_license-0.0.7.tar.gz" ], - "integrity": "sha256-OlYcmee9vpFzqmU/1Xn+hJ8djWc5V4CrR3Cx84FDHVE=", + "integrity": "sha256-RTHezLkTY5ww5cdRKgVNXYdWmNrrddjPkPKEN1/nw2A=", "strip_prefix": "", "remote_patches": {}, "remote_patch_strip": 0 @@ -1951,32 +1979,6 @@ } } }, - "rules_license@0.0.7": { - "name": "rules_license", - "version": "0.0.7", - "key": "rules_license@0.0.7", - "repoName": "rules_license", - "executionPlatformsToRegister": [], - "toolchainsToRegister": [], - "extensionUsages": [], - "deps": { - "bazel_tools": "bazel_tools@_", - "local_config_platform": "local_config_platform@_" - }, - "repoSpec": { - "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "urls": [ - "https://github.com/bazelbuild/rules_license/releases/download/0.0.7/rules_license-0.0.7.tar.gz" - ], - "integrity": "sha256-RTHezLkTY5ww5cdRKgVNXYdWmNrrddjPkPKEN1/nw2A=", - "strip_prefix": "", - "remote_patches": {}, - "remote_patch_strip": 0 - } - } - }, "rules_proto@5.3.0-21.7": { "name": "rules_proto", "version": "5.3.0-21.7", diff --git a/test/MODULE.bazel.lock b/test/MODULE.bazel.lock index 6f9caeb3e..dbabde5ae 100644 --- a/test/MODULE.bazel.lock +++ b/test/MODULE.bazel.lock @@ -1,6 +1,6 @@ { "lockFileVersion": 6, - "moduleFileHash": "1ca821f21ab957d945600ddf891940a9c077368e47666a7e23cf35f683a17347", + "moduleFileHash": "6dad1caed5b823a4709337a6a74b44e342a1741652ffcc597dc5562028d28290", "flags": { "cmdRegistries": [ "https://raw.githubusercontent.com/bazelboost/registry/main", @@ -15,7 +15,7 @@ }, "localOverrideHashes": { "bazel_tools": "1ae69322ac3823527337acf02016e8ee95813d8d356f47060255b8956fa642f0", - "boost.thread": "7a711818680ca54dfba5121dac9c11b5b616ef5a3d521be1c20b2d94b2bde2f7" + "boost.thread": "7c7fb768c672c3d6fe6d1ea6e6946a53cfe4d3e37210ecf344694848a7917831" }, "moduleDepGraph": { "": { @@ -53,7 +53,7 @@ "boost.array": "boost.array@1.83.0.bzl.1", "boost.assert": "boost.assert@1.83.0.bzl.1", "boost.bind": "boost.bind@1.83.0.bzl.1", - "boost.chrono": "boost.chrono@1.83.0.bzl.1", + "boost.chrono": "boost.chrono@1.83.0.bzl.2", "boost.config": "boost.config@1.83.0.bzl.6", "boost.context": "boost.context@1.83.0.bzl.1", "boost.core": "boost.core@1.83.0.bzl.1", @@ -181,7 +181,7 @@ "boost.assert": "boost.assert@1.83.0.bzl.1", "boost.atomic": "boost.atomic@1.83.0.bzl.1", "boost.bind": "boost.bind@1.83.0.bzl.1", - "boost.chrono": "boost.chrono@1.83.0.bzl.1", + "boost.chrono": "boost.chrono@1.83.0.bzl.2", "boost.concept_check": "boost.concept_check@1.83.0.bzl.1", "boost.config": "boost.config@1.83.0.bzl.6", "boost.container": "boost.container@1.83.0.bzl.1", @@ -673,16 +673,17 @@ } } }, - "boost.chrono@1.83.0.bzl.1": { + "boost.chrono@1.83.0.bzl.2": { "name": "boost.chrono", - "version": "1.83.0.bzl.1", - "key": "boost.chrono@1.83.0.bzl.1", + "version": "1.83.0.bzl.2", + "key": "boost.chrono@1.83.0.bzl.2", "repoName": "boost.chrono", "executionPlatformsToRegister": [], "toolchainsToRegister": [], "extensionUsages": [], "deps": { "rules_cc": "rules_cc@0.0.9", + "platforms": "platforms@0.0.7", "boost.assert": "boost.assert@1.83.0.bzl.1", "boost.config": "boost.config@1.83.0.bzl.6", "boost.core": "boost.core@1.83.0.bzl.1", @@ -706,9 +707,9 @@ "ruleClassName": "http_archive", "attributes": { "urls": [ - "https://github.com/bazelboost/chrono/releases/download/bazelboost-1.83.0.bzl.1/chrono-bazelboost-1.83.0.bzl.1.tar.gz" + "https://github.com/bazelboost/chrono/releases/download/bazelboost-1.83.0.bzl.2/chrono-bazelboost-1.83.0.bzl.2.tar.gz" ], - "integrity": "sha256-xZI9hWFJRElk6uDb8bon2i+VjX7jDaNMxWrm0qj0G7I=", + "integrity": "sha256-iwiYMc+9N20D+JXstI1ESnNbNR7e3YXYCpmQ0TgeDFo=", "strip_prefix": "", "remote_patches": {}, "remote_patch_strip": 0