-
Notifications
You must be signed in to change notification settings - Fork 471
Add: boostorg/mysql #4520
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Add: boostorg/mysql #4520
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
4047967
feat: modules/boost.charconv
kekxv 54b3a1a
Merge branch 'bazelbuild:main' into main
kekxv 776c294
feat: modules/boost.compat
kekxv 75cb8c6
feat: modules/boost.mysql
kekxv 76018c1
feat: modules/boost.mysql
kekxv f78c4da
fix: metadata.json
kekxv dcf04bf
fix: source.json sha256
kekxv f1585b1
fix: boost.compat/1.87.0 ci/cd
kekxv e83bfb1
fix: boost.charconv/1.87.0 ci/cd
kekxv 2b0fc56
fix: boost.charconv/1.87.0 ci/cd
kekxv 3e20c9f
fix: boost.charconv/1.87.0 ci/cd - 1
kekxv 9f3ed6c
fix: boost.charconv/1.87.0 ci/cd - 2
kekxv 242d290
fix: boost.charconv/1.87.0 ci/cd - 3
kekxv 662c963
fix: boost.mysql/1.87.0 ci/cd
kekxv 1c98a63
fix: boost.mysql/1.87.0 ci/cd - 1
kekxv c7c0b35
update
kekxv acd5632
fix: sha256
kekxv a3b38d9
update: presubmit.yml
kekxv 74d9ec0
add: mysql example build
kekxv ac79131
update: source.json
kekxv 14d24be
Update: Detail optimization
kekxv File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
module( | ||
name = "boost.charconv", | ||
version = "1.87.0", | ||
bazel_compatibility = [">=7.2.1"], | ||
compatibility_level = 108700, | ||
) | ||
|
||
bazel_dep(name = "bazel_skylib", version = "1.7.1") | ||
bazel_dep(name = "boost.assert", version = "1.87.0") | ||
bazel_dep(name = "boost.config", version = "1.87.0") | ||
bazel_dep(name = "boost.core", version = "1.87.0") | ||
bazel_dep(name = "platforms", version = "0.0.10") | ||
bazel_dep(name = "rules_cc", version = "0.1.1") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
load("@bazel_skylib//rules:common_settings.bzl", "string_flag") | ||
load("@rules_cc//cc:defs.bzl", "cc_library") | ||
|
||
package(default_visibility = ["//visibility:public"]) | ||
|
||
string_flag( | ||
name = "quadmath", | ||
build_setting_default = "off", | ||
values = [ | ||
"off", | ||
"on", | ||
], | ||
visibility = ["//visibility:public"], | ||
) | ||
|
||
config_setting( | ||
name = "off", | ||
flag_values = {":quadmath": "off"}, | ||
) | ||
|
||
config_setting( | ||
name = "on", | ||
flag_values = {":quadmath": "on"}, | ||
) | ||
|
||
cc_library( | ||
name = "boost.charconv", | ||
srcs = glob(["src/*.cpp"]), | ||
hdrs = glob([ | ||
"include/**/*.*pp", | ||
"src/*.*pp", | ||
]), | ||
defines = ["BOOST_ALL_NO_LIB"] + select({ | ||
":on": ["BOOST_CHARCONV_HAS_QUADMATH"], | ||
":off": ["BOOST_CHARCONV_NO_QUADMATH"], | ||
}), | ||
features = ["parse_headers"], | ||
includes = ["include"], | ||
deps = [ | ||
"@boost.assert", | ||
"@boost.config", | ||
"@boost.core", | ||
], | ||
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../MODULE.bazel |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
load("@rules_cc//cc:defs.bzl", "cc_test") | ||
|
||
cc_test( | ||
name = "test_boost_json_values", | ||
srcs = ["test_boost_json_values.cpp"], | ||
deps = [ | ||
"@boost.charconv", | ||
], | ||
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
bazel_dep(name = "boost.charconv") | ||
bazel_dep(name = "boost.test", version = "1.87.0") | ||
|
||
local_path_override( | ||
module_name = "boost.charconv", | ||
path = "..", | ||
) | ||
|
||
bazel_dep(name = "platforms", version = "0.0.10") | ||
bazel_dep(name = "rules_cc", version = "0.1.1") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
diff --git a/include/boost/charconv/detail/type_traits.hpp b/include/boost/charconv/detail/type_traits.hpp | ||
index 4160555..54b6d54 100644 | ||
--- a/include/boost/charconv/detail/type_traits.hpp | ||
+++ b/include/boost/charconv/detail/type_traits.hpp | ||
@@ -6,6 +6,7 @@ | ||
#define BOOST_CHARCONV_DETAIL_TYPE_TRAITS_HPP | ||
|
||
#include <boost/charconv/detail/config.hpp> | ||
+#include "emulated128.hpp" | ||
#include <type_traits> | ||
|
||
namespace boost { namespace charconv { namespace detail { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
matrix: | ||
platform: | ||
- debian10 | ||
- debian11 | ||
- macos | ||
- macos_arm64 | ||
- ubuntu2004 | ||
- ubuntu2204 | ||
- ubuntu2404 | ||
- windows | ||
bazel: [7.x, 8.x, rolling] | ||
tasks: | ||
verify_targets: | ||
name: Verify build targets | ||
platform: ${{ platform }} | ||
bazel: ${{ bazel }} | ||
build_flags: | ||
- '--process_headers_in_dependencies' | ||
build_targets: | ||
- '@boost.charconv//:boost.charconv' | ||
bcr_test_module: | ||
module_path: test | ||
matrix: | ||
platform: | ||
- debian10 | ||
- debian11 | ||
- macos | ||
- macos_arm64 | ||
- ubuntu2004 | ||
- ubuntu2204 | ||
- ubuntu2404 | ||
- windows | ||
bazel: [7.x, 8.x, rolling] | ||
tasks: | ||
run_test_module: | ||
name: Run test module | ||
platform: ${{ platform }} | ||
bazel: ${{ bazel }} | ||
build_flags: | ||
- '--process_headers_in_dependencies' | ||
build_targets: | ||
- //... | ||
test_targets: | ||
- //... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"integrity": "sha256-IV+9lK9/jSNE/wDpeX6vGYRr0aZJleBsfjyztmpRLT0=", | ||
"strip_prefix": "charconv-boost-1.87.0", | ||
"url": "https://github.com/boostorg/charconv/archive/refs/tags/boost-1.87.0.tar.gz", | ||
"patches": { | ||
"patch.diff": "sha256-+tVCv1S3GSxrHeYeRMRpf2lJaB2oOpnesAXkkJ1dRXM=" | ||
}, | ||
"patch_strip": 1, | ||
"overlay": { | ||
"BUILD.bazel": "sha256-SVFTnql10ZLHs08Qh4crcygt5oENft+f2RWLa3SFzCY=", | ||
"MODULE.bazel": "sha256-eJft/lwnvuS0BD+J1Rnn2oyM7yJIWO2UOPebs/hkrYU=", | ||
"test/BUILD.bazel": "sha256-4vP2zJDOBECZnwhv+k0ywJhurfE+zbgvErCQbhO6hKo=", | ||
"test/MODULE.bazel": "sha256-vReKWE529wY3g6L1ZWrYMKwY0vnPN/9VTSSP8g6M8Jw=" | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"homepage": "http://boost.org/libs/charconv", | ||
"maintainers": [ | ||
{ | ||
"email": "[email protected]", | ||
"github": "kekxv", | ||
"name": "kekxv", | ||
"github_user_id": 15551108 | ||
} | ||
], | ||
"repository": [ | ||
"github:boostorg/charconv" | ||
], | ||
"versions": [ | ||
"1.87.0" | ||
], | ||
"yanked_versions": {} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
module( | ||
name = "boost.compat", | ||
version = "1.87.0", | ||
bazel_compatibility = [">=7.2.1"], | ||
compatibility_level = 108700, | ||
) | ||
|
||
bazel_dep(name = "boost.assert", version = "1.87.0") | ||
bazel_dep(name = "boost.config", version = "1.87.0") | ||
bazel_dep(name = "boost.throw_exception", version = "1.87.0") | ||
bazel_dep(name = "platforms", version = "0.0.10") | ||
bazel_dep(name = "rules_cc", version = "0.1.1") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
load("@rules_cc//cc:defs.bzl", "cc_library") | ||
|
||
package(default_visibility = ["//visibility:public"]) | ||
|
||
cc_library( | ||
name = "boost.compat", | ||
hdrs = glob([ | ||
"include/boost/compat/**/*", | ||
]), | ||
features = [ | ||
"parse_headers", | ||
], | ||
includes = ["include"], | ||
deps = [ | ||
"@boost.assert", | ||
"@boost.config", | ||
"@boost.throw_exception", | ||
], | ||
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../MODULE.bazel |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
matrix: | ||
platform: | ||
- debian10 | ||
- debian11 | ||
- macos | ||
- macos_arm64 | ||
- ubuntu2004 | ||
- ubuntu2204 | ||
- ubuntu2404 | ||
- windows | ||
bazel: [7.x, 8.x, rolling] | ||
tasks: | ||
verify_targets: | ||
name: Verify build targets | ||
platform: ${{ platform }} | ||
bazel: ${{ bazel }} | ||
build_flags: | ||
- '--process_headers_in_dependencies' | ||
build_targets: | ||
- '@boost.compat//:boost.compat' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"integrity": "sha256-mNTSa5OSQOVWIk92iGO/mTtMARuAIvriTWMOiU0T6RA=", | ||
"strip_prefix": "compat-boost-1.87.0", | ||
"url": "https://github.com/boostorg/compat/archive/refs/tags/boost-1.87.0.tar.gz", | ||
"patch_strip": 0, | ||
"overlay": { | ||
"MODULE.bazel": "sha256-h+2gN6CfwS/a7/1ZKtmVjVm5X/0XVUnecFS7Bgk5xPo=", | ||
"BUILD.bazel": "sha256-KDC7g6R8MghfWVrEGTKQIhyDz403AtzPKGDTnqVPwm8=" | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"homepage": "http://boost.org/libs/compat", | ||
"maintainers": [ | ||
{ | ||
"email": "[email protected]", | ||
"github": "kekxv", | ||
"name": "kekxv", | ||
"github_user_id": 15551108 | ||
} | ||
], | ||
"repository": [ | ||
"github:boostorg/compat" | ||
], | ||
"versions": [ | ||
"1.87.0" | ||
], | ||
"yanked_versions": {} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
module( | ||
name = "boost.mysql", | ||
version = "1.87.0", | ||
bazel_compatibility = [">=7.2.1"], | ||
compatibility_level = 108700, | ||
) | ||
|
||
bazel_dep(name = "bazel_skylib", version = "1.7.1") | ||
bazel_dep(name = "boringssl", version = "0.20240913.0") | ||
bazel_dep(name = "boost.align", version = "1.87.0") | ||
bazel_dep(name = "boost.compat", version = "1.87.0") | ||
bazel_dep(name = "boost.charconv", version = "1.87.0") | ||
bazel_dep(name = "boost.asio", version = "1.87.0.bcr.1") | ||
bazel_dep(name = "boost.array", version = "1.87.0") | ||
bazel_dep(name = "boost.assert", version = "1.87.0") | ||
bazel_dep(name = "boost.bind", version = "1.87.0") | ||
bazel_dep(name = "boost.chrono", version = "1.87.0") | ||
bazel_dep(name = "boost.config", version = "1.87.0") | ||
bazel_dep(name = "boost.context", version = "1.87.0") | ||
bazel_dep(name = "boost.core", version = "1.87.0") | ||
bazel_dep(name = "boost.coroutine", version = "1.87.0") | ||
bazel_dep(name = "boost.date_time", version = "1.87.0") | ||
bazel_dep(name = "boost.endian", version = "1.87.0") | ||
bazel_dep(name = "boost.exception", version = "1.87.0") | ||
bazel_dep(name = "boost.function", version = "1.87.0") | ||
bazel_dep(name = "boost.regex", version = "1.87.0") | ||
bazel_dep(name = "boost.pfr", version = "1.87.0") | ||
bazel_dep(name = "boost.smart_ptr", version = "1.87.0") | ||
bazel_dep(name = "boost.system", version = "1.87.0") | ||
bazel_dep(name = "boost.throw_exception", version = "1.87.0") | ||
bazel_dep(name = "boost.type_traits", version = "1.87.0") | ||
bazel_dep(name = "boost.utility", version = "1.87.0") | ||
bazel_dep(name = "platforms", version = "0.0.10") | ||
bazel_dep(name = "rules_cc", version = "0.1.1") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
load("@bazel_skylib//rules:common_settings.bzl", "string_flag") | ||
load("@bazel_skylib//rules:write_file.bzl", "write_file") | ||
load("@rules_cc//cc:defs.bzl", "cc_library") | ||
|
||
package(default_visibility = ["//visibility:public"]) | ||
|
||
string_flag( | ||
name = "ssl", | ||
build_setting_default = "no_ssl", | ||
values = [ | ||
"no_ssl", | ||
"openssl", | ||
"boringssl", | ||
], | ||
visibility = ["//visibility:public"], | ||
) | ||
|
||
config_setting( | ||
name = "no_ssl", | ||
flag_values = {":ssl": "no_ssl"}, | ||
) | ||
|
||
config_setting( | ||
name = "openssl", | ||
flag_values = {":ssl": "openssl"}, | ||
) | ||
|
||
config_setting( | ||
name = "boringssl", | ||
flag_values = {":ssl": "boringssl"}, | ||
) | ||
|
||
write_file( | ||
name = "src", | ||
out = "boost.mysql.src.cpp", | ||
content = ["#include <boost/mysql/src.hpp>"], | ||
visibility = ["//visibility:private"], | ||
) | ||
|
||
cc_library( | ||
name = "boost.mysql", | ||
srcs = [":src"], | ||
defines = ["BOOST_MYSQL_SEPARATE_COMPILATION"], | ||
features = [ | ||
"parse_headers", | ||
], | ||
includes = ["include"], | ||
textual_hdrs = glob([ | ||
"include/**/*.*pp", | ||
]), | ||
deps = [ | ||
"@boost.align", | ||
"@boost.array", | ||
"@boost.asio", | ||
"@boost.assert", | ||
"@boost.bind", | ||
"@boost.charconv", | ||
"@boost.chrono", | ||
"@boost.compat", | ||
"@boost.config", | ||
"@boost.context", | ||
"@boost.core", | ||
"@boost.coroutine", | ||
"@boost.date_time", | ||
"@boost.endian", | ||
"@boost.exception", | ||
"@boost.function", | ||
"@boost.pfr", | ||
"@boost.regex", | ||
"@boost.smart_ptr", | ||
"@boost.system", | ||
"@boost.throw_exception", | ||
"@boost.type_traits", | ||
"@boost.utility", | ||
] + select({ | ||
":openssl": [ | ||
"@openssl//:crypto", | ||
"@openssl//:ssl", | ||
], | ||
":boringssl": [ | ||
"@boringssl//:crypto", | ||
"@boringssl//:ssl", | ||
], | ||
":no_ssl": [], | ||
}), | ||
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../MODULE.bazel |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
load("@rules_cc//cc:defs.bzl", "cc_binary") | ||
|
||
cc_binary( | ||
name = "1_sync", | ||
srcs = ["1_tutorial/1_sync.cpp"], | ||
deps = [ | ||
"@boost.mysql", | ||
], | ||
) |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.