blanket

A simple Rust macro to derive blanket implementations for your traits.

MIT License

Downloads
305K
Stars
22
Committers
4
blanket - v0.3.0 Latest Release

Published by althonos over 1 year ago

Fixed

  • blanket macro failing to process types with generic arguments and associated types (#8, by @JustinLovinger).

Changed

  • Updated syn dependency to v2.0.
  • #[blanket(default = ...)] now also accepts a path instead of a string literal.
blanket - 0.2.0

Published by althonos over 3 years ago

Added

  • Implementation for #[blanket(derive(Arc))] (#4)
  • Support for associated type in derived traits (#6).

Fixed

  • Missing features for the syn crate preventing the crate to compile without leaking dev-dependencies (#5).
blanket - 0.1.5

Published by althonos over 3 years ago

Fixed

  • Regression in v0.1.4 causing trait-associated lifetimes to be erased.
blanket - 0.1.4

Published by althonos over 3 years ago

Fixed

  • Generics being erroneously repeated when deriving a trait with
    bounded generic arguments (#2).
blanket - 0.1.3

Published by althonos about 4 years ago

Fixed

  • Handling of where clauses for traits with generic parameters,
    by @alexanderlinne (#1).
blanket - 0.1.2

Published by althonos over 4 years ago

Changed

  • syn now only compiles with full
    feature in release mode.

Removed

  • Unused darling dependency.
blanket - 0.1.1

Published by althonos over 4 years ago

Added

  • Support for generic arguments in trait definition.
  • Implementation of #[blanket(derive(Rc))].

Fixed

  • Error messages of #[blanket(derive(Mut))] referring Ref erroneously.
  • Implementation of fn(self) methods when deriving for Box.

Removed

  • Unused strum dependency.
blanket - 0.1.0

Published by althonos over 4 years ago

Initial release.