Skip to content

Commit 9ce771e

Browse files
committed
Add documentation and Travis links
Signed-off-by: Anders Kaseorg <[email protected]>
1 parent 3a2a520 commit 9ce771e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ version = "0.0.1"
44
license = "MIT"
55
description = "Macro to generate num::FromPrimitive instances for enum that works in Rust 1.0"
66
authors = ["Anders Kaseorg <[email protected]>"]
7+
documentation = "https://andersk.github.io/enum_primitive-rs/enum_primitive/"
78
repository = "https://github.com/andersk/enum_primitive-rs.git"
89
homepage = "https://github.com/andersk/enum_primitive-rs"
10+
readme = "README.md"
911

1012
[dependencies]
1113
num = "0.1"

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
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+
13
This 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
1012
have an explicit discriminator value. This restriction may be
1113
relaxed in future versions.
1214

15+
## Documentation
16+
17+
https://andersk.github.io/enum_primitive-rs/enum_primitive/
18+
1319
## Usage
1420

1521
Add the following to your `Cargo.toml` file:

0 commit comments

Comments
 (0)