parse-duration-rs is a Rust port of Golang parse duration
It parses a duration string in a short form such as
and return duration in nanoseconds.
The crate is called
go-parse-duration and you can depend on it via cargo:
[dependencies] go-parse-duration = "0.1"
Usage with Chrono
Converting to Chrono duration can be done easily:
use Duration; use ;