baoyachi / duration-str

duration string parser write by Rust.Playground(REPL)
https://baoyachi.github.io/duration-str/
36 stars 9 forks source link

`duration-str` does not export its `Result` or `Error` type #11

Closed FrancisRussell closed 1 year ago

FrancisRussell commented 1 year ago

I needed to write a wrapper around one of the parse functions to make it play nicely with clap's derive functionality, but I found I could not do this without introducing a dependency on anyhow since aliases for the error and result types used aren't available in the crate directly.

baoyachi commented 1 year ago

I‘m try refactor duration-str Result

baoyachi commented 1 year ago

@FrancisRussell Now, published new version, please use

[dependencies]
duration-str = "0.5.0"