Skip to content

Commit

Permalink
stabilize (#3)
Browse files Browse the repository at this point in the history
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
  • Loading branch information
yoshuawuyts authored Oct 18, 2018
1 parent a085fea commit 5280685
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 16 deletions.
24 changes: 13 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
language: rust
rust:
- nightly

before_script: |
rustup component add rustfmt-preview &&
rustup component add clippy-preview
script: |
cargo fmt -- --check &&
cargo clippy -- -D clippy::all &&
cargo build --verbose &&
cargo test --verbose
cache: cargo
rust: stable

before_script:
- rustup component add rustfmt-preview
- rustup component add clippy-preview
- cargo fmt --version
- cargo clippy --version

script:
- cargo fmt -- --check
- cargo build --verbose
- cargo test --verbose
- cargo clippy
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ $ cargo add pretty-hash
[2]: https://crates.io/crates/pretty-hash
[3]: https://img.shields.io/travis/datrs/pretty-hash.svg?style=flat-square
[4]: https://travis-ci.org/datrs/pretty-hash
[5]: https://img.shields.io/crates/d/pretty-hash.svg?style=flat-square
[5]: https://img.shields.io/crates/d/pretty-hash/master.svg?style=flat-square
[6]: https://crates.io/crates/pretty-hash
[7]: https://docs.rs/pretty-hash/badge.svg
[7]: https://img.shields.io/badge/docs-latest-blue.svg?style=flat-square
[8]: https://docs.rs/pretty-hash
15 changes: 12 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
#![deny(missing_docs)]
#![forbid(unsafe_code, missing_debug_implementations, missing_docs)]
#![cfg_attr(test, deny(warnings))]
#![feature(external_doc)]
#![doc(include = "../README.md")]

//! ## Example
//! ```rust
//! extern crate pretty_hash;
//!
//! let hash = pretty_hash::fmt(b"1234").unwrap();
//! assert_eq!(hash, "31323334");
//!
//! let hash = pretty_hash::fmt(b"12345").unwrap();
//! assert_eq!(hash, "313233..35");
//! ```
extern crate failure;

Expand Down

0 comments on commit 5280685

Please sign in to comment.