brotli-decompressor 4.0.1

A brotli 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. Alternatively, --features=unsafe turns off array bounds checks and memory initialization but provides a safe interface for the caller. Without adding the --features=unsafe argument, all included code is safe. For compression in addition to this library, download https://github.com/dropbox/rust-brotli
Documentation
Build #1231979 2024-05-27T07:23:32.849320+00:00
# rustc version
rustc 1.80.0-nightly (bdbbb6c6a 2024-05-26)# docs.rs version
docsrs 0.6.0 (2d4f32bd 2024-05-19)# build log
[INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace-builder/builds/brotli-decompressor-4.0.1/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace-builder/builds/brotli-decompressor-4.0.1/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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20240526-1.80.0-nightly-bdbbb6c6a\", \"--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-pc-windows-msvc\"" "-Zrustdoc-scrape-examples" "-j6" "--target" "x86_64-pc-windows-msvc", kill_on_drop: false }`
[INFO] [stdout] 9bb2ca5f5b5738b579f947ffb47463b57508a3c79015464d49707e0a35adc27d
[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" "9bb2ca5f5b5738b579f947ffb47463b57508a3c79015464d49707e0a35adc27d", kill_on_drop: false }`
[INFO] [stderr] warning: unexpected `cfg` condition value: `no-stdlib-ffi-binding`
[INFO] [stderr]  --> src/lib.rs:8:13
[INFO] [stderr]   |
[INFO] [stderr] 8 | #![cfg_attr(feature="no-stdlib-ffi-binding",cfg_attr(not(feature="std"), feature(lang_items)))]
[INFO] [stderr]   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: expected values for `feature` are: `alloc-stdlib`, `benchmark`, `default`, `disable-timer`, `ffi-api`, `pass-through-ffi-panics`, `seccomp`, `std`, and `unsafe`
[INFO] [stderr]   = help: consider adding `no-stdlib-ffi-binding` as a feature in `Cargo.toml`
[INFO] [stderr]   = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stderr]   = note: `#[warn(unexpected_cfgs)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unexpected `cfg` condition value: `no-stdlib-ffi-binding`
[INFO] [stderr]  --> src/lib.rs:9:13
[INFO] [stderr]   |
[INFO] [stderr] 9 | #![cfg_attr(feature="no-stdlib-ffi-binding",cfg_attr(not(feature="std"), feature(panic_handler)))]
[INFO] [stderr]   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: expected values for `feature` are: `alloc-stdlib`, `benchmark`, `default`, `disable-timer`, `ffi-api`, `pass-through-ffi-panics`, `seccomp`, `std`, and `unsafe`
[INFO] [stderr]   = help: consider adding `no-stdlib-ffi-binding` as a feature in `Cargo.toml`
[INFO] [stderr]   = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stderr] 
[INFO] [stderr] warning: `brotli-decompressor` (lib) generated 2 warnings
[INFO] [stderr]     Scraping brotli-decompressor v4.0.1 (/opt/rustwide/workdir)
[INFO] [stderr]  Documenting brotli-decompressor v4.0.1 (/opt/rustwide/workdir)
[INFO] [stderr] warning: `brotli-decompressor` (lib doc) generated 2 warnings (2 duplicates)
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.82s
[INFO] [stderr]    Generated /opt/rustwide/target/x86_64-pc-windows-msvc/doc/brotli_decompressor/index.html
[INFO] running `Command { std: "docker" "inspect" "9bb2ca5f5b5738b579f947ffb47463b57508a3c79015464d49707e0a35adc27d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "9bb2ca5f5b5738b579f947ffb47463b57508a3c79015464d49707e0a35adc27d", kill_on_drop: false }`
[INFO] [stdout] 9bb2ca5f5b5738b579f947ffb47463b57508a3c79015464d49707e0a35adc27d