Commit Graph

49 Commits

Author SHA1 Message Date
qicosmos c0006099ab
[new feature]Add metrics (#674) 2024-06-07 23:15:51 +08:00
qicosmos 476b5842d4
[struct_pb]Refact struct pb (#680) 2024-05-29 11:43:20 +08:00
qicosmos 041d9b5a57
fix ci (#667) 2024-04-24 20:19:13 +08:00
qicosmos 7349bd0db8
[ci][coverage] show details (#659) 2024-04-16 10:34:32 +08:00
Lingxuan Zuo 14d1323fa6
bazel build support (#613) 2024-03-01 17:21:54 +08:00
saipubw 437334424f
[cmake][doc] rename cmake option, export it to find_package(), add doc. (#601) 2024-02-20 12:52:32 +08:00
qicosmos 06103b536f
[string_resize][bug]fix resize (#586) 2024-01-30 17:14:37 +08:00
qicosmos f27793b95e
[ci]test coverage (#585) 2024-01-30 16:29:30 +08:00
qicosmos d768e13687
[coro_http_server][feat]support gzip (#584) 2024-01-30 12:04:34 +08:00
qicosmos 638c4b2ec9
fix coverage (#582) 2024-01-30 11:12:44 +08:00
saipubw c8dbcf65d5
[struct_pack] support fast_varint encode, allow encode int as varint by config (#499)
* add support for fast_varint encoding

* allow serialize normal int as varint encode
2023-11-23 20:36:49 +08:00
qicosmos e4efeff403
fix ci (#484) 2023-11-01 10:26:51 +08:00
qicosmos 18ac0ecc9c
[ci][fix]use libc++ when compile with clang (#483) 2023-10-31 15:00:31 +08:00
saipubw 71692db591
[struct_pack] Add support for big-endian platform (#474) 2023-10-13 15:36:33 +08:00
saipubw 23d62e761b
[struct_pack][breakchange][feat] support c++17 (#392)
* [struct_pack] remove consteval

* [struct_pack] compatible likely/unlikely

* [struct_pack] don't include tuplet:tuple in cpp17

* [struct_pack] bench/test/examples support cpp17

* [struct_pack] remove spaceship operator for cpp17

* [struct_pack] remove auto in function parameters

* [struct_pack] use void_t/constexpr bool/static_assert to simulate concept when -std=c++17

* [struct_pack]  remove requires

* [struct_pack] remove std::remove_cvref_t

* [struct_pack] remove char8_t

* [struct_pack] remove std::same_as

* [struct_pack][breakchange] use uint64_t to instead struct_pack::serialize_config

* [struct_pack] remove unevaluate inline lambda

* [struct_pack] fix trivially_copyable_container

* [struct_pack] fix struct_pack_benchmark

* [struct_pack] remove default operator ==

* [struct_pack] fix string_literal

* [struct_pack] fix explicit template paramters in lamdba

* [struct_pack] move <bit> header file

* [struct_pack] fix msvc test failed

* [struct_pack] update doc & ci
2023-08-02 16:29:22 +08:00
saipubw 639e1d0ad1
[coro_io] add test for coro_io (#360)
* [coro_io] add test for coro_io

* [coro_io] fix memory leak when io_context stopped before start.

* [coro_rpc] fix unsafe cancel
2023-07-13 19:51:56 +08:00
saipubw 3188923ddb
[no ci] Disable build website daily. 2023-07-08 01:20:47 +08:00
Zezheng.Li b9fbd31f33 [no ci] [Doc] fix doc (#355) 2023-07-06 14:33:28 +08:00
saipubw 1e76e30de4
fix documenti. (#351) 2023-07-05 18:33:59 +08:00
saipubw 66da6c93f5
Fix document (#350) 2023-07-05 17:42:38 +08:00
saipubw 3d6f9d39de
update ci (#348) 2023-07-04 16:10:01 +08:00
saipubw 333b1299c2
refactor project (#347)
refact project
2023-07-04 14:09:35 +08:00
qicosmos 3edd2943b2
update http client (#317) 2023-06-09 17:15:22 +08:00
saipubw 18f4d5626a
disable mac CI temporary for some bug 2023-06-09 15:50:35 +08:00
saipubw e15672d4bb
Update mac.yml 2023-06-09 11:53:09 +08:00
qicosmos d2eb11e37a
test 100 files read and write (#305) 2023-06-05 16:15:20 +08:00
sunflower-knight cb1aec86c7
[cmake] use ccache in a safe way. (#274) 2023-04-23 10:22:44 +08:00
sunflower-knight d3120f7f01
[website] change website CI branch and logic (#275) 2023-04-23 10:11:00 +08:00
sunflower-knight fb38ad3790
[website] refactor website and docs (#263) 2023-04-17 11:18:03 +08:00
sunflower-knight 8cd8552b79
[ci] use ccache speed up ci (#264) 2023-04-17 10:29:51 +08:00
PikachuHy 8d3a1f3af1
add bazel support (#258) 2023-04-11 09:57:50 +08:00
PikachuHy 8d1e1f2db7
Create static.yml 2023-03-14 17:29:57 +08:00
PikachuHy 2148ac050d [ci] disable llvm cov 2023-03-06 18:54:53 +08:00
PikachuHy 5816e18906
upgrade seanmiddleditch/gha-setup-ninja from v3 to master (#208) 2023-02-15 19:34:36 +08:00
PikachuHy 662eab15db
refactor: cmake install (#177) 2023-02-07 11:00:35 +08:00
saipubw 34b176f152
[coro_rpc] remove async_rpc_server (#170) 2023-02-03 17:45:26 +08:00
PikachuHy 0779537003
[struct_pb] protobuf 3.12 compat (#157) 2023-01-18 18:27:57 +08:00
PikachuHy d11a080d45
fix mac ci (#147)
* fix mac ci
2023-01-11 16:18:25 +08:00
sunflower-knight 636ecb2acf
use ninja for ci and add win32 (#108) 2022-12-09 10:52:26 +08:00
PikachuHy 5c470b3411 fix llvm cov 2022-12-08 18:28:58 +08:00
向日葵骑士 582de58940
[no ci] fix the clerical error (#95) 2022-12-07 10:37:24 +08:00
qicosmos b184787ba6
reset g_action (#83)
* reset g_action

* update

* add client id

* update

* conf; single proc

* timeout of handshake

* increase timeout duration

* trigger ci

* add retry
2022-12-01 09:03:44 +08:00
Refvalue 1d9f2e4f09
[coro_rpc] Full MSVC support and bug fixes part 1. (#37)
* ## Why

Closes #18
Made this repo available to MSVC.

## What is changing

Added:
- util/magic_names.hpp
- util/meta_string.hpp
- A uniform MSVC/GCC/Clang implementation of reflecting qualified function names.
- A meta_string class for template programming as non-type parameter when enabling C++20.

Added:
- util/benchmark
- util/examples
- util/tests
Some static asserts for ensuring correctness of newly added code.

Modified/Fixed:
- coro_rpc: CMakeLists.txt
- coro_rpc/tests/ServerTester.hpp
- coro_rpc/tests/test_coro_rpc_server.hpp
- util/function_name.h
Fixed fatal issues when compiling with MSVC.
Fixed incorrect function names when using MSVC.

All unit tests have passed on MSVC 19.3x/GCC11.x/12.x/Clang 15+.
Core logics have passed on GoldBolt.

## Example
Please view src/util/tests

* ## Why

Closes #18
Made this repo available to MSVC.

## What is changing

Added:
- util/magic_names.hpp
- util/meta_string.hpp
- A uniform MSVC/GCC/Clang implementation of reflecting qualified function names.
- A meta_string class for template programming as non-type parameter when enabling C++20.

Added:
- util/benchmark
- util/examples
- util/tests
Some static asserts for ensuring correctness of newly added code.

Modified/Fixed:
- coro_rpc: CMakeLists.txt
- coro_rpc/tests/ServerTester.hpp
- coro_rpc/tests/test_coro_rpc_server.hpp
- util/function_name.h
Fixed fatal issues when compiling with MSVC.
Fixed incorrect function names when using MSVC.

All unit tests have passed on MSVC 19.3x/GCC11.x/12.x/Clang 15+.
Core logics have passed on GoldBolt.

## Example
Please view src/util/tests

* Removed the dependency <ranges>

* Fixed:
A workaround for no support for std::string_view::<=> with Apple Clang.
Fixed the Clang 14.0.0 crash when compiling util/tests/static_asserts.cpp

* clang_format fixes.

* Fixed:
x86-64 clang in some versions crashed when compiling util/tests/static_asserts.cpp.
Apple Clang did not compile.

* comment template function assert

* Update static_asserts.cpp

* Update static_asserts.cpp

remove some test code

* win ci enable all projects

* fix -pthread

* ignore data_gen

* fix

* Added:
util/string_finder.hpp
A uniform implementation of string finder with find, find_first_of, rfind, find_last_of.

Modified:
Keeps identical output from GCC, Clang, Apple Clang, etc.

* Added operator+ for meta_string.
Added data() members for meta_string.

* Modified:
Extracted duplicate macro condition tests of different access to function signatures into a macro.

* Added the __thiscall calling convention for function signature extraction.
Fixed the failure in unit tests on x86 architecture.

* Matched the coding principle.

* disable x86

* Update CMakeLists.txt

* Update test_variadic.cpp

* Update windows.yml

* Update test_variadic.cpp

Co-authored-by: saipubw <1.048590@gmail.com>
Co-authored-by: qicosmos <qicosmos@linux.alibaba.com>
Co-authored-by: PikachuHy <pikachuhy@linux.alibaba.com>
2022-11-09 10:43:12 +08:00
PikachuHy 20e63f9ef5
fix: Resource not accessible by integration (#40) 2022-11-02 18:32:37 +08:00
PikachuHy 6614ba025c [no ci] fix clang-format 2022-11-02 17:47:41 +08:00
PikachuHy b373044261
add llvm cov ci (#38) 2022-11-02 17:29:53 +08:00
PikachuHy 2feb0ba852
fix test (#32) 2022-11-02 11:15:35 +08:00
PikachuHy 657718f346
add ci (#33) 2022-11-02 09:13:24 +08:00
qicosmos db0fbff5e1
add pr and issue template (#3) 2022-10-22 11:47:42 +08:00