Skip to content

Commit

Permalink
Bump version to 0.13.1
Browse files Browse the repository at this point in the history
  • Loading branch information
TedDriggs committed Dec 7, 2021
1 parent 926fed1 commit 1fe7e36
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## v0.13.1 (December 7, 2021)

- Add `FromAttributes` trait and macro [#151](https://github.com/TedDriggs/darling/issues/151)

## v0.13.0 (May 20, 2021)

- Update darling to 2018 edition [#129](https://github.com/TedDriggs/darling/pull/129)
Expand Down
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[package]
name = "darling"
version = "0.13.0"
version = "0.13.1"
authors = ["Ted Driggs <ted.driggs@outlook.com>"]
repository = "https://github.com/TedDriggs/darling"
documentation = "https://docs.rs/darling/0.13.0"
documentation = "https://docs.rs/darling/0.13.1"
description = """
A proc-macro library for reading attributes into structs when
implementing custom derives.
Expand All @@ -17,8 +17,8 @@ exclude = ["/.travis.yml", "/publish.sh", "/.github/**"]
maintenance = { status = "actively-developed" }

[dependencies]
darling_core = { version = "=0.13.0", path = "core" }
darling_macro = { version = "=0.13.0", path = "macro" }
darling_core = { version = "=0.13.1", path = "core" }
darling_macro = { version = "=0.13.1", path = "macro" }

[dev-dependencies]
proc-macro2 = "1.0.26"
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Darling
2. `FromDeriveInput` is implemented or derived by each proc-macro crate which depends on `darling`. This is the root for input parsing; it gets access to the identity, generics, and visibility of the target type, and can specify which attribute names should be parsed or forwarded from the input AST.
3. `FromField` is implemented or derived by each proc-macro crate which depends on `darling`. Structs deriving this trait will get access to the identity (if it exists), type, and visibility of the field.
4. `FromVariant` is implemented or derived by each proc-macro crate which depends on `darling`. Structs deriving this trait will get access to the identity and contents of the variant, which can be transformed the same as any other `darling` input.
5. `FromAttributes` is a lower-level version of the more-specific `FromDeriveInput`, `FromField`, and `FromVariant` traits. Structs deriving this trait get a meta-item extractor and error collection which works for any syntax element, including traits, trait items, and functions. This is useful for non-derive proc macros.

## Additional Modules
* `darling::ast` provides generic types for representing the AST.
Expand Down
2 changes: 1 addition & 1 deletion core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "darling_core"
version = "0.13.0"
version = "0.13.1"
authors = ["Ted Driggs <ted.driggs@outlook.com>"]
repository = "https://github.com/TedDriggs/darling"
description = """
Expand Down
4 changes: 2 additions & 2 deletions macro/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "darling_macro"
version = "0.13.0"
version = "0.13.1"
authors = ["Ted Driggs <ted.driggs@outlook.com>"]
repository = "https://github.com/TedDriggs/darling"
description = """
Expand All @@ -13,7 +13,7 @@ edition = "2018"
[dependencies]
quote = "1.0.9"
syn = "1.0.69"
darling_core = { version = "=0.13.0", path = "../core" }
darling_core = { version = "=0.13.1", path = "../core" }

[lib]
proc-macro = true

0 comments on commit 1fe7e36

Please sign in to comment.