Skip to content

Commit

Permalink
fix: derive serde traits
Browse files Browse the repository at this point in the history
  • Loading branch information
wash2 committed Oct 17, 2024
1 parent 0708b5a commit a6bb56b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/src/font.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ pub enum Family {
/// The weight of some text.
#[allow(missing_docs)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Default)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub enum Weight {
Thin,
ExtraLight,
Expand All @@ -87,6 +88,7 @@ pub enum Weight {
/// The width of some text.
#[allow(missing_docs)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Default)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub enum Stretch {
UltraCondensed,
ExtraCondensed,
Expand All @@ -103,6 +105,7 @@ pub enum Stretch {
/// The style of some text.
#[allow(missing_docs)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Default)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub enum Style {
#[default]
Normal,
Expand Down

0 comments on commit a6bb56b

Please sign in to comment.