Skip to content

Commit 9cf6269

Browse files
authored
Update dependencies and improve pyo3 (#147)
- Update all dependencies so that `cargo outdated -R` is satisfied. - Use declarative pyo3 modules. - The docs and the code disagreed on whether the auto compressor entry point is named `compress_largest_rooms`, `compress_state_events_table` or `compress_chunks_of_database`. Rename the entry point to `run_compression`, matching the manual compressor, and fix the docs. Leave `compress_largest_rooms` as another entry point to avoid breaking existing code. - Provide a default for `default_levels`. - Use `&str` instead of `String` in Python signatures where it simplifies the code or is necessary to include the default in the text signature. - Release the GIL while running the manual compressor. - Use `map_err` to simplify error conversion a bit. Signed-off-by: Jan Alexander Steffens (heftig) <[email protected]> - Fix docker compose command in CI
1 parent 40b660e commit 9cf6269

File tree

9 files changed

+494
-701
lines changed

9 files changed

+494
-701
lines changed

.github/workflows/tests.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
toolchain: stable
3434
override: true
3535
- uses: Swatinem/rust-cache@v1
36-
- run: cd compressor_integration_tests && docker-compose up -d
36+
- run: cd compressor_integration_tests && docker compose up -d
3737
- uses: actions-rs/cargo@v1
3838
with:
3939
command: test

0 commit comments

Comments
 (0)