zstd 1.0.0-dev.1
zstd: ^1.0.0-dev.1 copied to clipboard
Zstandard (zstd) bindings for Dart: fast lossless compression, compiled from the official release sources through native assets build hooks.
1.0.0-dev.1 #
- Requires
native_toolchain_x^1.0.0-dev.2, which fixes bundlinglibc++_shared.sofor Android armeabi-v7a (the NDK sysroot path is named after the platform triplearm-linux-androideabi, not the clang target triple). zstd itself does not bundlelibc++_shared.so; the constraint is raised to keep the toolchain versions uniform across the workspace.
1.0.0-dev.0 #
- Initial development prerelease of the zstd bindings.
- zstd 1.5.7 is downloaded from the official release tarball (SHA-256 verified)
and compiled through Dart native assets build hooks
(
hook/build.dart/hook/link.dart); no system zstd installation is used. Codec-compatible API: the sharedzstdinstance,ZstdCodec,ZstdEncoder, andZstdDecoder, each accepting a compression level and an optional pre-shared dictionary, plusRawZstdFilterfor chunked low-level compression and decompression.- Compression levels are validated against
ZstdOption(minLevel,maxLevel,defaultLevel), and native failures raiseZstdErrorwith the libzstd error code and name. - Static linking with symbol tree-shaking by default; the
tree_shakeuser define turns it off and keeps the whole library. - FFI bindings generated by
ffigenfrom the vendored headers insrc/include/, with arecord_usemapping used for tree-shaking. - Supported targets: Android, iOS, macOS, Linux, and Windows.
- Note: this is a prerelease — the API surface may change in breaking ways before 1.0.0.