Skip to content

Commit 815e55e

Browse files
author
dev
committed
Initial commit
0 parents  commit 815e55e

File tree

1,291 files changed

+185445
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,291 files changed

+185445
-0
lines changed

.cargo/config.toml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[build]
2+
rustflags = ["-Clinker=clang++-14", "-Clink-arg=-fuse-ld=lld"]

.clang-format

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
BasedOnStyle: Google
2+
Language: Cpp
3+
Standard: c++20
4+
AlignAfterOpenBracket: Align
5+
AlignEscapedNewlines: Left
6+
AlignTrailingComments: true
7+
AllowAllArgumentsOnNextLine: false
8+
AllowAllParametersOfDeclarationOnNextLine: false
9+
AlwaysBreakAfterReturnType: None
10+
AlwaysBreakTemplateDeclarations: true
11+
BinPackArguments: false
12+
BinPackParameters: false
13+
BitFieldColonSpacing: Both
14+
BreakConstructorInitializers: BeforeColon
15+
BreakInheritanceList: BeforeColon
16+
IndentWidth: 2
17+
PointerAlignment: Right
18+
DerivePointerAlignment: false
19+
ColumnLimit: 120
20+
PackConstructorInitializers: Never
21+
SpaceAfterTemplateKeyword: true
22+
23+
IncludeCategories:
24+
- Regex: 'Flat_generated\.h("|>)'
25+
Priority: 1000
26+
SortPriority: 1000
27+
- Regex: '"fbs/macros/'
28+
Priority: 1001
29+
SortPriority: 1001

.clang-tidy

+117
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
Checks: >
2+
-*,
3+
bugprone-undelegated-constructor,
4+
bugprone-argument-comment,
5+
bugprone-bad-signal-to-kill-thread,
6+
bugprone-bool-pointer-implicit-conversion,
7+
bugprone-copy-constructor-init,
8+
bugprone-dangling-handle,
9+
bugprone-forward-declaration-namespace,
10+
bugprone-fold-init-type,
11+
bugprone-inaccurate-erase,
12+
bugprone-incorrect-roundings,
13+
bugprone-infinite-loop,
14+
bugprone-integer-division,
15+
bugprone-macro-repeated-side-effects,
16+
bugprone-misplaced-operator-in-strlen-in-alloc,
17+
bugprone-misplaced-pointer-artithmetic-in-alloc,
18+
bugprone-misplaced-widening-cast,
19+
bugprone-move-forwarding-reference,
20+
bugprone-multiple-statement-macro,
21+
bugprone-parent-virtual-call,
22+
bugprone-posix-return,
23+
bugprone-reserved-identifier,
24+
bugprone-signed-char-misuse,
25+
bugprone-sizeof-container,
26+
bugprone-sizeof-expression,
27+
bugprone-string-constructor,
28+
bugprone-string-integer-assignment,
29+
bugprone-string-literal-with-embedded-nul,
30+
bugprone-suspicious-enum-usage,
31+
bugprone-suspicious-include,
32+
bugprone-suspicious-memset-usage,
33+
bugprone-suspicious-missing-comma,
34+
bugprone-suspicious-string-compare,
35+
bugprone-swapped-arguments,
36+
bugprone-terminating-continue,
37+
bugprone-throw-keyword-missing,
38+
bugprone-too-small-loop-variable,
39+
bugprone-undefined-memory-manipulation,
40+
bugprone-unhandled-self-assignment,
41+
bugprone-unused-raii,
42+
bugprone-unused-return-value,
43+
bugprone-use-after-move,
44+
bugprone-virtual-near-miss,
45+
# bugprone-macro-parentheses,
46+
# bugprone-narrowing-conversions,
47+
# bugprone-exception-escape,
48+
49+
performance-faster-string-find,
50+
performance-for-range-copy,
51+
performance-implicit-conversion-in-loop,
52+
performance-inefficient-algorithm,
53+
performance-inefficient-vector-operation,
54+
performance-move-constructor-init,
55+
performance-no-automatic-move,
56+
performance-trivially-destructible,
57+
performance-unnecessary-copy-initialization,
58+
performance-move-const-arg,
59+
60+
modernize-avoid-bind,
61+
modernize-loop-convert,
62+
modernize-make-shared,
63+
modernize-make-unique,
64+
modernize-raw-string-literal,
65+
modernize-redundant-void-arg,
66+
modernize-replace-auto-ptr,
67+
modernize-replace-random-shuffle,
68+
modernize-use-auto,
69+
modernize-use-bool-literals,
70+
modernize-use-nullptr,
71+
modernize-use-using,
72+
modernize-use-override,
73+
modernize-use-equals-default,
74+
modernize-use-equals-delete,
75+
76+
misc-throw-by-value-catch-by-reference,
77+
misc-misplaced-const,
78+
misc-unconventional-assign-operator,
79+
misc-redundant-expression,
80+
misc-static-assert,
81+
misc-unconventional-assign-operator,
82+
misc-uniqueptr-reset-release,
83+
misc-unused-alias-decls,
84+
misc-unused-parameters,
85+
misc-unused-using-decls,
86+
87+
readability-avoid-const-params-in-decls
88+
readability-const-return-type,
89+
readability-container-size-empty,
90+
readability-delete-null-pointer,
91+
readability-deleted-default,
92+
readability-misplaced-array-index,
93+
readability-non-const-parameter,
94+
readability-redundant-control-flow,
95+
readability-redundant-function-ptr-dereference,
96+
readability-redundant-smartptr-get,
97+
readability-redundant-string-cstr,
98+
readability-redundant-string-init,
99+
readability-static-definition-in-anonymous-namespace,
100+
readability-string-compare,
101+
readability-uniqueptr-delete-release,
102+
readability-simplify-subscript-expr,
103+
readability-simplify-boolean-expr,
104+
readability-inconsistent-declaration-parameter-name,
105+
# readability-qualified-auto,
106+
107+
cert-flp30-c,
108+
cert-mem57-cpp,
109+
cert-oop58-cpp,
110+
google-build-explicit-make-pair,
111+
google-runtime-operator,
112+
hicpp-exception-baseclass,
113+
cppcoreguidelines-virtual-class-destructor,
114+
WarningsAsErrors: ""
115+
CheckOptions:
116+
- key: performance-move-const-arg.CheckTriviallyCopyableMove
117+
value: false

