hidefix 0.12.0__tar.gz → 0.13.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {hidefix-0.12.0 → hidefix-0.13.0}/.envrc +4 -4
- {hidefix-0.12.0 → hidefix-0.13.0}/.github/workflows/python.yml +70 -69
- {hidefix-0.12.0 → hidefix-0.13.0}/.github/workflows/rust.yml +130 -130
- {hidefix-0.12.0 → hidefix-0.13.0}/.gitignore +71 -71
- {hidefix-0.12.0 → hidefix-0.13.0}/Cargo.lock +3504 -2521
- {hidefix-0.12.0 → hidefix-0.13.0}/Cargo.toml +7 -7
- {hidefix-0.12.0 → hidefix-0.13.0}/LICENSE +8 -8
- hidefix-0.13.0/PKG-INFO +11 -0
- {hidefix-0.12.0 → hidefix-0.13.0}/README.md +91 -91
- {hidefix-0.12.0 → hidefix-0.13.0}/benches/concurrency.rs +135 -135
- {hidefix-0.12.0 → hidefix-0.13.0}/benches/dataset.rs +19 -19
- {hidefix-0.12.0 → hidefix-0.13.0}/benches/index.rs +12 -12
- {hidefix-0.12.0 → hidefix-0.13.0}/benches/large.rs +175 -175
- {hidefix-0.12.0 → hidefix-0.13.0}/benches/native.rs +61 -61
- {hidefix-0.12.0 → hidefix-0.13.0}/benches/norkyst.rs +59 -59
- {hidefix-0.12.0 → hidefix-0.13.0}/benches/read.rs +72 -72
- {hidefix-0.12.0 → hidefix-0.13.0}/benches/serialize.rs +237 -237
- {hidefix-0.12.0 → hidefix-0.13.0}/benches/stream.rs +93 -93
- {hidefix-0.12.0 → hidefix-0.13.0}/codecov.yml +8 -8
- {hidefix-0.12.0 → hidefix-0.13.0}/examples/read_hfx_cache.rs +21 -21
- {hidefix-0.12.0 → hidefix-0.13.0}/examples/read_hfx_concurrent.rs +43 -43
- {hidefix-0.12.0 → hidefix-0.13.0}/examples/read_hfx_parallel.rs +25 -25
- {hidefix-0.12.0 → hidefix-0.13.0}/examples/read_native_hdf5.rs +18 -18
- {hidefix-0.12.0 → hidefix-0.13.0}/pyproject.toml +30 -30
- {hidefix-0.12.0 → hidefix-0.13.0}/python/hidefix/__init__.py +8 -8
- {hidefix-0.12.0 → hidefix-0.13.0}/python/hidefix/xarray.py +198 -198
- {hidefix-0.12.0 → hidefix-0.13.0}/src/bin/hfxidx.rs +52 -52
- {hidefix-0.12.0 → hidefix-0.13.0}/src/bin/hfxlst.rs +62 -62
- {hidefix-0.12.0 → hidefix-0.13.0}/src/extent.rs +686 -684
- {hidefix-0.12.0 → hidefix-0.13.0}/src/filters/byteorder.rs +215 -215
- {hidefix-0.12.0 → hidefix-0.13.0}/src/filters/gzip.rs +9 -9
- {hidefix-0.12.0 → hidefix-0.13.0}/src/filters/shuffle.rs +247 -247
- {hidefix-0.12.0 → hidefix-0.13.0}/src/filters/xdr.rs +130 -130
- {hidefix-0.12.0 → hidefix-0.13.0}/src/filters.rs +4 -4
- {hidefix-0.12.0 → hidefix-0.13.0}/src/idx/chunk.rs +431 -431
- {hidefix-0.12.0 → hidefix-0.13.0}/src/idx/dataset/any.rs +152 -152
- {hidefix-0.12.0 → hidefix-0.13.0}/src/idx/dataset/dataset.rs +662 -664
- {hidefix-0.12.0 → hidefix-0.13.0}/src/idx/dataset/types.rs +37 -37
- {hidefix-0.12.0 → hidefix-0.13.0}/src/idx/dataset.rs +377 -377
- {hidefix-0.12.0 → hidefix-0.13.0}/src/idx/index.rs +320 -320
- {hidefix-0.12.0 → hidefix-0.13.0}/src/idx/serde.rs +99 -99
- {hidefix-0.12.0 → hidefix-0.13.0}/src/idx.rs +82 -82
- {hidefix-0.12.0 → hidefix-0.13.0}/src/lib.rs +90 -92
- {hidefix-0.12.0 → hidefix-0.13.0}/src/python.rs +358 -344
- {hidefix-0.12.0 → hidefix-0.13.0}/src/reader/cache.rs +187 -187
- {hidefix-0.12.0 → hidefix-0.13.0}/src/reader/chunk.rs +73 -73
- {hidefix-0.12.0 → hidefix-0.13.0}/src/reader/dataset.rs +222 -222
- {hidefix-0.12.0 → hidefix-0.13.0}/src/reader/direct.rs +193 -193
- hidefix-0.13.0/src/reader/s3.rs +309 -0
- {hidefix-0.12.0 → hidefix-0.13.0}/src/reader/stream.rs +201 -201
- {hidefix-0.12.0 → hidefix-0.13.0}/src/reader.rs +9 -7
- {hidefix-0.12.0 → hidefix-0.13.0}/tests/conftest.py +34 -34
- {hidefix-0.12.0 → hidefix-0.13.0}/tests/data/gzip_shuffle_2d.py +11 -11
- hidefix-0.13.0/tests/docker-compose.minio.yml +9 -0
- {hidefix-0.12.0 → hidefix-0.13.0}/tests/python/test_index.py +16 -16
- {hidefix-0.12.0 → hidefix-0.13.0}/tests/python/test_netcdf.py +19 -19
- {hidefix-0.12.0 → hidefix-0.13.0}/tests/python/test_read.py +12 -12
- {hidefix-0.12.0 → hidefix-0.13.0}/tests/python/test_slice.py +53 -53
- {hidefix-0.12.0 → hidefix-0.13.0}/tests/python/test_xarray_backend.py +55 -55
- {hidefix-0.12.0 → hidefix-0.13.0}/tests/python/test_xarray_group.py +29 -29
- {hidefix-0.12.0 → hidefix-0.13.0}/tests/python/test_xarray_large.py +43 -43
- {hidefix-0.12.0 → hidefix-0.13.0}/tests/read_dims.rs +97 -97
- {hidefix-0.12.0 → hidefix-0.13.0}/tests/read_double.rs +39 -39
- {hidefix-0.12.0 → hidefix-0.13.0}/tests/read_norkyst.rs +172 -172
- hidefix-0.13.0/tests/read_s3.rs +276 -0
- {hidefix-0.12.0 → hidefix-0.13.0}/tests/read_strings.rs +18 -18
- {hidefix-0.12.0 → hidefix-0.13.0}/tests/read_svim.rs +71 -71
- hidefix-0.12.0/PKG-INFO +0 -111
- {hidefix-0.12.0 → hidefix-0.13.0}/idefix.png +0 -0
- {hidefix-0.12.0 → hidefix-0.13.0}/tests/data/coads_climatology.nc4 +0 -0
- {hidefix-0.12.0 → hidefix-0.13.0}/tests/data/dmrpp/chunked_fourD.h5 +0 -0
- {hidefix-0.12.0 → hidefix-0.13.0}/tests/data/dmrpp/chunked_gzipped_twoD.h5 +0 -0
- {hidefix-0.12.0 → hidefix-0.13.0}/tests/data/dmrpp/chunked_oneD.h5 +0 -0
- {hidefix-0.12.0 → hidefix-0.13.0}/tests/data/dmrpp/chunked_shuffled_twoD.h5 +0 -0
- {hidefix-0.12.0 → hidefix-0.13.0}/tests/data/dmrpp/chunked_shufzip_twoD.h5 +0 -0
- {hidefix-0.12.0 → hidefix-0.13.0}/tests/data/dmrpp/chunked_string_array.h5 +0 -0
- {hidefix-0.12.0 → hidefix-0.13.0}/tests/data/dmrpp/chunked_threeD.h5 +0 -0
- {hidefix-0.12.0 → hidefix-0.13.0}/tests/data/dmrpp/chunked_twoD.h5 +0 -0
- {hidefix-0.12.0 → hidefix-0.13.0}/tests/data/dmrpp/t_float.h5 +0 -0
- {hidefix-0.12.0 → hidefix-0.13.0}/tests/data/dmrpp/t_int_scalar.h5 +0 -0
- {hidefix-0.12.0 → hidefix-0.13.0}/tests/data/feb.nc4 +0 -0
- {hidefix-0.12.0 → hidefix-0.13.0}/tests/data/gzip_shuffle_2d.h5 +0 -0
- {hidefix-0.12.0 → hidefix-0.13.0}/tests/data/jan.nc4 +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export RUSTFLAGS="-C target-cpu=native"
|
|
2
|
-
#export HIDEFIX_LARGE_FILE="tests/data/barents_zdepth_m00_FC.nc"
|
|
3
|
-
#export HIDEFIX_LARGE_VAR="u"
|
|
4
|
-
# export LD_LIBRARY_PATH=/home/gauteh/.mconda3/envs/opendrift/lib
|
|
1
|
+
export RUSTFLAGS="-C target-cpu=native"
|
|
2
|
+
#export HIDEFIX_LARGE_FILE="tests/data/barents_zdepth_m00_FC.nc"
|
|
3
|
+
#export HIDEFIX_LARGE_VAR="u"
|
|
4
|
+
# export LD_LIBRARY_PATH=/home/gauteh/.mconda3/envs/opendrift/lib
|
|
@@ -1,69 +1,70 @@
|
|
|
1
|
-
name: Python
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
tags:
|
|
6
|
-
- '**'
|
|
7
|
-
branches:
|
|
8
|
-
- main
|
|
9
|
-
pull_request:
|
|
10
|
-
branches:
|
|
11
|
-
- main
|
|
12
|
-
|
|
13
|
-
jobs:
|
|
14
|
-
test:
|
|
15
|
-
runs-on: ${{matrix.platform}}
|
|
16
|
-
strategy:
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
- {platform: ubuntu-latest, rust:
|
|
21
|
-
- {platform:
|
|
22
|
-
- {platform:
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
1
|
+
name: Python
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- '**'
|
|
7
|
+
branches:
|
|
8
|
+
- main
|
|
9
|
+
pull_request:
|
|
10
|
+
branches:
|
|
11
|
+
- main
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
test:
|
|
15
|
+
runs-on: ${{matrix.platform}}
|
|
16
|
+
strategy:
|
|
17
|
+
fail-fast: false
|
|
18
|
+
matrix:
|
|
19
|
+
include:
|
|
20
|
+
- {platform: ubuntu-latest, rust: nightly}
|
|
21
|
+
- {platform: ubuntu-latest, rust: stable}
|
|
22
|
+
- {platform: ubuntu-24.04-arm, rust: stable}
|
|
23
|
+
- {platform: windows-latest, rust: nightly}
|
|
24
|
+
- {platform: macos-latest, rust: nightly}
|
|
25
|
+
steps:
|
|
26
|
+
- uses: actions/checkout@v3
|
|
27
|
+
- uses: actions/setup-python@v4
|
|
28
|
+
with:
|
|
29
|
+
python-version: "3.10"
|
|
30
|
+
- name: Build wheels
|
|
31
|
+
uses: PyO3/maturin-action@v1
|
|
32
|
+
with:
|
|
33
|
+
rust-toolchain: '${{matrix.rust}}'
|
|
34
|
+
manylinux: auto
|
|
35
|
+
args: --release --sdist --out dist
|
|
36
|
+
- name: Install built wheel
|
|
37
|
+
# if: matrix.target == 'x86_64'
|
|
38
|
+
run: |
|
|
39
|
+
pip install numpy xarray netCDF4
|
|
40
|
+
pip install hidefix --no-index --find-links dist --force-reinstall --no-deps
|
|
41
|
+
python -c "import hidefix"
|
|
42
|
+
- name: Run tests
|
|
43
|
+
# if: matrix.target == 'x86_64'
|
|
44
|
+
run: |
|
|
45
|
+
pip install pytest pytest-benchmark dask
|
|
46
|
+
pytest -v --log-cli-level=debug -s
|
|
47
|
+
- name: Upload wheels
|
|
48
|
+
uses: actions/upload-artifact@v4
|
|
49
|
+
with:
|
|
50
|
+
name: wheels-${{matrix.platform}}-${{matrix.rust}}
|
|
51
|
+
path: dist
|
|
52
|
+
|
|
53
|
+
release:
|
|
54
|
+
name: Release
|
|
55
|
+
runs-on: ubuntu-latest
|
|
56
|
+
if: "startsWith(github.ref, 'refs/tags/')"
|
|
57
|
+
needs: [ test ]
|
|
58
|
+
environment: pypi
|
|
59
|
+
permissions:
|
|
60
|
+
id-token: write # trusted publishing (OIDC)
|
|
61
|
+
steps:
|
|
62
|
+
- uses: actions/download-artifact@v4
|
|
63
|
+
with:
|
|
64
|
+
pattern: wheels-*
|
|
65
|
+
merge-multiple: true
|
|
66
|
+
path: dist
|
|
67
|
+
- name: Publish to PyPI
|
|
68
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
69
|
+
with:
|
|
70
|
+
skip-existing: true
|
|
@@ -1,130 +1,130 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: Rust
|
|
3
|
-
|
|
4
|
-
on:
|
|
5
|
-
push:
|
|
6
|
-
branches:
|
|
7
|
-
- main
|
|
8
|
-
pull_request:
|
|
9
|
-
branches:
|
|
10
|
-
- main
|
|
11
|
-
|
|
12
|
-
env:
|
|
13
|
-
CARGO_TERM_COLOR: always
|
|
14
|
-
|
|
15
|
-
jobs:
|
|
16
|
-
lint:
|
|
17
|
-
name: ${{matrix.command}}
|
|
18
|
-
runs-on: ubuntu-latest
|
|
19
|
-
strategy:
|
|
20
|
-
fail-fast: false
|
|
21
|
-
matrix:
|
|
22
|
-
include:
|
|
23
|
-
- {command: fmt, rust: nightly}
|
|
24
|
-
- {command: clippy, rust: nightly}
|
|
25
|
-
- {command: doc, rust: nightly}
|
|
26
|
-
steps:
|
|
27
|
-
- name: Checkout repository
|
|
28
|
-
uses: actions/checkout@v3
|
|
29
|
-
- name: Install Rust (${{matrix.rust}})
|
|
30
|
-
uses: dtolnay/rust-toolchain@stable
|
|
31
|
-
with:
|
|
32
|
-
toolchain: '${{matrix.rust}}'
|
|
33
|
-
components: 'rustfmt, clippy'
|
|
34
|
-
- name: Run cargo ${{matrix.command}}
|
|
35
|
-
uses: actions-rs/cargo@v1
|
|
36
|
-
with:
|
|
37
|
-
command: ${{matrix.command}}
|
|
38
|
-
args: "${{matrix.command == 'fmt' && '--all -- --check' || matrix.command == 'doc' && '--workspace' || '--workspace -- -D warnings'}}"
|
|
39
|
-
|
|
40
|
-
test:
|
|
41
|
-
name: Test
|
|
42
|
-
runs-on: ${{matrix.platform}}
|
|
43
|
-
strategy:
|
|
44
|
-
fail-fast: false
|
|
45
|
-
matrix:
|
|
46
|
-
include:
|
|
47
|
-
- {platform: ubuntu-latest, rust: nightly}
|
|
48
|
-
- {platform: ubuntu-latest, rust: stable}
|
|
49
|
-
- {platform: windows-latest, rust: nightly}
|
|
50
|
-
- {platform: macos-latest, rust: nightly}
|
|
51
|
-
|
|
52
|
-
steps:
|
|
53
|
-
- name: Checkout repository
|
|
54
|
-
uses: actions/checkout@v3
|
|
55
|
-
- name: Install Rust (${{matrix.rust}})
|
|
56
|
-
uses: dtolnay/rust-toolchain@stable
|
|
57
|
-
with:
|
|
58
|
-
toolchain: '${{matrix.rust}}'
|
|
59
|
-
- name: Build and test all crates
|
|
60
|
-
run: cargo test -vv --workspace ${{matrix.rust == 'nightly' && '--features unstable' || '' }}
|
|
61
|
-
- name: Build and test all docs
|
|
62
|
-
run: cargo test -vv --workspace --doc ${{matrix.rust == 'nightly' && '--features unstable' || '' }}
|
|
63
|
-
- name: Build examples
|
|
64
|
-
run: cargo b --examples --verbose ${{matrix.rust == 'nightly' && '--features unstable' || '' }}
|
|
65
|
-
|
|
66
|
-
bench:
|
|
67
|
-
name: Benchmark
|
|
68
|
-
runs-on: ubuntu-${{matrix.ubuntu}}
|
|
69
|
-
strategy:
|
|
70
|
-
fail-fast: false
|
|
71
|
-
matrix:
|
|
72
|
-
include:
|
|
73
|
-
- {ubuntu: latest, rust: nightly}
|
|
74
|
-
steps:
|
|
75
|
-
- name: Checkout repository
|
|
76
|
-
uses: actions/checkout@v3
|
|
77
|
-
- name: Install Rust (${{matrix.rust}})
|
|
78
|
-
uses: dtolnay/rust-toolchain@stable
|
|
79
|
-
with:
|
|
80
|
-
toolchain: '${{matrix.rust}}'
|
|
81
|
-
- name: Build and bench
|
|
82
|
-
run: cargo bench -vv --workspace --features unstable
|
|
83
|
-
|
|
84
|
-
audit:
|
|
85
|
-
name: Audit
|
|
86
|
-
runs-on: ubuntu-latest
|
|
87
|
-
steps:
|
|
88
|
-
- name: Checkout repository
|
|
89
|
-
uses: actions/checkout@v3
|
|
90
|
-
- name: Install Rust
|
|
91
|
-
uses: dtolnay/rust-toolchain@stable
|
|
92
|
-
with:
|
|
93
|
-
toolchain: nightly
|
|
94
|
-
- name: Install cargo audit
|
|
95
|
-
run: cargo install cargo-audit
|
|
96
|
-
- name: Run cargo audit
|
|
97
|
-
run: cargo audit
|
|
98
|
-
|
|
99
|
-
codecov:
|
|
100
|
-
name: Code coverage
|
|
101
|
-
runs-on: ubuntu-latest
|
|
102
|
-
steps:
|
|
103
|
-
- name: Checkout repository
|
|
104
|
-
uses: actions/checkout@v3
|
|
105
|
-
- name: Install Rust
|
|
106
|
-
uses: dtolnay/rust-toolchain@stable
|
|
107
|
-
with:
|
|
108
|
-
toolchain: nightly
|
|
109
|
-
- name: Install tarpaulin
|
|
110
|
-
run: cargo install cargo-tarpaulin
|
|
111
|
-
- name: Run code coverage
|
|
112
|
-
run: cargo tarpaulin --verbose --out xml --ignore-tests
|
|
113
|
-
- name: Upload code coverage
|
|
114
|
-
run: bash <(curl -s https://codecov.io/bash)
|
|
115
|
-
|
|
116
|
-
addr_san:
|
|
117
|
-
name: Address sanitizer
|
|
118
|
-
runs-on: ubuntu-latest
|
|
119
|
-
steps:
|
|
120
|
-
- name: Checkout repository
|
|
121
|
-
uses: actions/checkout@v3
|
|
122
|
-
- name: Install Rust
|
|
123
|
-
uses: dtolnay/rust-toolchain@stable
|
|
124
|
-
with:
|
|
125
|
-
toolchain: nightly
|
|
126
|
-
- name: Run test with sanitizer
|
|
127
|
-
env:
|
|
128
|
-
RUSTFLAGS: "-Z sanitizer=address"
|
|
129
|
-
RUSTDOCFLAGS: "-Z sanitizer=address"
|
|
130
|
-
run: cargo test --target x86_64-unknown-linux-gnu --workspace
|
|
1
|
+
---
|
|
2
|
+
name: Rust
|
|
3
|
+
|
|
4
|
+
on:
|
|
5
|
+
push:
|
|
6
|
+
branches:
|
|
7
|
+
- main
|
|
8
|
+
pull_request:
|
|
9
|
+
branches:
|
|
10
|
+
- main
|
|
11
|
+
|
|
12
|
+
env:
|
|
13
|
+
CARGO_TERM_COLOR: always
|
|
14
|
+
|
|
15
|
+
jobs:
|
|
16
|
+
lint:
|
|
17
|
+
name: ${{matrix.command}}
|
|
18
|
+
runs-on: ubuntu-latest
|
|
19
|
+
strategy:
|
|
20
|
+
fail-fast: false
|
|
21
|
+
matrix:
|
|
22
|
+
include:
|
|
23
|
+
- {command: fmt, rust: nightly}
|
|
24
|
+
- {command: clippy, rust: nightly}
|
|
25
|
+
- {command: doc, rust: nightly}
|
|
26
|
+
steps:
|
|
27
|
+
- name: Checkout repository
|
|
28
|
+
uses: actions/checkout@v3
|
|
29
|
+
- name: Install Rust (${{matrix.rust}})
|
|
30
|
+
uses: dtolnay/rust-toolchain@stable
|
|
31
|
+
with:
|
|
32
|
+
toolchain: '${{matrix.rust}}'
|
|
33
|
+
components: 'rustfmt, clippy'
|
|
34
|
+
- name: Run cargo ${{matrix.command}}
|
|
35
|
+
uses: actions-rs/cargo@v1
|
|
36
|
+
with:
|
|
37
|
+
command: ${{matrix.command}}
|
|
38
|
+
args: "${{matrix.command == 'fmt' && '--all -- --check' || matrix.command == 'doc' && '--workspace' || '--workspace -- -D warnings'}}"
|
|
39
|
+
|
|
40
|
+
test:
|
|
41
|
+
name: Test
|
|
42
|
+
runs-on: ${{matrix.platform}}
|
|
43
|
+
strategy:
|
|
44
|
+
fail-fast: false
|
|
45
|
+
matrix:
|
|
46
|
+
include:
|
|
47
|
+
- {platform: ubuntu-latest, rust: nightly}
|
|
48
|
+
- {platform: ubuntu-latest, rust: stable}
|
|
49
|
+
- {platform: windows-latest, rust: nightly}
|
|
50
|
+
- {platform: macos-latest, rust: nightly}
|
|
51
|
+
|
|
52
|
+
steps:
|
|
53
|
+
- name: Checkout repository
|
|
54
|
+
uses: actions/checkout@v3
|
|
55
|
+
- name: Install Rust (${{matrix.rust}})
|
|
56
|
+
uses: dtolnay/rust-toolchain@stable
|
|
57
|
+
with:
|
|
58
|
+
toolchain: '${{matrix.rust}}'
|
|
59
|
+
- name: Build and test all crates
|
|
60
|
+
run: cargo test -vv --workspace ${{matrix.rust == 'nightly' && '--features unstable' || '' }}
|
|
61
|
+
- name: Build and test all docs
|
|
62
|
+
run: cargo test -vv --workspace --doc ${{matrix.rust == 'nightly' && '--features unstable' || '' }}
|
|
63
|
+
- name: Build examples
|
|
64
|
+
run: cargo b --examples --verbose ${{matrix.rust == 'nightly' && '--features unstable' || '' }}
|
|
65
|
+
|
|
66
|
+
bench:
|
|
67
|
+
name: Benchmark
|
|
68
|
+
runs-on: ubuntu-${{matrix.ubuntu}}
|
|
69
|
+
strategy:
|
|
70
|
+
fail-fast: false
|
|
71
|
+
matrix:
|
|
72
|
+
include:
|
|
73
|
+
- {ubuntu: latest, rust: nightly}
|
|
74
|
+
steps:
|
|
75
|
+
- name: Checkout repository
|
|
76
|
+
uses: actions/checkout@v3
|
|
77
|
+
- name: Install Rust (${{matrix.rust}})
|
|
78
|
+
uses: dtolnay/rust-toolchain@stable
|
|
79
|
+
with:
|
|
80
|
+
toolchain: '${{matrix.rust}}'
|
|
81
|
+
- name: Build and bench
|
|
82
|
+
run: cargo bench -vv --workspace --features unstable
|
|
83
|
+
|
|
84
|
+
audit:
|
|
85
|
+
name: Audit
|
|
86
|
+
runs-on: ubuntu-latest
|
|
87
|
+
steps:
|
|
88
|
+
- name: Checkout repository
|
|
89
|
+
uses: actions/checkout@v3
|
|
90
|
+
- name: Install Rust
|
|
91
|
+
uses: dtolnay/rust-toolchain@stable
|
|
92
|
+
with:
|
|
93
|
+
toolchain: nightly
|
|
94
|
+
- name: Install cargo audit
|
|
95
|
+
run: cargo install cargo-audit
|
|
96
|
+
- name: Run cargo audit
|
|
97
|
+
run: cargo audit
|
|
98
|
+
|
|
99
|
+
codecov:
|
|
100
|
+
name: Code coverage
|
|
101
|
+
runs-on: ubuntu-latest
|
|
102
|
+
steps:
|
|
103
|
+
- name: Checkout repository
|
|
104
|
+
uses: actions/checkout@v3
|
|
105
|
+
- name: Install Rust
|
|
106
|
+
uses: dtolnay/rust-toolchain@stable
|
|
107
|
+
with:
|
|
108
|
+
toolchain: nightly
|
|
109
|
+
- name: Install tarpaulin
|
|
110
|
+
run: cargo install cargo-tarpaulin
|
|
111
|
+
- name: Run code coverage
|
|
112
|
+
run: cargo tarpaulin --verbose --out xml --ignore-tests
|
|
113
|
+
- name: Upload code coverage
|
|
114
|
+
run: bash <(curl -s https://codecov.io/bash)
|
|
115
|
+
|
|
116
|
+
addr_san:
|
|
117
|
+
name: Address sanitizer
|
|
118
|
+
runs-on: ubuntu-latest
|
|
119
|
+
steps:
|
|
120
|
+
- name: Checkout repository
|
|
121
|
+
uses: actions/checkout@v3
|
|
122
|
+
- name: Install Rust
|
|
123
|
+
uses: dtolnay/rust-toolchain@stable
|
|
124
|
+
with:
|
|
125
|
+
toolchain: nightly
|
|
126
|
+
- name: Run test with sanitizer
|
|
127
|
+
env:
|
|
128
|
+
RUSTFLAGS: "-Z sanitizer=address"
|
|
129
|
+
RUSTDOCFLAGS: "-Z sanitizer=address"
|
|
130
|
+
run: cargo test --target x86_64-unknown-linux-gnu --workspace
|
|
@@ -1,71 +1,71 @@
|
|
|
1
|
-
/target
|
|
2
|
-
|
|
3
|
-
# Byte-compiled / optimized / DLL files
|
|
4
|
-
__pycache__/
|
|
5
|
-
.pytest_cache/
|
|
6
|
-
*.py[cod]
|
|
7
|
-
|
|
8
|
-
# C extensions
|
|
9
|
-
*.so
|
|
10
|
-
|
|
11
|
-
# Distribution / packaging
|
|
12
|
-
.Python
|
|
13
|
-
.venv/
|
|
14
|
-
env/
|
|
15
|
-
build/
|
|
16
|
-
develop-eggs/
|
|
17
|
-
dist/
|
|
18
|
-
eggs/
|
|
19
|
-
lib/
|
|
20
|
-
lib64/
|
|
21
|
-
parts/
|
|
22
|
-
sdist/
|
|
23
|
-
var/
|
|
24
|
-
include/
|
|
25
|
-
man/
|
|
26
|
-
venv/
|
|
27
|
-
*.egg-info/
|
|
28
|
-
.installed.cfg
|
|
29
|
-
*.egg
|
|
30
|
-
|
|
31
|
-
# Installer logs
|
|
32
|
-
pip-log.txt
|
|
33
|
-
pip-delete-this-directory.txt
|
|
34
|
-
pip-selfcheck.json
|
|
35
|
-
|
|
36
|
-
# Unit test / coverage reports
|
|
37
|
-
htmlcov/
|
|
38
|
-
.tox/
|
|
39
|
-
.coverage
|
|
40
|
-
.cache
|
|
41
|
-
nosetests.xml
|
|
42
|
-
coverage.xml
|
|
43
|
-
|
|
44
|
-
# Translations
|
|
45
|
-
*.mo
|
|
46
|
-
|
|
47
|
-
# Mr Developer
|
|
48
|
-
.mr.developer.cfg
|
|
49
|
-
.project
|
|
50
|
-
.pydevproject
|
|
51
|
-
|
|
52
|
-
# Rope
|
|
53
|
-
.ropeproject
|
|
54
|
-
|
|
55
|
-
# Django stuff:
|
|
56
|
-
*.log
|
|
57
|
-
*.pot
|
|
58
|
-
|
|
59
|
-
.DS_Store
|
|
60
|
-
|
|
61
|
-
# Sphinx documentation
|
|
62
|
-
docs/_build/
|
|
63
|
-
|
|
64
|
-
# PyCharm
|
|
65
|
-
.idea/
|
|
66
|
-
|
|
67
|
-
# VSCode
|
|
68
|
-
.vscode/
|
|
69
|
-
|
|
70
|
-
# Pyenv
|
|
71
|
-
.python-version
|
|
1
|
+
/target
|
|
2
|
+
|
|
3
|
+
# Byte-compiled / optimized / DLL files
|
|
4
|
+
__pycache__/
|
|
5
|
+
.pytest_cache/
|
|
6
|
+
*.py[cod]
|
|
7
|
+
|
|
8
|
+
# C extensions
|
|
9
|
+
*.so
|
|
10
|
+
|
|
11
|
+
# Distribution / packaging
|
|
12
|
+
.Python
|
|
13
|
+
.venv/
|
|
14
|
+
env/
|
|
15
|
+
build/
|
|
16
|
+
develop-eggs/
|
|
17
|
+
dist/
|
|
18
|
+
eggs/
|
|
19
|
+
lib/
|
|
20
|
+
lib64/
|
|
21
|
+
parts/
|
|
22
|
+
sdist/
|
|
23
|
+
var/
|
|
24
|
+
include/
|
|
25
|
+
man/
|
|
26
|
+
venv/
|
|
27
|
+
*.egg-info/
|
|
28
|
+
.installed.cfg
|
|
29
|
+
*.egg
|
|
30
|
+
|
|
31
|
+
# Installer logs
|
|
32
|
+
pip-log.txt
|
|
33
|
+
pip-delete-this-directory.txt
|
|
34
|
+
pip-selfcheck.json
|
|
35
|
+
|
|
36
|
+
# Unit test / coverage reports
|
|
37
|
+
htmlcov/
|
|
38
|
+
.tox/
|
|
39
|
+
.coverage
|
|
40
|
+
.cache
|
|
41
|
+
nosetests.xml
|
|
42
|
+
coverage.xml
|
|
43
|
+
|
|
44
|
+
# Translations
|
|
45
|
+
*.mo
|
|
46
|
+
|
|
47
|
+
# Mr Developer
|
|
48
|
+
.mr.developer.cfg
|
|
49
|
+
.project
|
|
50
|
+
.pydevproject
|
|
51
|
+
|
|
52
|
+
# Rope
|
|
53
|
+
.ropeproject
|
|
54
|
+
|
|
55
|
+
# Django stuff:
|
|
56
|
+
*.log
|
|
57
|
+
*.pot
|
|
58
|
+
|
|
59
|
+
.DS_Store
|
|
60
|
+
|
|
61
|
+
# Sphinx documentation
|
|
62
|
+
docs/_build/
|
|
63
|
+
|
|
64
|
+
# PyCharm
|
|
65
|
+
.idea/
|
|
66
|
+
|
|
67
|
+
# VSCode
|
|
68
|
+
.vscode/
|
|
69
|
+
|
|
70
|
+
# Pyenv
|
|
71
|
+
.python-version
|