Commit Graph

45 Commits

Author SHA1 Message Date
大萝卜 4ccad4855c
fix Cmake FetchContent build bug (#782) 2024-09-25 13:54:43 +08:00
saipubw b4eb280442
[struct_pack][fix] fix windows ci, fix compatible in windows (#771)
* fix msvc

* fix OOM in msvc

* fix

* fix ce in vs2019
2024-09-12 16:41:19 +08:00
qicosmos 18602fa150
[metric]Fix compile for msvc (#756)
* [ci] enable windows vs2022 (#754)

* fix msvc

* [ci] enable vs2022

* [no ci] fix msvc

* missed header

* fix msvc marco

---------

Co-authored-by: saipubw <Zezheng.Li@linux.alibaba.com>
Co-authored-by: Zezheng.Li <Zezheng_Li@linux.alibaba.com>
2024-08-15 16:07:37 +08:00
saipubw dfcb5d58c0
[struct_pack][fix] fix warning (#751) 2024-08-13 19:09:32 +08:00
saipubw e6a51b83cf
[struct_pack][fix] fix warning (#750) 2024-08-13 18:50:43 +08:00
qicosmos 476b5842d4
[struct_pb]Refact struct pb (#680) 2024-05-29 11:43:20 +08:00
qicosmos b487b751a1
[ci][gcc asan]test gcc asan in ubuntu20.04 (#648) 2024-03-25 12:40:44 +08:00
saipubw a414eea434
move iguana and cinatra to standalone subdir (#639) 2024-03-19 17:00:57 +08:00
saipubw b7b01c5836
fix install by package manager (#638) 2024-03-19 14:31:26 +08:00
saipubw 288024013e
Release v0.3.1 (#637) 2024-03-19 11:36:25 +08:00
saipubw d8836aafdc
fix cmake option & doc (#636) 2024-03-18 22:54:18 +08:00
qicosmos ac54ad04b1
[ci][fix]try to fix ci (#626) 2024-03-16 09:12:11 +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
PikachuHy 1b5f5199d6
export cmake option when developer use CMake FetchContent (#591)
For example, use the following cmake config
```
include(FetchContent)
FetchContent_Declare(
        yalantinglibs
        GIT_REPOSITORY https://github.com/alibaba/yalantinglibs.git
        GIT_TAG xxx # use the least commit id
        GIT_SHALLOW 1 # optional ( --depth=1 )
)
FetchContent_MakeAvailable(yalantinglibs)
add_executable(demo main.cpp)
target_link_libraries(demo PRIVATE yalantinglibs)
```

you can use `cmake -DENABLE_STRUCT_PACK_UNPORTABLE_TYPE=ON ..`,
the option `ENABLE_STRUCT_PACK_UNPORTABLE_TYPE=ON` will be used when building yalantinglibs
2024-02-05 11:30:33 +08:00
JYLeeLYJ c41e7a0865
feat: support FetchContent use in CMake (#519) 2023-12-07 10:27:58 +08:00
saipubw 71692db591
[struct_pack] Add support for big-endian platform (#474) 2023-10-13 15:36:33 +08:00
qicosmos acb748a932
[struct_json, struct_xml, struct_yaml][feat]support cpp17 (#394) 2023-08-02 17:44:53 +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 c90d1adc65
[struct_pack] support non-aggregate type (#382)
* [struct_pack] add support for non-aggregated type
2023-07-25 13:33:55 +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 a0e07edf9a
Support struct yaml (#330) 2023-06-19 15:27:39 +08:00
qicosmos c75fdff50b
add coro_file (#295) 2023-06-02 15:29:37 +08:00
qicosmos 7857ba02e8
add struct_xml (#277) 2023-05-10 10:43:14 +08:00
sunflower-knight cb1aec86c7
[cmake] use ccache in a safe way. (#274) 2023-04-23 10:22:44 +08:00
sunflower-knight 8cd8552b79
[ci] use ccache speed up ci (#264) 2023-04-17 10:29:51 +08:00
qicosmos e64a960f74
add coroutine http client (#242) 2023-03-18 14:13:41 +08:00
PikachuHy 662eab15db
refactor: cmake install (#177) 2023-02-07 11:00:35 +08:00
qicosmos c79257f8da
add easylog (#163)
* add easylog

* add flush method

* ignore cur thd id on win

* support sprintf
* improve ELOGV

* use new log in client

* fix meta string

* fix win; simplify log function

* update server log

* replace log

* remove spdlog

* fix

* namespace

* use memory resource

* fix std::max/std::min for win

* simplify ELOG
2023-02-02 13:43:15 +08:00
helintongh 6c046ce606
fix cmake error in minimize ubuntu 20.04 and vcpkg ci pipeline (#159) 2023-01-20 07:29:48 +08:00
PikachuHy 3650d67092
[struct_pb] add high-level api (#152) 2023-01-18 19:10:23 +08:00
PikachuHy 0779537003
[struct_pb] protobuf 3.12 compat (#157) 2023-01-18 18:27:57 +08:00
qicosmos 37995b2fcd
Improve benchmark (#144)
* do some improvement

* unify bench code

* unify bench

* fix path

* fix header

* try to fix

* fix

* update
2023-01-11 19:34:52 +08:00
PikachuHy 09192dd79c
add struct_pb (#142) 2023-01-09 16:18:54 +08:00
saipubw eeecd3e4a7
[struct_pack] Add support for serialize to stream (#126)
* [struct_pack] Add support for stream-like read/write

* [struct_pack] Add document for stream I/O

* [struct_pack] fix_msvc, improve get_needed_size
2023-01-04 17:37:12 +08:00
PikachuHy dc081ce3ce
fix path broken when as submodule (#134) 2022-12-23 10:57:33 +08:00
qicosmos 6d80eaa3ad
refactor struct_pack benchmark (#127) 2022-12-22 13:38:28 +08:00
sunflower-knight 6f09cf4fc1
Fix cmake (#114) 2022-12-12 20:00:11 +08:00
PikachuHy 7e2e97cd9f
move util test code to coro_rpc/tests (#106)
move util test code to coro_rpc/tests
2022-12-09 14:55:55 +08:00
sunflower-knight 636ecb2acf
use ninja for ci and add win32 (#108) 2022-12-09 10:52:26 +08:00
saipubw 385a5a57e5
[coro_rpc] Workaround for MSVC C4737. (#107) 2022-12-08 16:14:31 +08:00
sunflower-knight 550f6c91fd
clean cmake code and fix cmake bug (#104) 2022-12-08 10:20:45 +08:00
向日葵骑士 afc738f30d
refactor: friendly-cmake (#93) 2022-12-07 10:27:44 +08:00
PikachuHy 98dfd3bcd3
check asan before use (#30) 2022-11-01 16:20:49 +08:00