Releases: rustnn/webnn-graph
Releases · rustnn/webnn-graph
0.2.1
Full Changelog: v0.2.0...0.2.1
v0.2.0: WebNN Text Format and Binary Weights
What's New
Features
- WebNN text format (.webnn) is now the primary format - 10x smaller than JSON, human-readable
- Binary weights support - Separate weight data from graph structure
extract-weights: Extract weights from JSON to binary format with manifestinline-weights: Inline weights back into JSON for round-trip conversionpack-weights,unpack-weights,create-manifest: Low-level weight management
- Improved serialization - JSON to .webnn conversion no longer includes inline bytes
Improvements
- Enhanced documentation with complete workflow examples
- Better separation of concerns: graph structure, weights, and input data
- Full round-trip support: .webnn ↔ JSON ↔ .webnn
- Clippy warnings fixed and code formatted
- Version bumped to 0.2.0 in Cargo.toml
Technical Details
- All commands now accept both .webnn and .json formats (auto-detected)
- Weight extraction achieves 93% size reduction for large models
- Complete test coverage across all modules (50 tests)
- All tests passing, clippy clean
- Ready for crates.io publication
Full Changelog: v0.1.0...v0.2.0
v0.1.0 - Initial Release
Initial release of webnn-graph, a DSL for webnn.
- Basic parsing of .webnn text files or JSON files.
- Javascript code generator