Skip to content

Commit

Permalink
Fixes compilation issues when using the serde feature in no-std env…
Browse files Browse the repository at this point in the history
…ironments.
  • Loading branch information
Stoeoef committed Nov 14, 2023
1 parent 1076253 commit b900b0e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/spade_actions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- uses: actions-rs/cargo@v1
with:
command: check
args: --no-default-features
args: --no-default-features --features=serde

test:
name: Test Suite
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [2.3.1] - 2023-11-14

# Fix
- Fixes compilation issues when using `serde` together with `--no-default-features`

## [2.3.0] - 2023-11-09
- Adds `no_std` support (when using `default-features = false`, #92)

Expand Down
2 changes: 2 additions & 0 deletions src/delaunay_core/hint_generator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ pub trait HintGenerator<S: SpadeNum>: Default {
serde(crate = "serde")
)]
pub struct LastUsedVertexHintGenerator {
// Serde does not implement `(De)Serialize` for `AtomicUsize` in no_std environments.
#[cfg_attr(feature = "serde", serde(skip))]
index: AtomicUsize,
}

Expand Down

0 comments on commit b900b0e

Please sign in to comment.