brotli 3.5.0

A brotli compressor and decompressor that with an interface avoiding the rust stdlib. This makes it suitable for embedded devices and kernels. It is designed with a pluggable allocator so that the standard lib's allocator may be employed. The default build also includes a stdlib allocator and stream interface. Disable this with --features=no-stdlib. All included code is safe.
Documentation
Build #1160559 2024-03-17T03:30:32.833455+00:00
# rustc version
rustc 1.78.0-nightly (766bdce74 2024-03-16)# docs.rs version
docsrs 0.6.0 (e00048fe 2024-03-13)# build log
[INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace-builder/builds/brotli-3.5.0/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace-builder/builds/brotli-3.5.0/source:/opt/rustwide/workdir:ro,Z" "-v" "/home/cratesfyi/workspace-builder/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/home/cratesfyi/workspace-builder/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "DOCS_RS=1" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "6442450944" "--cpus" "6" "--user" "1001:1001" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20240316-1.78.0-nightly-766bdce74\", \"--static-root-path\", \"/-/rustdoc.static/\", \"--cap-lints\", \"warn\", \"--extern-html-root-takes-precedence\"]" "--offline" "-Zunstable-options" "--config=doc.extern-map.registries.crates-io=\"https://docs.rs/{pkg_name}/{version}/x86_64-apple-darwin\"" "-Zrustdoc-scrape-examples" "-j6" "--target" "x86_64-apple-darwin", kill_on_drop: false }`
[INFO] [stdout] f7443df147c0c174e151b99ac2ec2030c11de854e0e0e23d4ea4bda0e7b48606
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "f7443df147c0c174e151b99ac2ec2030c11de854e0e0e23d4ea4bda0e7b48606", kill_on_drop: false }`
[INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021
[INFO] [stderr] warning: the item `core` is imported redundantly
[INFO] [stderr]  --> src/enc/bit_cost.rs:4:5
[INFO] [stderr]   |
[INFO] [stderr] 4 | use core;
[INFO] [stderr]   |     ^^^^ the item `core` is already imported by prelude
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: the item `alloc` is imported redundantly
[INFO] [stderr]   --> src/enc/block_split.rs:2:5
[INFO] [stderr]    |
[INFO] [stderr] 2  | use super::super::alloc;
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]   ::: src/lib.rs:21:1
[INFO] [stderr]    |
[INFO] [stderr] 21 | extern crate alloc_no_stdlib as alloc;
[INFO] [stderr]    | -------------------------------------- the item `alloc` is already imported here
[INFO] [stderr] 
[INFO] [stderr] warning: the item `alloc` is imported redundantly
[INFO] [stderr]   --> src/enc/cluster.rs:8:5
[INFO] [stderr]    |
[INFO] [stderr] 8  | use alloc;
[INFO] [stderr]    |     ^^^^^
[INFO] [stderr]    |
[INFO] [stderr]   ::: src/lib.rs:21:1
[INFO] [stderr]    |
[INFO] [stderr] 21 | extern crate alloc_no_stdlib as alloc;
[INFO] [stderr]    | -------------------------------------- the item `alloc` is already imported here
[INFO] [stderr] 
[INFO] [stderr] warning: the item `core` is imported redundantly
[INFO] [stderr]   --> src/enc/cluster.rs:10:5
[INFO] [stderr]    |
[INFO] [stderr] 10 | use core;
[INFO] [stderr]    |     ^^^^ the item `core` is already imported by prelude
[INFO] [stderr] 
[INFO] [stderr] warning: the item `alloc` is imported redundantly
[INFO] [stderr]   --> src/enc/histogram.rs:3:5
[INFO] [stderr]    |
[INFO] [stderr] 3  | use super::super::alloc;
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]   ::: src/lib.rs:21:1
[INFO] [stderr]    |
[INFO] [stderr] 21 | extern crate alloc_no_stdlib as alloc;
[INFO] [stderr]    | -------------------------------------- the item `alloc` is already imported here
[INFO] [stderr] 
[INFO] [stderr] warning: the item `core` is imported redundantly
[INFO] [stderr]  --> src/enc/histogram.rs:9:5
[INFO] [stderr]   |
[INFO] [stderr] 9 | use core;
[INFO] [stderr]   |     ^^^^ the item `core` is already imported by prelude
[INFO] [stderr] 
[INFO] [stderr] warning: the item `core` is imported redundantly
[INFO] [stderr]  --> src/enc/input_pair.rs:4:5
[INFO] [stderr]   |
[INFO] [stderr] 4 | use core;
[INFO] [stderr]   |     ^^^^ the item `core` is already imported by prelude
[INFO] [stderr] 
[INFO] [stderr] warning: the item `core` is imported redundantly
[INFO] [stderr]  --> src/enc/static_dict.rs:1:5
[INFO] [stderr]   |
[INFO] [stderr] 1 | use core;
[INFO] [stderr]   |     ^^^^ the item `core` is already imported by prelude
[INFO] [stderr] 
[INFO] [stderr] warning: the item `core` is imported redundantly
[INFO] [stderr]  --> src/enc/util.rs:4:5
[INFO] [stderr]   |
[INFO] [stderr] 4 | use core;
[INFO] [stderr]   |     ^^^^ the item `core` is already imported by prelude
[INFO] [stderr] 
[INFO] [stderr] warning: the item `alloc` is imported redundantly
[INFO] [stderr]   --> src/enc/block_splitter.rs:5:5
[INFO] [stderr]    |
[INFO] [stderr] 5  | use super::super::alloc;
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]   ::: src/lib.rs:21:1
[INFO] [stderr]    |
[INFO] [stderr] 21 | extern crate alloc_no_stdlib as alloc;
[INFO] [stderr]    | -------------------------------------- the item `alloc` is already imported here
[INFO] [stderr] 
[INFO] [stderr] warning: the item `core` is imported redundantly
[INFO] [stderr]   --> src/enc/block_splitter.rs:16:5
[INFO] [stderr]    |
[INFO] [stderr] 16 | use core;
[INFO] [stderr]    |     ^^^^ the item `core` is already imported by prelude
[INFO] [stderr] 
[INFO] [stderr] warning: the item `alloc` is imported redundantly
[INFO] [stderr]   --> src/enc/compress_fragment.rs:12:5
[INFO] [stderr]    |
[INFO] [stderr] 12 | use super::super::alloc;
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]   ::: src/lib.rs:21:1
[INFO] [stderr]    |
[INFO] [stderr] 21 | extern crate alloc_no_stdlib as alloc;
[INFO] [stderr]    | -------------------------------------- the item `alloc` is already imported here
[INFO] [stderr] 
[INFO] [stderr] warning: the item `alloc` is imported redundantly
[INFO] [stderr]   --> src/enc/compress_fragment_two_pass.rs:4:5
[INFO] [stderr]    |
[INFO] [stderr] 4  | use super::super::alloc;
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]   ::: src/lib.rs:21:1
[INFO] [stderr]    |
[INFO] [stderr] 21 | extern crate alloc_no_stdlib as alloc;
[INFO] [stderr]    | -------------------------------------- the item `alloc` is already imported here
[INFO] [stderr] 
[INFO] [stderr] warning: the item `core` is imported redundantly
[INFO] [stderr]   --> src/enc/compress_fragment_two_pass.rs:15:5
[INFO] [stderr]    |
[INFO] [stderr] 15 | use core;
[INFO] [stderr]    |     ^^^^ the item `core` is already imported by prelude
[INFO] [stderr] 
[INFO] [stderr] warning: the item `alloc` is imported redundantly
[INFO] [stderr]   --> src/enc/context_map_entropy.rs:1:5
[INFO] [stderr]    |
[INFO] [stderr] 1  | use super::super::alloc;
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]   ::: src/lib.rs:21:1
[INFO] [stderr]    |
[INFO] [stderr] 21 | extern crate alloc_no_stdlib as alloc;
[INFO] [stderr]    | -------------------------------------- the item `alloc` is already imported here
[INFO] [stderr] 
[INFO] [stderr] warning: the item `core` is imported redundantly
[INFO] [stderr]  --> src/enc/context_map_entropy.rs:9:5
[INFO] [stderr]   |
[INFO] [stderr] 9 | use core;
[INFO] [stderr]   |     ^^^^ the item `core` is already imported by prelude
[INFO] [stderr] 
[INFO] [stderr] warning: the item `alloc` is imported redundantly
[INFO] [stderr]   --> src/enc/encode.rs:28:5
[INFO] [stderr]    |
[INFO] [stderr] 28 | use super::super::alloc;
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]   ::: src/lib.rs:21:1
[INFO] [stderr]    |
[INFO] [stderr] 21 | extern crate alloc_no_stdlib as alloc;
[INFO] [stderr]    | -------------------------------------- the item `alloc` is already imported here
[INFO] [stderr] 
[INFO] [stderr] warning: the item `core` is imported redundantly
[INFO] [stderr]   --> src/enc/encode.rs:47:5
[INFO] [stderr]    |
[INFO] [stderr] 47 | use core;
[INFO] [stderr]    |     ^^^^ the item `core` is already imported by prelude
[INFO] [stderr] 
[INFO] [stderr] warning: the item `alloc` is imported redundantly
[INFO] [stderr]   --> src/enc/find_stride.rs:1:5
[INFO] [stderr]    |
[INFO] [stderr] 1  | use super::super::alloc;
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]   ::: src/lib.rs:21:1
[INFO] [stderr]    |
[INFO] [stderr] 21 | extern crate alloc_no_stdlib as alloc;
[INFO] [stderr]    | -------------------------------------- the item `alloc` is already imported here
[INFO] [stderr] 
[INFO] [stderr] warning: the item `alloc` is imported redundantly
[INFO] [stderr]   --> src/enc/metablock.rs:2:5
[INFO] [stderr]    |
[INFO] [stderr] 2  | use super::super::alloc;
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]   ::: src/lib.rs:21:1
[INFO] [stderr]    |
[INFO] [stderr] 21 | extern crate alloc_no_stdlib as alloc;
[INFO] [stderr]    | -------------------------------------- the item `alloc` is already imported here
[INFO] [stderr] 
[INFO] [stderr] warning: the item `core` is imported redundantly
[INFO] [stderr]   --> src/enc/metablock.rs:27:5
[INFO] [stderr]    |
[INFO] [stderr] 27 | use core;
[INFO] [stderr]    |     ^^^^ the item `core` is already imported by prelude
[INFO] [stderr] 
[INFO] [stderr] warning: the item `alloc` is imported redundantly
[INFO] [stderr]   --> src/enc/prior_eval.rs:1:5
[INFO] [stderr]    |
[INFO] [stderr] 1  | use super::super::alloc;
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]   ::: src/lib.rs:21:1
[INFO] [stderr]    |
[INFO] [stderr] 21 | extern crate alloc_no_stdlib as alloc;
[INFO] [stderr]    | -------------------------------------- the item `alloc` is already imported here
[INFO] [stderr] 
[INFO] [stderr] warning: the item `core` is imported redundantly
[INFO] [stderr]   --> src/enc/prior_eval.rs:10:5
[INFO] [stderr]    |
[INFO] [stderr] 10 | use core;
[INFO] [stderr]    |     ^^^^ the item `core` is already imported by prelude
[INFO] [stderr] 
[INFO] [stderr] warning: the item `alloc` is imported redundantly
[INFO] [stderr]   --> src/enc/stride_eval.rs:1:5
[INFO] [stderr]    |
[INFO] [stderr] 1  | use super::super::alloc;
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]   ::: src/lib.rs:21:1
[INFO] [stderr]    |
[INFO] [stderr] 21 | extern crate alloc_no_stdlib as alloc;
[INFO] [stderr]    | -------------------------------------- the item `alloc` is already imported here
[INFO] [stderr] 
[INFO] [stderr] warning: the item `core` is imported redundantly
[INFO] [stderr]  --> src/enc/stride_eval.rs:9:5
[INFO] [stderr]   |
[INFO] [stderr] 9 | use core;
[INFO] [stderr]   |     ^^^^ the item `core` is already imported by prelude
[INFO] [stderr] 
[INFO] [stderr] warning: the item `core` is imported redundantly
[INFO] [stderr]  --> src/enc/fixed_queue.rs:1:5
[INFO] [stderr]   |
[INFO] [stderr] 1 | use core;
[INFO] [stderr]   |     ^^^^ the item `core` is already imported by prelude
[INFO] [stderr] 
[INFO] [stderr] warning: the item `std` is imported redundantly
[INFO] [stderr]   --> src/enc/multithreading.rs:13:5
[INFO] [stderr]    |
[INFO] [stderr] 13 | use std;
[INFO] [stderr]    |     ^^^
[INFO] [stderr]    |
[INFO] [stderr]   ::: src/lib.rs:16:1
[INFO] [stderr]    |
[INFO] [stderr] 16 | extern crate std;
[INFO] [stderr]    | ----------------- the item `std` is already imported here
[INFO] [stderr] 
[INFO] [stderr] warning: the item `std` is imported redundantly
[INFO] [stderr]   --> src/enc/singlethreading.rs:13:5
[INFO] [stderr]    |
[INFO] [stderr] 13 | use std;
[INFO] [stderr]    |     ^^^
[INFO] [stderr]    |
[INFO] [stderr]   ::: src/lib.rs:16:1
[INFO] [stderr]    |
[INFO] [stderr] 16 | extern crate std;
[INFO] [stderr]    | ----------------- the item `std` is already imported here
[INFO] [stderr] 
[INFO] [stderr] warning: the item `std` is imported redundantly
[INFO] [stderr]   --> src/enc/threading.rs:15:5
[INFO] [stderr]    |
[INFO] [stderr] 15 | use std;
[INFO] [stderr]    |     ^^^
[INFO] [stderr]    |
[INFO] [stderr]   ::: src/lib.rs:16:1
[INFO] [stderr]    |
[INFO] [stderr] 16 | extern crate std;
[INFO] [stderr]    | ----------------- the item `std` is already imported here
[INFO] [stderr] 
[INFO] [stderr] warning: the item `std` is imported redundantly
[INFO] [stderr]   --> src/enc/worker_pool.rs:3:5
[INFO] [stderr]    |
[INFO] [stderr] 3  | use std;
[INFO] [stderr]    |     ^^^
[INFO] [stderr]    |
[INFO] [stderr]   ::: src/lib.rs:16:1
[INFO] [stderr]    |
[INFO] [stderr] 16 | extern crate std;
[INFO] [stderr]    | ----------------- the item `std` is already imported here
[INFO] [stderr] 
[INFO] [stderr] warning: the item `core` is imported redundantly
[INFO] [stderr]  --> src/enc/weights.rs:1:5
[INFO] [stderr]   |
[INFO] [stderr] 1 | use core;
[INFO] [stderr]   |     ^^^^ the item `core` is already imported by prelude
[INFO] [stderr] 
[INFO] [stderr] warning: the item `core` is imported redundantly
[INFO] [stderr]  --> src/concat/mod.rs:1:5
[INFO] [stderr]   |
[INFO] [stderr] 1 | use core;
[INFO] [stderr]   |     ^^^^ the item `core` is already imported by prelude
[INFO] [stderr] 
[INFO] [stderr] warning: the item `core` is imported redundantly
[INFO] [stderr]  --> src/ffi/broccoli.rs:5:5
[INFO] [stderr]   |
[INFO] [stderr] 5 | use core;
[INFO] [stderr]   |     ^^^^ the item `core` is already imported by prelude
[INFO] [stderr] 
[INFO] [stderr] warning: the item `core` is imported redundantly
[INFO] [stderr]   --> src/ffi/compressor.rs:15:5
[INFO] [stderr]    |
[INFO] [stderr] 15 | use core;
[INFO] [stderr]    |     ^^^^ the item `core` is already imported by prelude
[INFO] [stderr] 
[INFO] [stderr] warning: the item `core` is imported redundantly
[INFO] [stderr]   --> src/ffi/multicompress/mod.rs:15:5
[INFO] [stderr]    |
[INFO] [stderr] 15 | use core;
[INFO] [stderr]    |     ^^^^ the item `core` is already imported by prelude
[INFO] [stderr] 
[INFO] [stderr] warning: field `0` is never read
[INFO] [stderr]  --> src/enc/pdf.rs:4:16
[INFO] [stderr]   |
[INFO] [stderr] 4 | pub struct PDF([i16; 16]);
[INFO] [stderr]   |            --- ^^^^^^^^^
[INFO] [stderr]   |            |
[INFO] [stderr]   |            field in this struct
[INFO] [stderr]   |
[INFO] [stderr]   = note: `PDF` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis
[INFO] [stderr]   = note: `#[warn(dead_code)]` on by default
[INFO] [stderr] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
[INFO] [stderr]   |
[INFO] [stderr] 4 | pub struct PDF(());
[INFO] [stderr]   |                ~~
[INFO] [stderr] 
[INFO] [stderr] warning: `brotli` (lib) generated 36 warnings
[INFO] [stderr]     Scraping brotli v3.5.0 (/opt/rustwide/workdir)
[INFO] [stderr]  Documenting brotli v3.5.0 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.95s
[INFO] [stderr]    Generated /opt/rustwide/target/x86_64-apple-darwin/doc/brotli/index.html
[INFO] running `Command { std: "docker" "inspect" "f7443df147c0c174e151b99ac2ec2030c11de854e0e0e23d4ea4bda0e7b48606", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "f7443df147c0c174e151b99ac2ec2030c11de854e0e0e23d4ea4bda0e7b48606", kill_on_drop: false }`
[INFO] [stdout] f7443df147c0c174e151b99ac2ec2030c11de854e0e0e23d4ea4bda0e7b48606