Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Error Types, Serde Support, Improved #![no_std] Support #10

Merged
merged 29 commits into from
Aug 27, 2024

Conversation

poshcoe
Copy link
Contributor

@poshcoe poshcoe commented Aug 26, 2024

Fixes #8 & #9

  • Custom error types have been implemented, removing the anyhow dependency.
  • Serialisation of public types is now optionally derived via serde.
  • Methods using String are now usable on #![no_std] via the alloc feature.
  • New write_iso methods are available for writing static buffers with ISO formatted datetimes.

Note:
Custom error types implement core::error::Error for #![no_std], requiring the error_in_core feature, which is stabilising in Rust 1.81. Until 1.81 is released on September 5th, the core::error::Error implementations are behind the nightly feature.

Copy link

codecov bot commented Aug 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (68796d7) to head (b9756d8).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##              main       #10    +/-   ##
==========================================
  Coverage   100.00%   100.00%            
==========================================
  Files            3         4     +1     
  Lines          686       862   +176     
==========================================
+ Hits           686       862   +176     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@poshcoe poshcoe linked an issue Aug 26, 2024 that may be closed by this pull request
@poshcoe poshcoe merged commit 01e3691 into main Aug 27, 2024
10 checks passed
@poshcoe poshcoe deleted the touch-up branch August 27, 2024 01:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

This crate can be made no-std and no-alloc try_from_iso_tod can panic from unchecked split_ats
1 participant