Skip to content

Commit 11cb7f1

Browse files
serde and schemars support for Axis (#591)
1 parent 838b69e commit 11cb7f1

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ You can find its changes [documented below](#0131-2026-05-13).
1515

1616
This release has an [MSRV][] of 1.85.
1717

18+
## Added
19+
- `serde` and `schemars` support for `Axis`. ([#591][] by [@waywardmonkeys][])
20+
1821
## [0.13.1][] (2026-05-13)
1922

2023
This release has an [MSRV][] of 1.85.
@@ -313,6 +316,7 @@ Note: A changelog was not kept for or before this release
313316
[#575]: https://github.com/linebender/kurbo/pull/575
314317
[#580]: https://github.com/linebender/kurbo/pull/580
315318
[#585]: https://github.com/linebender/kurbo/pull/585
319+
[#591]: https://github.com/linebender/kurbo/pull/591
316320

317321
[Unreleased]: https://github.com/linebender/kurbo/compare/v0.13.1...HEAD
318322
[0.13.1]: https://github.com/linebender/kurbo/releases/tag/v0.13.1

kurbo/src/axis.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ use crate::{Point, Size, Vec2};
55

66
/// An axis in the plane.
77
#[derive(Copy, Clone, PartialEq, Eq, Debug, Hash)]
8+
#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))]
9+
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
810
pub enum Axis {
911
/// The x axis.
1012
Horizontal,

0 commit comments

Comments
 (0)