This is a straight swap of the libraries. As croner doesn't provide a TryInto<Schedule, Error = E> trait I've removed some of the generic typing when constructing the schedules. To me this seemed preferable to writing a wrapper on the Croner::Cron type, but my rust experience is limited and I'm happy to take feedback and adjust as needed.
I've defaulted all usages of Croner::Cron to require the seconds field, as well as to use 'day of month' and 'day of week' to keep things the same as they were previously in this library.
Related to #74
Swaps from the
cron
library tocroner
to support a wider range of cron expressions (see https://github.com/Hexagon/croner-rust?tab=readme-ov-file#why-croner-instead-of-cron-or-saffron)This is a straight swap of the libraries. As
croner
doesn't provide aTryInto<Schedule, Error = E>
trait I've removed some of the generic typing when constructing the schedules. To me this seemed preferable to writing a wrapper on theCroner::Cron
type, but my rust experience is limited and I'm happy to take feedback and adjust as needed.I've defaulted all usages of
Croner::Cron
to require the seconds field, as well as to use 'day of month' and 'day of week' to keep things the same as they were previously in this library.