feat(configuration): add toml config
Some checks failed
linux-x86-gcc / linux-gcc (Debug) (push) Waiting to run
linux-x86-gcc / linux-gcc (Release) (push) Waiting to run
android / build (push) Failing after 23s
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (Debug) (push) Failing after 6m36s
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (Release) (push) Failing after 7m38s
linux-arm-gcc / linux-gcc-arm (Debug) (push) Failing after 6m53s
linux-arm-gcc / linux-gcc-arm (Release) (push) Failing after 7m29s
linux-arm-gcc / linux-gcc-armhf (Debug) (push) Failing after 7m2s
linux-arm-gcc / linux-gcc-armhf (Release) (push) Failing after 7m36s
linux-mips-gcc / linux-gcc-mipsel (Debug) (push) Failing after 8m11s
linux-mips-gcc / linux-gcc-mipsel (Release) (push) Failing after 7m59s
linux-mips64-gcc / linux-gcc-mips64el (Debug) (push) Failing after 7m45s
linux-mips64-gcc / linux-gcc-mips64el (Release) (push) Failing after 7m57s
linux-riscv64-gcc / linux-gcc-riscv64 (Debug) (push) Failing after 9m2s
linux-riscv64-gcc / linux-gcc-riscv64 (Release) (push) Failing after 7m18s
android / build (pull_request) Failing after 19s
linux-x64-clang / linux-clang (Debug) (push) Failing after 29s
linux-x64-clang / linux-clang (Release) (push) Failing after 33s
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (Debug) (pull_request) Failing after 6m38s
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (Release) (pull_request) Failing after 7m43s
linux-x64-gcc / linux-gcc (Debug) (push) Failing after 9m53s
linux-x64-gcc / linux-gcc (Release) (push) Has been cancelled
linux-arm-gcc / linux-gcc-arm (Debug) (pull_request) Failing after 6m51s
linux-arm-gcc / linux-gcc-arm (Release) (pull_request) Failing after 7m28s
linux-arm-gcc / linux-gcc-armhf (Debug) (pull_request) Failing after 7m1s
linux-arm-gcc / linux-gcc-armhf (Release) (pull_request) Failing after 7m32s
linux-mips-gcc / linux-gcc-mipsel (Debug) (pull_request) Failing after 7m44s
linux-mips-gcc / linux-gcc-mipsel (Release) (pull_request) Failing after 7m58s
linux-mips64-gcc / linux-gcc-mips64el (Debug) (pull_request) Failing after 7m55s
linux-mips64-gcc / linux-gcc-mips64el (Release) (pull_request) Failing after 7m56s
linux-riscv64-gcc / linux-gcc-riscv64 (Debug) (pull_request) Failing after 8m28s
linux-riscv64-gcc / linux-gcc-riscv64 (Release) (pull_request) Failing after 7m16s
linux-x64-clang / linux-clang (Debug) (pull_request) Failing after 29s
linux-x64-clang / linux-clang (Release) (pull_request) Failing after 31s
linux-x64-gcc / linux-gcc (Debug) (pull_request) Failing after 9m45s
linux-x86-gcc / linux-gcc (Debug) (pull_request) Failing after 10m43s
linux-x64-gcc / linux-gcc (Release) (pull_request) Failing after 3h12m48s
linux-x86-gcc / linux-gcc (Release) (pull_request) Failing after 3h2m3s

This commit is contained in:
tqcq 2024-10-02 09:32:05 +08:00
parent 80eb00711b
commit dc02ceb9b0
3 changed files with 15 additions and 0 deletions

View File

@ -7,5 +7,6 @@
#include "tile/base/config/configuration.h" #include "tile/base/config/configuration.h"
#include "tile/base/config/ini_file_configuration.h" #include "tile/base/config/ini_file_configuration.h"
#include "tile/base/config/layered_configuration.h" #include "tile/base/config/layered_configuration.h"
#include "tile/base/config/toml_configuration.h"
#endif// TILE_BASE_CONFIGURATION_H #endif// TILE_BASE_CONFIGURATION_H

View File

@ -75,6 +75,8 @@ public:
// const char* // const char*
Slice(const char *c_str) : data_(c_str), len_(strlen(c_str)) {} Slice(const char *c_str) : data_(c_str), len_(strlen(c_str)) {}
Slice(const void *data, size_t len) : data_(reinterpret_cast<const char *>(data)), len_(len) {}
constexpr Slice(const char *begin, const char *end) : data_(begin), len_(end - begin) {} constexpr Slice(const char *begin, const char *end) : data_(begin), len_(end - begin) {}
constexpr Slice(const char *data, size_t len) : data_(data), len_(len) {} constexpr Slice(const char *data, size_t len) : data_(data), len_(len) {}

View File

@ -38,6 +38,15 @@
#include "tile/base/variant.h" #include "tile/base/variant.h"
#include "tile/base/write_mostly.h" #include "tile/base/write_mostly.h"
// Sync
#include "tile/base/thread/cond_var.h"
#include "tile/base/thread/event.h"
#include "tile/base/thread/latch.h"
#include "tile/base/thread/mutex.h"
#include "tile/base/thread/rw_mutex.h"
#include "tile/base/thread/scoped_lock.h"
#include "tile/base/thread/unique_lock.h"
// util // util
#include "tile/base/configuration.h" #include "tile/base/configuration.h"
@ -49,4 +58,7 @@
// Tile Init // Tile Init
#include "tile/init.h" #include "tile/init.h"
// sigslot
#include "sigslot/sigslot.h"
#endif// TILE_TILE_H #endif// TILE_TILE_H