open-spaced-repetition / rs-fsrs

Rust-based Scheduler for FSRS
https://crates.io/crates/rs-fsrs
MIT License
24 stars 6 forks source link

Add Serde support (hidden behind a feature) #14

Closed DaraJKong closed 10 months ago

DaraJKong commented 10 months ago

Why?

For interoperability. See Rust API Guidelines Checklist.

Because users of the rs-fsrs crate cannot implement or derive Serialize or Deserialize traits by themselves. It is a best practice to add a serde feature for enabling users to optionally serialize data structs.