forked from foxglove/mcap
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rust: make mcap-rs wasm compatible (foxglove#989)
### Public-Facing Changes * Dependency is changed from [lz4](https://github.com/10xGenomics/lz4-rs) to [lz4_flex](https://github.com/PSeitz/lz4_flex) * A new feature flag `lz4` is introduced and enabled by default ### Description This change makes mcap-rs wasm compatible. * Replace [lz4](https://github.com/10xGenomics/lz4-rs) with [lz4_flex](https://github.com/PSeitz/lz4_flex), because the former one depends on `lz4-sys`, which is not easy to port to wasm. * Add a feature flag `lz4` so the library user can choose to opt-out of the dependency. * ~~Turn off the default features and~~ turn on the `wasm` feature for [zstd](https://github.com/gyscos/zstd-rs) when the target platform is wasm. * Add Clippy checking in the CI for all combinations of features. * Minor fixes for Clippy linter warnings.
- Loading branch information
1 parent
eca4865
commit 692f1e7
Showing
8 changed files
with
40 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters