From 530b5f6fa8680c5e365e852c35fed0c379d4779c Mon Sep 17 00:00:00 2001 From: harry Date: Wed, 25 Nov 2026 00:35:02 +0900 Subject: [PATCH] chore(release): 0.20.0 The GPU decoder and encoder moved into the crate emberwave-wgpu, so that emberwave-core has no wgpu in its API (D75): their Rust paths change, so the minor version does. Also: the browser player's module as an npm package, built and checked by CI and not published (D76), with the wasm's source paths remapped. Version 0.20.0 in Cargo.toml and the C API's version constants, header regenerated, the CHANGELOG entry, the status line and the XCFramework URL. Claude-Session: https://claude.ai/code/session_019fJGoCTvP5e7n599q3ZQ42 --- ARCHITECTURE.md | 2 +- CHANGELOG.md | 4 +++- Cargo.lock | 10 +++++----- Cargo.toml | 6 +++--- crates/emberwave-ffi/README.md | 2 +- crates/emberwave-ffi/include/emberwave.h | 4 ++-- crates/emberwave-ffi/src/lib.rs | 4 ++-- 7 files changed, 17 insertions(+), 15 deletions(-) diff --git a/ARCHITECTURE.md b/ARCHITECTURE.md index b05a197..80e586b 100644 --- a/ARCHITECTURE.md +++ b/ARCHITECTURE.md @@ -1,6 +1,6 @@ # Architecture -> **Status (v0.19.0).** The bitstream format is documented below and implemented by `emberwave_core::bitstream`, with a slow CPU reference decoder in `emberwave_core::cpu`, the wgpu/WGSL decoder in the crate `emberwave-wgpu` and the colour conversion in `emberwave_core::color`. The encoder runs on the CPU (`emberwave_core::encode`) and on the GPU (`emberwave-wgpu`). `emberwave-core` has no wgpu in its dependencies or its API, so that its version need not follow wgpu's (D75). `emberwave-cli` decodes and encodes files with them, `emberwave-web` plays them in a browser, also packet by packet as a stream arrives, and `emberwave-ffi` offers the decoder and the GPU encoder to C, also as an XCFramework for iPhone, iPad and Mac apps, and hands Metal clients the decoded picture in a texture, or its planes in three, also into the client's own textures and on its own queue without waiting, where calls take turns at its command buffers; it runs on a client's own Vulkan device and images as well, shares textures and fences with Direct3D 12 and 11 devices on Windows, and encodes a host's pictures straight from its textures, in RGB as captures hold them too; on Metal the planes are stored straight into the textures, and on Apple silicon the frames are written where the shaders read them. A decoder can keep the last frame's detail in the blocks a frame drawn in part lacks, where the picture is still. Decode and encode times are in `BENCHMARKS.md`. The decision log at the end is kept up to date. +> **Status (v0.20.0).** The bitstream format is documented below and implemented by `emberwave_core::bitstream`, with a slow CPU reference decoder in `emberwave_core::cpu`, the wgpu/WGSL decoder in the crate `emberwave-wgpu` and the colour conversion in `emberwave_core::color`. The encoder runs on the CPU (`emberwave_core::encode`) and on the GPU (`emberwave-wgpu`). `emberwave-core` has no wgpu in its dependencies or its API, so that its version need not follow wgpu's (D75). `emberwave-cli` decodes and encodes files with them, `emberwave-web` plays them in a browser, also packet by packet as a stream arrives, and `emberwave-ffi` offers the decoder and the GPU encoder to C, also as an XCFramework for iPhone, iPad and Mac apps, and hands Metal clients the decoded picture in a texture, or its planes in three, also into the client's own textures and on its own queue without waiting, where calls take turns at its command buffers; it runs on a client's own Vulkan device and images as well, shares textures and fences with Direct3D 12 and 11 devices on Windows, and encodes a host's pictures straight from its textures, in RGB as captures hold them too; on Metal the planes are stored straight into the textures, and on Apple silicon the frames are written where the shaders read them. A decoder can keep the last frame's detail in the blocks a frame drawn in part lacks, where the picture is still. Decode and encode times are in `BENCHMARKS.md`. The decision log at the end is kept up to date. ## Overview diff --git a/CHANGELOG.md b/CHANGELOG.md index 88eb84f..4df36fc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,9 @@ All notable changes to emberwave. The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and versions follow [Semantic Versioning](https://semver.org/). -## [Unreleased] +## [0.20.0] - 2026-11-25 + +The GPU decoder and encoder are a crate of their own, `emberwave-wgpu`, so that `emberwave-core` has no wgpu in its API, and the browser player is ready as an npm package. **A change for Rust users of the GPU code**: its paths change (below). The C API, the shared library, the CLI and the browser player behave as in 0.19.0. ### Added - The browser player's module as an npm package, ready to publish and not published (decision D76): `scripts/build_npm.sh` builds it into `target/npm/emberwave-web`, with TypeScript declarations and a README for web pages, and `scripts/check_npm.sh`, which CI runs, installs its archive into a scratch project and checks it there. The name proposed for npm is `emberwave-web`; the maintainer confirms it before the first publish. The package and the pages' module are built with the source paths that panic messages name remapped, so that the wasm names no directory of the machine that built it. diff --git a/Cargo.lock b/Cargo.lock index 4821e76..d039e37 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -288,7 +288,7 @@ dependencies = [ [[package]] name = "emberwave-cli" -version = "0.19.0" +version = "0.20.0" dependencies = [ "clap", "emberwave-core", @@ -300,7 +300,7 @@ dependencies = [ [[package]] name = "emberwave-core" -version = "0.19.0" +version = "0.20.0" dependencies = [ "proptest", "thiserror", @@ -308,7 +308,7 @@ dependencies = [ [[package]] name = "emberwave-ffi" -version = "0.19.0" +version = "0.20.0" dependencies = [ "ash", "cbindgen", @@ -323,7 +323,7 @@ dependencies = [ [[package]] name = "emberwave-web" -version = "0.19.0" +version = "0.20.0" dependencies = [ "emberwave-core", "emberwave-wgpu", @@ -335,7 +335,7 @@ dependencies = [ [[package]] name = "emberwave-wgpu" -version = "0.19.0" +version = "0.20.0" dependencies = [ "bytemuck", "emberwave-core", diff --git a/Cargo.toml b/Cargo.toml index d60e0a7..93ee6ec 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,7 @@ members = [ ] [workspace.package] -version = "0.19.0" +version = "0.20.0" edition = "2024" license = "MIT" repository = "https://github.com/with-developer/emberwave" @@ -22,8 +22,8 @@ publish = false [workspace.dependencies] # emberwave-wgpu uses hidden items of the core, so the two go together: the # exact version. -emberwave-core = { path = "crates/emberwave-core", version = "=0.19.0" } -emberwave-wgpu = { path = "crates/emberwave-wgpu", version = "=0.19.0" } +emberwave-core = { path = "crates/emberwave-core", version = "=0.20.0" } +emberwave-wgpu = { path = "crates/emberwave-wgpu", version = "=0.20.0" } thiserror = "2" proptest = "1" # Native backends only: GLES would need EGL and the browser backend is for the diff --git a/crates/emberwave-ffi/README.md b/crates/emberwave-ffi/README.md index 9edcca4..04aa5fb 100644 --- a/crates/emberwave-ffi/README.md +++ b/crates/emberwave-ffi/README.md @@ -84,7 +84,7 @@ A Swift package names the XCFramework as a binary target. From a release, it tak // In the app's Package.swift, with the version of the release: .binaryTarget( name: "Emberwave", - url: "https://github.com/with-developer/emberwave/releases/download/v0.19.0/Emberwave.xcframework.zip", + url: "https://github.com/with-developer/emberwave/releases/download/v0.20.0/Emberwave.xcframework.zip", checksum: "..." // the release's SHA256SUMS line for Emberwave.xcframework.zip ), .target( diff --git a/crates/emberwave-ffi/include/emberwave.h b/crates/emberwave-ffi/include/emberwave.h index 3c7d706..f7b4a26 100644 --- a/crates/emberwave-ffi/include/emberwave.h +++ b/crates/emberwave-ffi/include/emberwave.h @@ -45,7 +45,7 @@ #define EMBERWAVE_VERSION_MAJOR 0 // The minor version of emberwave that this header belongs to. -#define EMBERWAVE_VERSION_MINOR 19 +#define EMBERWAVE_VERSION_MINOR 20 // The patch version of emberwave that this header belongs to. #define EMBERWAVE_VERSION_PATCH 0 @@ -54,7 +54,7 @@ // minor times 100 plus patch: 1600 for 0.16.0. `emberwave_version_number()` // gives the library's, which differs when a program runs with another // library than the one it was built for. -#define EMBERWAVE_VERSION 1900 +#define EMBERWAVE_VERSION 2000 // 4:2:0: the chroma planes have half the width and height of the luma plane, // whose width and height are even. diff --git a/crates/emberwave-ffi/src/lib.rs b/crates/emberwave-ffi/src/lib.rs index 9254ab3..222d340 100644 --- a/crates/emberwave-ffi/src/lib.rs +++ b/crates/emberwave-ffi/src/lib.rs @@ -92,14 +92,14 @@ pub enum EmberwaveStatus { /// The major version of emberwave that this header belongs to. pub const EMBERWAVE_VERSION_MAJOR: u32 = 0; /// The minor version of emberwave that this header belongs to. -pub const EMBERWAVE_VERSION_MINOR: u32 = 19; +pub const EMBERWAVE_VERSION_MINOR: u32 = 20; /// The patch version of emberwave that this header belongs to. pub const EMBERWAVE_VERSION_PATCH: u32 = 0; /// The version this header belongs to as one number, major times 10000 plus /// minor times 100 plus patch: 1600 for 0.16.0. `emberwave_version_number()` /// gives the library's, which differs when a program runs with another /// library than the one it was built for. -pub const EMBERWAVE_VERSION: u32 = 1900; +pub const EMBERWAVE_VERSION: u32 = 2000; /// The library's version as `EMBERWAVE_VERSION` numbers it, from the crate's. const VERSION_NUMBER: u32 = decimal(env!("CARGO_PKG_VERSION_MAJOR")) * 10000