From 55b905efedd01733da94bc6294600daad9bc6f8d Mon Sep 17 00:00:00 2001 From: James Lal Date: Sun, 19 Jul 2026 20:16:30 -0600 Subject: [PATCH 1/2] chore: release 0.8.0 Co-Authored-By: Claude Fable 5 --- CHANGELOG.md | 16 ++++++++++++++-- Cargo.lock | 2 +- Cargo.toml | 2 +- README.md | 2 +- website/src/pages/docs/getting-started.astro | 2 +- website/src/pages/index.astro | 4 ++-- 6 files changed, 20 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a5254ea..fec07fe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,18 @@ All notable changes are recorded here. This project follows semantic versioning, with one pre-1.0 qualification: a minor release may change generated Rust APIs when correcting output that was wrong or incomplete on the wire. -## [Unreleased] +## [0.8.0] - 2026-07-19 + +### Added + +- An in-browser WASM playground at + [openapi-to-rust.dev/playground](https://openapi-to-rust.dev/playground): + paste a spec or fetch one by URL and get the exact generated file set — + byte-identical to `openapi-to-rust generate ` — with a downloadable + runnable crate. +- A default-on `cli` feature gating clap and reqwest. With + `--no-default-features` the library compiles on `wasm32-unknown-unknown`; + URL policy and spec parsing moved into the shared `spec_source` module. ### Fixed @@ -94,7 +105,8 @@ when correcting output that was wrong or incomplete on the wire. signed enum values, recursive unions, parameter collisions, optional request bodies, range response codes, and path-segment encoding. -[Unreleased]: https://github.com/gpu-cli/openapi-to-rust/compare/v0.7.0...HEAD +[Unreleased]: https://github.com/gpu-cli/openapi-to-rust/compare/v0.8.0...HEAD +[0.8.0]: https://github.com/gpu-cli/openapi-to-rust/compare/v0.7.0...v0.8.0 [0.7.0]: https://github.com/gpu-cli/openapi-to-rust/compare/v0.6.0...v0.7.0 [0.6.0]: https://github.com/gpu-cli/openapi-to-rust/releases/tag/v0.6.0 [0.5.3]: https://github.com/gpu-cli/openapi-to-rust/compare/v0.5.2...v0.5.3 diff --git a/Cargo.lock b/Cargo.lock index b74e4b4..617b92c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -701,7 +701,7 @@ checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe" [[package]] name = "openapi-to-rust" -version = "0.7.0" +version = "0.8.0" dependencies = [ "clap", "heck", diff --git a/Cargo.toml b/Cargo.toml index 3517ca1..a1d0f5f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,7 +6,7 @@ exclude = ["tmp"] [package] name = "openapi-to-rust" -version = "0.7.0" +version = "0.8.0" edition = "2024" rust-version = "1.88.0" autobins = false diff --git a/README.md b/README.md index b27483e..1fe5285 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ hosted fixture: ```bash cargo install --locked openapi-to-rust -openapi-to-rust generate https://raw.githubusercontent.com/gpu-cli/openapi-to-rust/v0.7.0/tests/fixtures/operation_extraction/simple_get.json +openapi-to-rust generate https://raw.githubusercontent.com/gpu-cli/openapi-to-rust/v0.8.0/tests/fixtures/operation_extraction/simple_get.json ``` This writes `src/generated/{types,client,mod}.rs` and the exact dependencies diff --git a/website/src/pages/docs/getting-started.astro b/website/src/pages/docs/getting-started.astro index 514a54d..642cb20 100644 --- a/website/src/pages/docs/getting-started.astro +++ b/website/src/pages/docs/getting-started.astro @@ -6,7 +6,7 @@ const install = `cargo install --locked openapi-to-rust openapi-to-rust --version`; const trial = `openapi-to-rust generate \\ - https://raw.githubusercontent.com/gpu-cli/openapi-to-rust/v0.7.0/tests/fixtures/operation_extraction/simple_get.json`; + https://raw.githubusercontent.com/gpu-cli/openapi-to-rust/v0.8.0/tests/fixtures/operation_extraction/simple_get.json`; const config = `[generator] spec_path = "openapi.yaml" diff --git a/website/src/pages/index.astro b/website/src/pages/index.astro index 9e868ca..f6ef9ad 100644 --- a/website/src/pages/index.astro +++ b/website/src/pages/index.astro @@ -42,7 +42,7 @@ const schemas = [ downloadUrl: "https://crates.io/crates/openapi-to-rust", programmingLanguage: "Rust", runtimePlatform: "Rust 1.88 or newer", - softwareVersion: "0.7.0", + softwareVersion: "0.8.0", license: "https://opensource.org/license/mit", keywords: "OpenAPI generator Rust, Rust API client generator, Axum server generator, Reqwest codegen", }, @@ -94,7 +94,7 @@ const schemas = [ Try it in your browser Install the CLI -

v0.7.0 · Rust 1.88+ · MIT licensed

+

v0.8.0 · Rust 1.88+ · MIT licensed

Date: Sun, 19 Jul 2026 20:19:41 -0600 Subject: [PATCH 2/2] ci: select root crate version by name in publish tag check .packages[0] became openapi-to-rust-wasm when the wasm workspace member was added, so the v0.8.0 tag check compared against v0.1.0. Co-Authored-By: Claude Fable 5 --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 4f1ae66..08b8a6d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -20,7 +20,7 @@ jobs: - uses: Swatinem/rust-cache@v2 - name: Verify tag matches crate version run: | - package_version="$(cargo metadata --no-deps --format-version 1 | jq -r '.packages[0].version')" + package_version="$(cargo metadata --no-deps --format-version 1 | jq -r '.packages[] | select(.name == "openapi-to-rust") | .version')" test "${GITHUB_REF_NAME}" = "v${package_version}" - run: cargo fmt --check - run: cargo clippy --all-features -- -D warnings