cratestack_cbor 0.8.3
cratestack_cbor: ^0.8.3 copied to clipboard
Native CBOR codec for CrateStack Dart/Flutter: flutter_rust_bridge (native, vendored) and wasm-bindgen (web, vendored), mirroring @cratestack/cbor conditional exports for JS.
0.8.0 #
- Initial package structure (cratestack#563). One uniform
CratestackCborCodecAPI, auto-selected per platform:- Native: flutter_rust_bridge over a vendored prebuilt library. This release vendors Linux x86_64 and Android (arm64-v8a, x86_64, armeabi-v7a) — the remaining platform matrix (iOS, macOS, Windows, Linux arm64) is follow-up work.
- Web: the existing
cratestack-cbor-wasmwasm-bindgen artifact, vendored and loaded viadart:js_interop.
- Not yet published to pub.dev — see README.md.
- Flutter app integration, proven by real builds (cratestack#563):
- Linux: a Flutter FFI plugin (
linux/CMakeLists.txt) bundles the vendored.sointo a realflutter build linuxapp, instead of thecargokitbuild-Rust-from-source pattern most flutter_rust_bridge plugins use. - Android: a Flutter FFI plugin (
android/build.gradle) packages the vendored per-ABI.sofiles into the APK via the standardjniLibsmechanism — no CMake/NDK invocation at consumer build time. Verified by a realflutter build apk, per-ABI presence assertion, and a real install-and-run on an Android emulator round-tripping CBOR. - Web:
pubspec.yaml'sflutter: assets:vendors the.js/.wasmpair so a releaseflutter build webactually ships them; the web loader now tries both the dev-server and release asset URL conventions. example/: a minimal Flutter app exercising the codec, verified with realflutter build linux/flutter build web/flutter build apkbuilds — seejust cbor-example-verifyandjust cbor-example-verify-android.
- Linux: a Flutter FFI plugin (