| 1 |
# Changelog |
| 2 |
All notable changes to this project will be documented in this file. |
| 3 |
|
| 4 |
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) |
| 5 |
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). |
| 6 |
|
| 7 |
## [Unreleased] |
| 8 |
|
| 9 |
## 0.7.1 - 2023-04-24 |
| 10 |
### Fixed |
| 11 |
- Fixed bug where the macro fails on valid default expression that is also a |
| 12 |
valid attribute meta because it was expecting the `_code` hack. |
| 13 |
|
| 14 |
## 0.7.0 - 2023-04-23 |
| 15 |
### Changed |
| 16 |
- Update `syn` to version 2 |
| 17 |
|
| 18 |
## 0.6.0 - 2019-12-13 |
| 19 |
### Changed |
| 20 |
- Update `syn`, `quote` and `proc-macro2` versions to `1.*.*`. |
| 21 |
|
| 22 |
## 0.5.2 - 2019-04-13 |
| 23 |
### Fixed |
| 24 |
- Omit linting of generated code by adding `#[automatically_derived]` attribute. |
| 25 |
|
| 26 |
## 0.5.1 - 2019-03-01 |
| 27 |
### Fixed |
| 28 |
- Don't use a multi-pattern `if let`, as this unnecessarily requires version |
| 29 |
1.33.0 of Rust. |
| 30 |
|
| 31 |
## 0.5.0 - 2019-03-01 |
| 32 |
### Changed |
| 33 |
- When the default is a string literal, strap an `.into()` after it to |
| 34 |
automatically convert it to `String` when needed. |
| 35 |
|
| 36 |
## 0.4.0 - 2019-02-19 |
| 37 |
### Added |
| 38 |
- `#[default(_code = "...")]` syntax for defaults that cannot be parsed as |
| 39 |
attributes no matter what. |
| 40 |
|
| 41 |
## 0.3.0 - 2018-11-02 |
| 42 |
### Changed |
| 43 |
- Require Rust 1.30+. |
| 44 |
- Use direct attribute value instead of having to wrap them in strings. |
| 45 |
- Moved the docs from the module level to the custom derive. |
| 46 |
|
| 47 |
### Added |
| 48 |
- `#[default(...)]` syntax in addition to `#[default = ...]`. This is required |
| 49 |
to deal with some parsing limitations. |
| 50 |
|
| 51 |
## 0.2.0 - 2017-08-21 |
| 52 |
### Added |
| 53 |
- Support generic types. |
| 54 |
- Generate doc for the trait impl that describes the default values. |
| 55 |
|
| 56 |
## 0.1.0 - 2017-08-18 |
| 57 |
### Added |
| 58 |
- Custom derive `SmartDefault` for implementing the `Default` trait. |
| 59 |
- `#[default = ...]` attribute on fields for smart-default. |