File tree Expand file tree Collapse file tree 4 files changed +21
-10
lines changed Expand file tree Collapse file tree 4 files changed +21
-10
lines changed Original file line number Diff line number Diff line change 22
22
rustup-components : rustfmt
23
23
target : ${{ matrix.target }}
24
24
manylinux : musllinux_1_2
25
- args : --release --out dist --interpreter '3.7 3.8 3.9 3.10 3.11 3.12 3.13 pypy3.9 pypy3.10'
25
+ args : --release --no-default-features --features bindgen-static -- out dist --interpreter '3.7 3.8 3.9 3.10 3.11 3.12 3.13 pypy3.9 pypy3.10'
26
26
container : congyuwang/musllinux_1_2_x86_64:llvm-19.1.3
27
27
before-script-linux : |
28
28
apk update
46
46
docker run --rm -v ${{ github.workspace }}/dist:/dist:ro -v ${{ github.workspace }}/test:/test:ro congyuwang/musllinux_1_2_x86_64:llvm-19.1.3 bash -c "
47
47
python3.12 -m pip install rocksdict --no-index --find-links /dist --force-reinstall || true
48
48
python3.12 -m pip install speedict --no-index --find-links /dist --force-reinstall || true
49
- python -m unittest discover -v /test"
49
+ python3.12 -m unittest discover -v /test"
50
50
- name : Upload artifacts
51
51
uses : actions/upload-artifact@v4
52
52
with :
70
70
rustup-components : rustfmt
71
71
target : ${{ matrix.target }}
72
72
manylinux : musllinux_1_2
73
- args : --release --out dist --interpreter '3.7 3.8 3.9 3.10 3.11 3.12 3.13 pypy3.9 pypy3.10'
73
+ args : --release --no-default-features --features bindgen-static -- out dist --interpreter '3.7 3.8 3.9 3.10 3.11 3.12 3.13 pypy3.9 pypy3.10'
74
74
container : congyuwang/musllinux_1_2_aarch64:llvm-19.1.3
75
75
before-script-linux : |
76
76
apk update
94
94
docker run --rm -v ${{ github.workspace }}/dist:/dist:ro -v ${{ github.workspace }}/test:/test:ro congyuwang/musllinux_1_2_aarch64:llvm-19.1.3 bash -c "
95
95
python3.12 -m pip install rocksdict --no-index --find-links /dist --force-reinstall || true
96
96
python3.12 -m pip install speedict --no-index --find-links /dist --force-reinstall || true
97
- python -m unittest discover -v /test"
97
+ python3.12 -m unittest discover -v /test"
98
98
- name : Upload artifacts
99
99
uses : actions/upload-artifact@v4
100
100
with :
Original file line number Diff line number Diff line change 22
22
rustup-components : rustfmt
23
23
target : ${{ matrix.target }}
24
24
manylinux : musllinux_1_2
25
- args : --release --out dist --interpreter '3.7 3.8 3.9 3.10 3.11 3.12 3.13 pypy3.9 pypy3.10'
25
+ args : --release --no-default-features --features bindgen-static -- out dist --interpreter '3.7 3.8 3.9 3.10 3.11 3.12 3.13 pypy3.9 pypy3.10'
26
26
container : congyuwang/musllinux_1_2_x86_64:llvm-19.1.3
27
27
before-script-linux : |
28
28
apk update
46
46
docker run --rm -v ${{ github.workspace }}/dist:/dist:ro -v ${{ github.workspace }}/test:/test:ro congyuwang/musllinux_1_2_x86_64:llvm-19.1.3 bash -c "
47
47
python3.12 -m pip install rocksdict --no-index --find-links /dist --force-reinstall || true
48
48
python3.12 -m pip install speedict --no-index --find-links /dist --force-reinstall || true
49
- python -m unittest discover -v /test"
49
+ python3.12 -m unittest discover -v /test"
50
50
- name : Upload artifacts
51
51
uses : actions/upload-artifact@v4
52
52
with :
70
70
rustup-components : rustfmt
71
71
target : ${{ matrix.target }}
72
72
manylinux : musllinux_1_2
73
- args : --release --out dist --interpreter '3.7 3.8 3.9 3.10 3.11 3.12 3.13 pypy3.9 pypy3.10'
73
+ args : --release --no-default-features --features bindgen-static -- out dist --interpreter '3.7 3.8 3.9 3.10 3.11 3.12 3.13 pypy3.9 pypy3.10'
74
74
container : congyuwang/musllinux_1_2_aarch64:llvm-19.1.3
75
75
before-script-linux : |
76
76
apk update
94
94
docker run --rm -v ${{ github.workspace }}/dist:/dist:ro -v ${{ github.workspace }}/test:/test:ro congyuwang/musllinux_1_2_aarch64:llvm-19.1.3 bash -c "
95
95
python3.12 -m pip install rocksdict --no-index --find-links /dist --force-reinstall || true
96
96
python3.12 -m pip install speedict --no-index --find-links /dist --force-reinstall || true
97
- python -m unittest discover -v /test"
97
+ python3.12 -m unittest discover -v /test"
98
98
- name : Upload artifacts
99
99
uses : actions/upload-artifact@v4
100
100
with :
Original file line number Diff line number Diff line change @@ -16,13 +16,24 @@ path = "bin/create-cf-db/main.rs"
16
16
test = false
17
17
18
18
[dependencies ]
19
- rocksdb = { path = " rust-rocksdb" }
19
+ rocksdb = { path = " rust-rocksdb" , default-features = false , features = [
20
+ " snappy" ,
21
+ " lz4" ,
22
+ " zstd" ,
23
+ " zlib" ,
24
+ " bzip2" ,
25
+ ] }
20
26
librocksdb-sys = { path = " rust-rocksdb/librocksdb-sys" }
21
27
serde = { version = " 1" , features = [" derive" ] }
22
28
serde_json = " 1"
23
29
num-bigint = " 0.4"
24
30
libc = " 0.2"
25
31
32
+ [features ]
33
+ default = [" bindgen-runtime" ]
34
+ bindgen-runtime = [" rocksdb/bindgen-runtime" ]
35
+ bindgen-static = [" rocksdb/bindgen-static" ]
36
+
26
37
[dependencies .pyo3 ]
27
38
version = " 0.22"
28
39
features = [" py-clone" , " extension-module" , " num-bigint" ]
You can’t perform that action at this time.
0 commit comments