File tree Expand file tree Collapse file tree 6 files changed +20
-8
lines changed Expand file tree Collapse file tree 6 files changed +20
-8
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,18 @@ All notable changes to this project will be documented in this file.
4
4
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
5
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
7
+ ## [0.3.0]
8
+ ### Changed
9
+ - Depend on frunk v0.4
10
+
11
+ ### Fixed
12
+ - Non-exposed dependency bumps
13
+ - frunk-macro-helpers v0.0.5
14
+ - syn v1.0
15
+ - proc-macro2 v1.0
16
+ - quote v1.0
17
+ - Moved to Github Actions and Merge Queues for CI
18
+
7
19
## [0.2.1] - 03-03-2021
8
20
### Fixed
9
21
- Correctly handle types with `where` clauses
Original file line number Diff line number Diff line change @@ -4,3 +4,4 @@ members = [
4
4
" derive-tests" ,
5
5
" core" ,
6
6
]
7
+ resolver = " 2"
Original file line number Diff line number Diff line change 1
1
# Frunk Enum Support
2
2
3
- [ ![ Crates.io - frunk-enum] ( https://img.shields.io/crates/v/frunk-enum-core.svg )] ( https://crates.io/crates/frunk-enum-core ) [ ![ Build Status ] ( https://travis-ci.org/Metaswitch/frunk-enum.svg?branch=master )] ( https://travis-ci.org/Metaswitch/frunk-enum ) [ ![ License: MIT/APACHE-2.0] ( https://img.shields.io/badge/License-MIT%2FAPACHE--2.0-green.svg )] ( https://opensource.org/licenses/MIT )
3
+ [ ![ Crates.io - frunk-enum] ( https://img.shields.io/crates/v/frunk-enum-core.svg )] ( https://crates.io/crates/frunk-enum-core ) [ ![ License: MIT/APACHE-2.0] ( https://img.shields.io/badge/License-MIT%2FAPACHE--2.0-green.svg )] ( https://opensource.org/licenses/MIT )
4
4
5
5
## Usage
6
6
@@ -12,7 +12,7 @@ https://docs.rs/frunk/latest/frunk/labelled/trait.LabelledGeneric.html.
12
12
13
13
To take advantage of this feature for your own enum you need to:
14
14
15
- * Add the ` frunk-enum-derive ` crate to your ` Cargo.toml `
15
+ * Add the ` frunk-enum-derive ` as a ` [dev-dependency] ` to your ` Cargo.toml `
16
16
* Mark the enum with the custom derive:
17
17
18
18
```
@@ -22,7 +22,8 @@ To take advantage of this feature for your own enum you need to:
22
22
Baz { name: String, id: Identity },
23
23
}
24
24
```
25
- * Add the `frunk-enum-core` and `frunk-core` crates to your `Cargo.toml`
25
+ * Add the `frunk-enum-core` and `frunk-core` crates as `[depednency]` entries
26
+ to your `Cargo.toml`
26
27
* Then (assuming there's a `NewFoo` enum with the same structure as `Foo`) you can write:
27
28
28
29
```
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " frunk-enum-core"
3
- version = " 0.2.1 "
3
+ version = " 0.3.0 "
4
4
authors = [" Metaswitch Networks Ltd" ]
5
5
edition = " 2021"
6
6
description = " Implemenation of genericized enums for use with frunk"
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " frunk-enum-derive"
3
- version = " 0.2.1 "
3
+ version = " 0.3.0 "
4
4
authors = [" Metaswitch Networks Ltd" ]
5
5
edition = " 2021"
6
6
description = " Derive macros to implement the frunk::LabelledGeneric trait on enums"
@@ -22,7 +22,7 @@ itertools = "0.12"
22
22
frunk_proc_macro_helpers = " 0.1"
23
23
24
24
[dev-dependencies ]
25
- frunk-enum-core = { version = " 0.2.1 " , path = " ../core" }
25
+ frunk-enum-core = { version = " 0.3.0 " , path = " ../core" }
26
26
frunk = " 0.4.1"
27
27
frunk_core = " 0.4.1"
28
28
syn = { version = " 1.0" , features = [" full" ] }
You can’t perform that action at this time.
0 commit comments