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"
44license = " MIT"
55description = " Macro to generate num::FromPrimitive instances for enum that works in Rust 1.0"
66authors = [" Anders Kaseorg <andersk@mit.edu>" ]
7+ documentation = " https://andersk.github.io/enum_primitive-rs/enum_primitive/"
78repository = " https://github.com/andersk/enum_primitive-rs.git"
89homepage = " https://github.com/andersk/enum_primitive-rs"
10+ readme = " README.md"
911
1012[dependencies ]
1113num = " 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+
13This crate exports a macro ` enum_from_primitive! ` that wraps an
24` enum ` declaration and automatically adds an implementation of
35` num::FromPrimitive ` (reexported here), to allow conversion from
@@ -10,6 +12,10 @@ The current implementation requires all variants of the enum to
1012have an explicit discriminator value. This restriction may be
1113relaxed in future versions.
1214
15+ ## Documentation
16+
17+ https://andersk.github.io/enum_primitive-rs/enum_primitive/
18+
1319## Usage
1420
1521Add the following to your ` Cargo.toml ` file:
You can’t perform that action at this time.
0 commit comments