Skip to content

Commit 3e2250c

Browse files
Update changelogs from fern repo (#4478)
Co-authored-by: iamnamananand996 <31537362+iamnamananand996@users.noreply.github.com>
1 parent 41ea863 commit 3e2250c

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

fern/products/sdks/overview/rust/changelog/2026-03-21.mdx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
## 0.24.0
2+
**`(feat):`** Improve discriminated union design with inlined variants and constructors. When an inner
3+
type is only referenced by a single union variant, its fields are now inlined directly into
4+
the enum variant instead of using a wrapper struct with `#[serde(flatten)]`. All enum
5+
variants now include `#[non_exhaustive]` for forward compatibility, and constructor methods
6+
are generated for every variant (required since `#[non_exhaustive]` prevents direct
7+
construction outside the crate). Empty variants use struct syntax (`Variant {}`) instead
8+
of unit syntax.
9+
10+
111
## 0.23.0
212
**`(feat):`** Generate builders for all struct types. The builder pattern is inspired by
313
other popular Rust SDKs (e.g. AWS), so that users now have the option between the

0 commit comments

Comments
 (0)