Skip to content

Releases: rustnn/webnn-graph

0.2.1

28 Dec 17:54
285aa01

Choose a tag to compare

Full Changelog: v0.2.0...0.2.1

v0.2.0: WebNN Text Format and Binary Weights

24 Dec 16:04
48e40c3

Choose a tag to compare

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 manifest
    • inline-weights: Inline weights back into JSON for round-trip conversion
    • pack-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

24 Dec 06:40
0fb4c11

Choose a tag to compare

Initial release of webnn-graph, a DSL for webnn.

  • Basic parsing of .webnn text files or JSON files.
  • Javascript code generator