Releases: kas-gui/impl-tools
Releases · kas-gui/impl-tools
0.10.1
What's Changed
- Cleanup warnings; CI; dependabot by @dhardy in #38
- Remove usage of unmaintained crate proc-macro-error. by @AurelienFT in #41
- MSRV=1.61; prepare release 0.10.1 by @dhardy in #42
New Contributors
- @AurelienFT made their first contribution in #41
Full Changelog: 0.10.0...0.10.1
0.10.0
0.9.1
0.9.0
0.8.0
- Bump MSRV to 1.58.0 (#31)
#[autoimpl(Clone, Debug, PartialEq, Eq, Hash)]
now all support enums
(with optionalwhere
clause, withoutignore
clauses) (#31)- Add
impl_tools_lib::ImplTrait::enum_impl
,enum_items
with default impls;
ImplTraits::expand
now supports enums (#31) - Add
impl_tools_lib::Ident_formatter
utility (#31)
Note: PartialOrd, Ord
could now support enums (unimplemented). ignore
and
using
clauses are deliberately not supported (due to syntactic ambiguity).
0.6.2, lib 0.7.1
- Fix
#[autoimpl]
on traits: copy#[cfg(..)]
attributes (#30)
0.6.1, lib 0.7.0
- Better diagnostics for trait-redefinition: require
Deref
bound (#28) - Document
Deref
with customTarget
type
impl-tools-lib
has breaking changes and therefore a higher version number (0.7.0):
- Replace free function
impl_generics
with methodGenerics::impl_generics
- Add method
Generics::ty_generics
Note: next breaking release for impl-tools
should bump version to match -lib
.
0.6.0
0.5.2: singleton!
[0.5.2] — 2022-10-06
- Add
singleton!
macro (#25)
use std::fmt;
fn main() {
let world = "world";
let says_hello_world = impl_tools::singleton! {
struct(&'static str = world);
impl fmt::Display for Self {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "hello {}", self.0)
}
}
};
assert_eq!(format!("{}", says_hello_world), "hello world");
}