5.4 KiB
5.4 KiB
Changelog
v0.10.2 (October 30, 2019)
- Bump syn dependency to 1.0.1 #83
v0.10.1 (September 25, 2019)
- Fix test compilation errors #81
v0.10.0 (August 15, 2019)
- Bump syn and quote to 1.0 #79
- Increase rust version to 1.31
v0.9.0 (March 20, 2019)
- Enable "did you mean" suggestions by default
- Make
darling_core::{codegen, options}
private #58 - Fix
Override::as_mut
: #66
v0.8.6 (March 18, 2019)
- Added "did you mean" suggestions for unknown fields behind the
suggestions
flag #60 - Added
Error::unknown_field_with_alts
to support the suggestion use-case. - Added
ast::Fields::len
andast::Fields::is_empty
methods.
v0.8.5 (February 4, 2019)
- Accept unquoted positive numeric literals #52
- Add
FromMeta
to thesyn::Lit
enum and its variants - Improve error message for unexpected literal formats to not say "other"
v0.8.4 (February 4, 2019)
- Use
syn::Error
to provide precise errors beforeproc_macro::Diagnostic
is available - Add
diagnostics
feature flag to toggle between stable and unstable error backends - Attach error information in more contexts
- Add
allow_unknown_fields
to support parsing the same attribute multiple times for different macros #51 - Proc-macro authors will now see better errors in
darling
attributes
v0.8.3 (January 21, 2019)
- Attach spans to errors in generated trait impls #37
- Attach spans to errors for types with provided bespoke implementations
- Deprecate
set_span
from 0.8.2, as spans should never be broadened after being initially set
v0.8.2 (January 17, 2019)
- Add spans to errors to make quality warnings and errors easy in darling. This is blocked on diagnostics stabilizing.
- Add
darling::util::SpannedValue
so proc-macro authors can remember position information alongside parsed values.
v0.8.0
- Update dependency on
syn
to 0.15 #44. Thanks to @hcpl
v0.7.0 (July 24, 2018)
- Update dependencies on
syn
andproc-macro2
- Add
util::IdentString
, which acts as an Ident or its string equivalent
v0.6.3 (May 22, 2018)
- Add support for
Uses*
traits in where predicates
v0.6.2 (May 22, 2018)
- Add
usage
module for tracking type param and lifetime usage in generic declarations - Don't add
FromMeta
bounds to type parameters only used by skipped fields #40
v0.6.1 (May 17, 2018)
- Fix an issue where the
syn
update broke shape validation #36
v0.6.0 (May 15, 2018)
Breaking Changes
- Renamed
FromMetaItem
toFromMeta
, and renamedfrom_meta_item
method tofrom_meta
- Added dedicated
derive(FromMetaItem)
which panics and redirects users toFromMeta
v0.5.0 (May 10, 2018)
- Add
ast::Generics
andast::GenericParam
to work with generics in a manner similar toast::Data
- Add
ast::GenericParamExt
to support alternate representations of generic parameters - Add
util::WithOriginal
to get a parsed representation and syn's own struct for a syntax block - Add
FromGenerics
andFromGenericParam
traits (without derive support) - Change generated code for
generics
magic field to invokeFromGenerics
trait during parsing - Add
FromTypeParam
trait #30. Thanks to @upsuper
v0.4.0 (April 5, 2018)
- Update dependencies on
proc-macro
,quote
, andsyn
#26. Thanks to @hcpl
v0.3.3 (April 2, 2018)
YANKED
v0.3.2 (March 13, 2018)
- Derive
Default
ondarling::Ignored
(fixes #25).
v0.3.1 (March 7, 2018)
- Support proc-macro2/nightly #24. Thanks to @kdy1
v0.3.0 (January 26, 2018)
Breaking Changes
- Update
syn
to 0.12 #20. Thanks to @Eijebong - Update
quote
to 0.4 #20. Thanks to @Eijebong - Rename magic field
body
in derivedFromDeriveInput
structs todata
to stay in sync withsyn
- Rename magic field
data
in derivedFromVariant
structs tofields
to stay in sync withsyn
v0.2.2 (December 5, 2017)
- Update
lazy_static
to 1.0 #15. Thanks to @Eijebong
v0.2.1 (November 28, 2017)
- Add
impl FromMetaItem
for integer types #15