GitPedia
elichai

elichai/log-derive

A procedural macro for auto logging output of functions

4 Releases
Latest: 6y ago
v0.4.0Latest
elichaielichai·6y ago·December 20, 2019
GitHub

📋 Changes

  • Add a `log_ts` feature that logs the time it takes the function to run (std only) (Thanks @alanthinker )
  • Add support for custom Result types like `type MyResult<T> = Result<T, MyErr>;`.
  • Bug fixes and more.
v0.2.4
elichaielichai·7y ago·February 6, 2019
GitHub

📋 Changes

  • Optimized the resulting ASM Code by using `move` on the closure and by not saving it into a variable.
  • Preserved more of the original spans, although right now they don't help a lot https://github.com/rust-lang/rust/issues/43081
  • Updated the Fibonacci example
v0.2.0
elichaielichai·7y ago·January 31, 2019
GitHub

Now it works in traits too. instead of creating a second function it now creates a closure.

v0.1.0
elichaielichai·7y ago·January 31, 2019
GitHub