Skip to content

Commit

Permalink
Update dependencies and improve pyo3 (#147)
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
heftig authored Nov 12, 2024
1 parent 40b660e commit 9cf6269
Show file tree
Hide file tree
Showing 9 changed files with 494 additions and 701 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
toolchain: stable
override: true
- uses: Swatinem/rust-cache@v1
- run: cd compressor_integration_tests && docker-compose up -d
- run: cd compressor_integration_tests && docker compose up -d
- uses: actions-rs/cargo@v1
with:
command: test
Expand Down
Loading

0 comments on commit 9cf6269

Please sign in to comment.