diff --git a/.gitignore b/.gitignore index a9d37c5..a74a373 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ -target -Cargo.lock +/target +# this is a library +/Cargo.lock diff --git a/Cargo.toml b/Cargo.toml index 3468773..9c343c9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bit-set" -version = "0.7.0" +version = "0.8.0" authors = ["Alexis Beingessner "] license = "Apache-2.0 OR MIT" description = "A set of bits" @@ -15,7 +15,7 @@ edition = "2015" serde = { version = "1.0", features = ["derive"], optional = true } [dependencies.bit-vec] -version = "0.7.0" +version = "0.8.0" default-features = false [dev-dependencies] diff --git a/README.md b/README.md index 668ab25..28a9adb 100644 --- a/README.md +++ b/README.md @@ -19,13 +19,13 @@ [crates.io shield]: https://img.shields.io/crates/v/bit-set?label=latest [crates.io link]: https://crates.io/crates/bit-set -[docs.rs badge]: https://docs.rs/bit-set/badge.svg?version=0.7.0 -[docs.rs link]: https://docs.rs/bit-set/0.7.0/bit_set/ +[docs.rs badge]: https://docs.rs/bit-set/badge.svg?version=0.8.0 +[docs.rs link]: https://docs.rs/bit-set/0.8.0/bit_set/ [github ci badge]: https://github.com/contain-rs/linked-hash-map/workflows/Rust/badge.svg?branch=master [rustc 1.0+]: https://img.shields.io/badge/rustc-1.0%2B-blue.svg [Rust 1.0]: https://blog.rust-lang.org/2015/05/15/Rust-1.0.html -[deps.rs status]: https://deps.rs/crate/bit-set/0.7.0/status.svg -[deps.rs link]: https://deps.rs/crate/bit-set/0.7.0 +[deps.rs status]: https://deps.rs/crate/bit-set/0.8.0/status.svg +[deps.rs link]: https://deps.rs/crate/bit-set/0.8.0 [shields.io download count]: https://img.shields.io/crates/d/bit-set.svg ## Usage @@ -34,7 +34,7 @@ Add this to your Cargo.toml: ```toml [dependencies] -bit-set = "0.5" +bit-set = "0.8" ``` Since Rust 2018, `extern crate` is no longer mandatory. If your edition is old (Rust 2015), @@ -44,11 +44,18 @@ add this to your crate root: extern crate bit_set; ``` +If you want to use `serde`, enable it with the `serde` feature: + +```toml +[dependencies] +bit-set = { version = "0.8", features = ["serde"] } +``` + If you want to use bit-set in a program that has `#![no_std]`, just drop default features: ```toml [dependencies] -bit-set = { version = "0.5", default-features = false } +bit-set = { version = "0.8", default-features = false } ``` diff --git a/src/lib.rs b/src/lib.rs index c092d9a..30bf8ce 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -48,7 +48,7 @@ //! let bv = s.into_bit_vec(); //! assert!(bv[3]); //! ``` -#![doc(html_root_url = "https://docs.rs/bit-set/0.7.0")] +#![doc(html_root_url = "https://docs.rs/bit-set/0.8.0")] #![no_std] extern crate bit_vec;