8000 GitHub - ArsnealX/rs-fsrs: Rust-based Scheduler for FSRS
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

ArsnealX/rs-fsrs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rs-fsrs

A rust implementation of FSRS scheduler.

Install:

[dependencies]
fsrs = { git = "https://github.com/open-spaced-repetition/rs-fsrs" }
chrono = { version = "0.4.23", features = ["serde"] }

Quickstart:

use chrono::Utc;
use fsrs::{FSRS, Card, Rating::Easy};

fn main() {
    let fsrs = FSRS::default();
    let card = Card::new();
    
    let scheduled_cards = fsrs.schedule(card, Utc::now());

    let updated_card = scheduled_cards.select_card(Easy);

    println!("{:?}", updated_card.log);
}

Development

run

cargo fmt
cargo clippy -- -Dwarnings
cargo clippy -- -D clippy::nursery
cargo test --release

Other implementation

fsrs-rs contains a Rust API for training FSRS parameters, and for using them to schedule cards.

LICENSE

MIT

About

Rust-based Scheduler for FSRS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%
0