.clangd

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
CompileFlags:
2+
Add: -fcoroutines-ts
3+
Remove: [-fcoroutines, -DNO_INTELLISENSE]

.dockerignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
clang
2+
build
3+
deploy/*/Dockerfile

.github/workflows/build.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
7+
jobs:
8+
build:
9+
runs-on: self-hosted # or `ubuntu-22.04`
10+
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- name: Configure sccache-cache
15+
run: |
16+
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
17+
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
18+
19+
- name: Run sccache-cache
20+
uses: mozilla-actions/sccache-action@v0.0.4
21+
22+
- name: Prepare
23+
run: |
24+
sudo apt install -y cmake libuv1-dev liblz4-dev liblzma-dev libdouble-conversion-dev libprocps-dev libdwarf-dev libunwind-dev
25+
sudo apt install -y libaio-dev libgflags-dev libgoogle-glog-dev libgtest-dev libgmock-dev clang-format-14 clang-14 clang-tidy-14 lld-14
26+
sudo apt install -y libgoogle-perftools-dev google-perftools libssl-dev ccache gcc-12 g++-12 libboost-all-dev meson rustc cargo
27+
wget https://github.com/apple/foundationdb/releases/download/7.1.61/foundationdb-clients_7.1.61-1_amd64.deb && sudo dpkg -i foundationdb-clients_7.1.61-1_amd64.deb
28+
git clone https://github.com/libfuse/libfuse.git libfuse -b fuse-3.16.2 --depth 1 && mkdir libfuse/build && cd libfuse/build && meson setup .. && ninja && sudo ninja install && cd ../.. && rm -rf libfuse
29+
git submodule update --init --recursive
30+
./patches/apply.sh
31+
32+
- name: Build
33+
run: |
34+
cargo build --release
35+
cmake -S . -B build -DCMAKE_CXX_COMPILER=clang++-14 -DCMAKE_C_COMPILER=clang-14 -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
36+
cmake --build build -j 32

.gitignore

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/.cache
2+
/.vscode
3+
/build
4+
/debug
5+
/release
6+
/clang
7+
/clangdbg
8+
/packages
9+
*.o
10+
*.a
11+
*.so
12+
*.log
13+
compile_commands.json
14+
*_generated.h
15+
*~
16+
__pycache__
17+
/target

.gitmodules

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
[submodule "third_party/googletest"]
2+
path = third_party/googletest
3+
url = https://github.com/google/googletest.git
4+
[submodule "third_party/folly"]
5+
path = third_party/folly
6+
url = https://github.com/facebook/folly.git
7+
[submodule "third_party/leveldb"]
8+
path = third_party/leveldb
9+
url = https://github.com/google/leveldb.git
10+
[submodule "third_party/rocksdb"]
11+
path = third_party/rocksdb
12+
url = https://github.com/facebook/rocksdb.git
13+
[submodule "third_party/scnlib"]
14+
path = third_party/scnlib
15+
url = https://github.com/eliaskosunen/scnlib.git
16+
[submodule "third_party/pybind11"]
17+
path = third_party/pybind11
18+
url = https://github.com/pybind/pybind11.git
19+
[submodule "third_party/clickhouse-cpp"]
20+
path = third_party/clickhouse-cpp
21+
url = https://github.com/ClickHouse/clickhouse-cpp.git
22+
[submodule "third_party/fmt"]
23+
path = third_party/fmt
24+
url = https://github.com/fmtlib/fmt.git
25+
[submodule "third_party/toml11"]
26+
path = third_party/toml11
27+
url = https://github.com/ToruNiina/toml11.git
28+
[submodule "third_party/jemalloc"]
29+
path = third_party/jemalloc
30+
url = https://github.com/jemalloc/jemalloc.git
31+
[submodule "third_party/mimalloc"]
32+
path = third_party/mimalloc
33+
url = https://github.com/microsoft/mimalloc.git
34+
[submodule "third_party/zstd"]
35+
path = third_party/zstd
36+
url = https://github.com/facebook/zstd.git
37+
[submodule "third_party/liburing"]
38+
path = third_party/liburing
39+
url = https://github.com/axboe/liburing.git
40+
[submodule "third_party/gtest-parallel"]
41+
path = third_party/gtest-parallel
42+
url = https://github.com/google/gtest-parallel.git

0 commit comments

Comments
 (0)