Skip to content

Commit ffb9cc8

Browse files
committed
Update CHANGELOG
1 parent b0bfdfd commit ffb9cc8

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

CHANGELOG.md

+35
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,40 @@
11
# Changelog
22

3+
## v0.20.0 (April 27, 2023)
4+
5+
- Bump syn to version 2, courtesy of @jonasbb [#227](https://github.com/TedDriggs/darling/issues/227)
6+
7+
### Breaking Changes
8+
9+
- Replace all occurrences of syn::NestedMeta with darling::ast::NestedMeta.
10+
11+
- Replacement for the deprecated AttributeArgs:
12+
13+
```rust
14+
// Before
15+
16+
parse_macro_input!(args as AttributeArgs);
17+
18+
// After
19+
20+
match NestedMeta::parse_meta_list(args) {
21+
Ok(v) => v,
22+
Err(e) => {
23+
return TokenStream::from(Error::from(e).write_errors());
24+
}
25+
};
26+
```
27+
28+
- In GenericParamExt, `LifetimeDef` is now `LifetimeParam`.
29+
- In GenericParamExt, `as_lifetime_def` is renamed to `as_lifetime_param`.
30+
- Flag and SpannedValue no longer implement `syn::spanned::Spanned`.
31+
- The MSRV (minimum supported Rust version) is now 1.56, because of syn.
32+
33+
### Deprecation Warnings
34+
35+
In previous versions of `darling`, arbitrary expressions were passed in attributes by wrapping them in quotation marks.
36+
v0.20.0 preserves this behavior for `syn::Expr`, but as a result a field expecting a `syn::Expr` cannot accept a string literal - it will incorrectly attempt to parse the contents. If this is an issue for you, please add a comment to [#229](https://github.com/TedDriggs/darling/issues/229).
37+
338
## v0.14.4 (March 9, 2023)
439

540
- Add support for child diagnostics when `diagnostics` feature enabled [#224](https://github.com/TedDriggs/darling/issues/224)

0 commit comments

Comments
 (0)