From c8c97e823b0bb8bb411151858d8e139e11408fa0 Mon Sep 17 00:00:00 2001 From: Adam Basfop Cavendish Date: Sun, 9 Aug 2026 23:32:18 +0800 Subject: [PATCH] chore: prepare 0.2.2 release - Bump workspace versions and stable installer links to 0.2.2 - Publish pointer-sized Rust API call errors and document allocation behavior --- CHANGELOG.md | 2 ++ Cargo.lock | 8 ++++---- Cargo.toml | 2 +- README.md | 2 +- docs/src/getting_started.md | 2 +- docs/src/rust_config.md | 5 ++++- 6 files changed, 13 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 56b9a64e..3974ae60 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.2.2] + ### Changed - Store the private representation of generated Rust `ApiCallError` values behind diff --git a/Cargo.lock b/Cargo.lock index 42f31cc7..bd55a27c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -447,7 +447,7 @@ checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582" [[package]] name = "fixture-generator-additional-properties" -version = "0.2.1" +version = "0.2.2" dependencies = [ "axum", "axum-extra", @@ -468,7 +468,7 @@ dependencies = [ [[package]] name = "fixture-generator-enum-repr" -version = "0.2.1" +version = "0.2.2" dependencies = [ "axum", "axum-extra", @@ -489,7 +489,7 @@ dependencies = [ [[package]] name = "fixture-generator-petstore" -version = "0.2.1" +version = "0.2.2" dependencies = [ "axum", "axum-extra", @@ -1032,7 +1032,7 @@ checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe" [[package]] name = "openapi-nexus" -version = "0.2.1" +version = "0.2.2" dependencies = [ "clap", "derive_more", diff --git a/Cargo.toml b/Cargo.toml index f309e70d..c855888c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,7 @@ members = [ ] [workspace.package] -version = "0.2.1" +version = "0.2.2" edition = "2024" rust-version = "1.90" description = "OpenAPI 3.x multi-language code generator" diff --git a/README.md b/README.md index 87333c90..93dbac46 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ OpenAPI Nexus transforms OpenAPI specifications into type-safe client libraries. **Shell installer (no Rust toolchain needed):** ```sh -curl --proto '=https' --tlsv1.2 -LsSf https://github.com/rust-codegen-group/openapi-nexus/releases/download/0.2.1/openapi-nexus-installer.sh | sh +curl --proto '=https' --tlsv1.2 -LsSf https://github.com/rust-codegen-group/openapi-nexus/releases/download/0.2.2/openapi-nexus-installer.sh | sh ``` **Nightly build (latest main):** diff --git a/docs/src/getting_started.md b/docs/src/getting_started.md index 4110a004..0326bd9e 100644 --- a/docs/src/getting_started.md +++ b/docs/src/getting_started.md @@ -5,7 +5,7 @@ **Shell installer (no Rust toolchain needed):** ```sh -curl --proto '=https' --tlsv1.2 -LsSf https://github.com/rust-codegen-group/openapi-nexus/releases/download/0.2.1/openapi-nexus-installer.sh | sh +curl --proto '=https' --tlsv1.2 -LsSf https://github.com/rust-codegen-group/openapi-nexus/releases/download/0.2.2/openapi-nexus-installer.sh | sh ``` **Nightly build (latest main):** diff --git a/docs/src/rust_config.md b/docs/src/rust_config.md index 32d3b581..acb1940b 100644 --- a/docs/src/rust_config.md +++ b/docs/src/rust_config.md @@ -38,7 +38,10 @@ async fn run_workflow( `ApiCallError` exposes the operation identifier (generated from the HTTP method and path if the OpenAPI document omits one) and optional HTTP status, native headers, and raw response body. Transport errors and error-body decoding failures remain available through `std::error::Error::source()`. -Conversion consumes the operation-specific error and erases its decoded payload type. Match the operation error before conversion when that payload is needed. +Conversion consumes the operation-specific error, performs one heap allocation +for the pointer-sized erased representation, and erases its decoded payload +type. Operation-specific errors remain inline until conversion. Match the +operation error before conversion when its decoded payload is needed. ### `thiserror`