Nice tips! Let me promote some of my projects (and I wish I can reach more people with my works that I work really hard to make):
obsidian: A Rust web framework which we aim to make it more developer-friendly (as people always say Rust is hard to learn). It is still on an early stage, and we are discussing about how do we make it become a productivity tool for developers.
aion: A friendly Rust utility crate for duration and datetime.
// It allows you to write the duration and datetime like this2.days();// Duration for 2 days2.seconds();// Duration for 2 seconds2.hours().from_now();// Datetime for 2 hours from now7.days().ago();// Datetime for 1 week ago1.weeks().ago();// Datetime for 1 week ago
Nice tips! Let me promote some of my projects (and I wish I can reach more people with my works that I work really hard to make):
This is one great DSL to express datetime values! Looks very nice and readable.
Thanks! This is inspired by Ruby on Rails where in Rails you only need to write
1.day.ago
(without parenthesis). It is even english-ish.