Commit 868b5bf
authored
Reason for change:
* unify deflate usage across our tools
* consistent behaviour
* reduce compilation size
* reason for switching from miniz_oxide to zlib-rs:
* flate2 uses simd-adler32 https://github.com/rust-lang/flate2-rs/releases/tag/1.1.3
* simd-adler32 breaks on wasm:
```
error[E0433]: failed to resolve: use of unresolved module or unlinked crate `std`
--> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/simd-adler32-0.3.7/src/imp/wasm.rs:146:34
|
146 | let arr: [u32; 4] = unsafe { std::mem::transmute(v) };
| ^^^ use of unresolved module or unlinked crate `std`
|
= help: if you wanted to use a crate named `std`, use `cargo add std` to add it to your `Cargo.toml`
help: consider importing this module
|
27 + use core::mem;
|
help: if you import `mem`, refer to it directly
|
146 - let arr: [u32; 4] = unsafe { std::mem::transmute(v) };
146 + let arr: [u32; 4] = unsafe { mem::transmute(v) };
|
```
1 parent 27b48fc commit 868b5bf
3 files changed
+50
-4
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
80 | 81 | | |
81 | 82 | | |
82 | 83 | | |
83 | | - | |
84 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
85 | 89 | | |
86 | 90 | | |
87 | 91 | | |
| |||
0 commit comments