File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,10 @@ version = "0.0.1"
4
4
license = " MIT"
5
5
description = " Macro to generate num::FromPrimitive instances for enum that works in Rust 1.0"
6
6
authors = [
" Anders Kaseorg <[email protected] >" ]
7
+ documentation = " https://andersk.github.io/enum_primitive-rs/enum_primitive/"
7
8
repository = " https://github.com/andersk/enum_primitive-rs.git"
8
9
homepage = " https://github.com/andersk/enum_primitive-rs"
10
+ readme = " README.md"
9
11
10
12
[dependencies ]
11
13
num = " 0.1"
Original file line number Diff line number Diff line change
1
+ # enum_primitive [ ![ Build Status] ( https://travis-ci.org/andersk/enum_primitive-rs.svg?branch=master )] ( https://travis-ci.org/andersk/enum_primitive-rs )
2
+
1
3
This crate exports a macro ` enum_from_primitive! ` that wraps an
2
4
` enum ` declaration and automatically adds an implementation of
3
5
` num::FromPrimitive ` (reexported here), to allow conversion from
@@ -10,6 +12,10 @@ The current implementation requires all variants of the enum to
10
12
have an explicit discriminator value. This restriction may be
11
13
relaxed in future versions.
12
14
15
+ ## Documentation
16
+
17
+ https://andersk.github.io/enum_primitive-rs/enum_primitive/
18
+
13
19
## Usage
14
20
15
21
Add the following to your ` Cargo.toml ` file:
You can’t perform that action at this time.
0 commit comments