Skip to content

v0.1.0 (2021-06-18)

Compare
Choose a tag to compare
@loichyan loichyan released this 18 Jun 11:02
· 92 commits to main since this release

BREAKING CHANGE

  • The tuple variant will be resolved in a similar way to the Sturct Variant, which means you have to explicitly provide @source and @context.

Feat

  • macro: support add attributes to source and context fields
  • ext: add context_with()
  • macro: support generic context
  • macro: support empty tuple variant
  • support visibility control
  • support tuple variant
  • move thisctx::ext::{IntoError,NoneError} to public
  • implement converting from context without source for error enum
  • implement IntoError for context struts, add ResultExt and OptionExt
  • support tuple struct context
  • use proc_macro instead of macro_rules
  • support unit and struct enum variants

Refactor

  • macro: eliminate redundant code
  • macro: eliminate redundant code
  • rewrite thisctx_impl::expand
  • rename local variables, remove redundant code