Skip to content

Commit 5abc54d

Browse files
authored
Merge pull request #48 from async-rs/readme
rework readme
2 parents c1c91c7 + 5c4e16a commit 5abc54d

File tree

2 files changed

+78
-15
lines changed

2 files changed

+78
-15
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ repository = "https://github.com/async-rs/futures-timer"
99
homepage = "https://github.com/async-rs/futures-timer"
1010
documentation = "https://docs.rs/futures-timer"
1111
description = """
12-
Timeouts and intervals for futures.
12+
Timeouts for futures.
1313
"""
1414

1515
[dependencies]

README.md

Lines changed: 77 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,86 @@
1-
# futures-timer
1+
<h1 align="center">futures-timer</h1>
2+
<div align="center">
3+
<strong>
4+
Timeouts for futures.
5+
</strong>
6+
</div>
27

3-
[Documentation](https://docs.rs/futures-timer)
8+
<br />
49

5-
A library for working with timers, timeouts, and intervals with the `futures`
6-
crate.
10+
<div align="center">
11+
<!-- Crates version -->
12+
<a href="https://crates.io/crates/futures-timer">
13+
<img src="https://img.shields.io/crates/v/futures-timer.svg?style=flat-square"
14+
alt="Crates.io version" />
15+
</a>
16+
<!-- Downloads -->
17+
<a href="https://crates.io/crates/futures-timer">
18+
<img src="https://img.shields.io/crates/d/futures-timer.svg?style=flat-square"
19+
alt="Download" />
20+
</a>
21+
<!-- docs.rs docs -->
22+
<a href="https://docs.rs/futures-timer">
23+
<img src="https://img.shields.io/badge/docs-latest-blue.svg?style=flat-square"
24+
alt="docs.rs docs" />
25+
</a>
26+
<a href="https://discord.gg/JvZeVNe">
27+
<img src="https://img.shields.io/discord/598880689856970762.svg?logo=discord&style=flat-square"
28+
alt="chat" />
29+
</a>
30+
</div>
731

8-
# License
32+
<div align="center">
33+
<h3>
34+
<a href="https://docs.rs/futures-timer">
35+
API Docs
36+
</a>
37+
<span> | </span>
38+
<a href="https://github.com/async-rs/futures-timer/releases">
39+
Releases
40+
</a>
41+
<span> | </span>
42+
<a href="https://async.rs/contribute">
43+
Contributing
44+
</a>
45+
</h3>
46+
</div>
947

10-
This project is licensed under either of
48+
## Installation
1149

12-
* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
13-
http://www.apache.org/licenses/LICENSE-2.0)
14-
* MIT license ([LICENSE-MIT](LICENSE-MIT) or
15-
http://opensource.org/licenses/MIT)
50+
With [cargo add][cargo-add] installed run:
1651

17-
at your option.
52+
```sh
53+
$ cargo add futures-timer
54+
```
1855

19-
### Contribution
56+
[cargo-add]: https://github.com/killercup/cargo-edit
2057

58+
## Safety
59+
This crate makes use of carefully checked `unsafe` blocks to construct an
60+
efficient timer implementation.
61+
62+
## Contributing
63+
Want to join us? Check out our ["Contributing" guide][contributing] and take a
64+
look at some of these issues:
65+
66+
- [Issues labeled "good first issue"][good-first-issue]
67+
- [Issues labeled "help wanted"][help-wanted]
68+
69+
[contributing]: https://github.com/async-rs/futures-timer/blob/master.github/CONTRIBUTING.md
70+
[good-first-issue]: https://github.com/async-rs/futures-timer/labels/good%20first%20issue
71+
[help-wanted]: https://github.com/async-rs/futures-timer/labels/help%20wanted
72+
73+
## License
74+
75+
<sup>
76+
Licensed under either of <a href="LICENSE-APACHE">Apache License, Version
77+
2.0</a> or <a href="LICENSE-MIT">MIT license</a> at your option.
78+
</sup>
79+
80+
<br/>
81+
82+
<sub>
2183
Unless you explicitly state otherwise, any contribution intentionally submitted
22-
for inclusion in this project by you, as defined in the Apache-2.0 license,
23-
shall be dual licensed as above, without any additional terms or conditions.
84+
for inclusion in this crate by you, as defined in the Apache-2.0 license, shall
85+
be dual licensed as above, without any additional terms or conditions.
86+
</sub>

0 commit comments

Comments
 (0)