Skip to content

Commit 9934439

Browse files
committed
refactor: reduce runtime dependencies
1 parent 9f086f2 commit 9934439

75 files changed

Lines changed: 623 additions & 484 deletions

Some content is hidden

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

.github/workflows/ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
# 1
1313
check:
1414
name: Rust project check
15-
runs-on: ubuntu-latest
15+
runs-on: [self-hosted, Linux, X64]
1616
steps:
1717
- uses: actions/checkout@v2
1818
- name: Install latest nightly
@@ -41,7 +41,7 @@ jobs:
4141
# 2
4242
fmt:
4343
name: Rust fmt
44-
runs-on: ubuntu-latest
44+
runs-on: [self-hosted, Linux, X64]
4545
steps:
4646
- uses: actions/checkout@v2
4747
- name: Install latest nightly
@@ -59,7 +59,7 @@ jobs:
5959
# 3
6060
e2e:
6161
name: Rust e2e sqllogictest
62-
runs-on: ubuntu-latest
62+
runs-on: [self-hosted, Linux, X64]
6363
steps:
6464
- uses: actions/checkout@v2
6565
- name: Install latest nightly
@@ -80,7 +80,7 @@ jobs:
8080
# 4
8181
wasm-tests:
8282
name: Wasm cargo tests
83-
runs-on: ubuntu-latest
83+
runs-on: [self-hosted, Linux, X64]
8484
steps:
8585
- uses: actions/checkout@v2
8686

@@ -106,7 +106,7 @@ jobs:
106106
# 5
107107
wasm-examples:
108108
name: Wasm examples (nodejs)
109-
runs-on: ubuntu-latest
109+
runs-on: [self-hosted, Linux, X64]
110110
steps:
111111
- uses: actions/checkout@v2
112112

@@ -135,7 +135,7 @@ jobs:
135135
# 6
136136
native-examples:
137137
name: Native examples
138-
runs-on: ubuntu-latest
138+
runs-on: [self-hosted, Linux, X64]
139139
steps:
140140
- uses: actions/checkout@v2
141141

@@ -150,7 +150,7 @@ jobs:
150150
# 7
151151
python-tests:
152152
name: Python bindings tests
153-
runs-on: ubuntu-latest
153+
runs-on: [self-hosted, Linux, X64]
154154
steps:
155155
- uses: actions/checkout@v2
156156

Cargo.lock

Lines changed: 5 additions & 126 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ lmdb = ["dep:lmdb", "dep:lmdb-sys"]
3737
pprof = ["pprof/criterion", "pprof/flamegraph"]
3838
python = ["parser", "dep:pyo3"]
3939
shell = ["parser", "dep:comfy-table", "dep:rustyline"]
40+
wasm = [
41+
"dep:js-sys",
42+
"dep:wasm-bindgen",
43+
"parser",
44+
]
4045

4146
[[bench]]
4247
name = "query_bench"
@@ -45,17 +50,10 @@ harness = false
4550
required-features = ["pprof"]
4651

4752
[dependencies]
48-
ahash = { version = "0.8" }
4953
bumpalo = { version = "3", default-features = false, features = ["collections"] }
50-
byteorder = { version = "1" }
51-
fixedbitset = { version = "0.4" }
52-
itertools = { version = "0.12" }
5354
ordered-float = { version = "4" }
5455
paste = { version = "1" }
55-
recursive = { version = "0.1" }
5656
kite_sql_serde_macros = { version = "0.2.1", path = "kite_sql_serde_macros" }
57-
siphasher = { version = "1" }
58-
ulid = { version = "1" }
5957

6058
# Optional dependencies for features
6159
comfy-table = { version = "7", default-features = false, optional = true }
@@ -84,16 +82,8 @@ rocksdb = { version = "0.23", optional = true, default-features = false, feature
8482
rustyline = { version = "14", default-features = false, optional = true }
8583

8684
[target.'cfg(target_arch = "wasm32")'.dependencies]
87-
wasm-bindgen = { version = "0.2.106" }
88-
web-sys = { version = "0.3.83", features = [
89-
"Storage",
90-
"Window",
91-
] }
92-
base64 = { version = "0.21" }
93-
getrandom = { version = "0.2", features = ["js"] }
94-
getrandom_03 = { package = "getrandom", version = "0.3", features = ["wasm_js"] }
95-
js-sys = { version = "0.3.83" }
96-
once_cell = { version = "1" }
85+
wasm-bindgen = { version = "0.2.106", optional = true }
86+
js-sys = { version = "0.3.83", optional = true }
9787

9888
[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
9989
wasm-bindgen-test = "0.3.56"

0 commit comments

Comments
 (0)