Skip to content

Commit

Permalink
Merge pull request #51 from contain-rs/v0.8.0
Browse files Browse the repository at this point in the history
Release version 0.8.0
  • Loading branch information
pczarn authored Jul 16, 2024
2 parents 526465b + 301f3c5 commit 2b8861d
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 11 deletions.
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
target
Cargo.lock
/target
# this is a library
/Cargo.lock
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bit-set"
version = "0.7.0"
version = "0.8.0"
authors = ["Alexis Beingessner <[email protected]>"]
license = "Apache-2.0 OR MIT"
description = "A set of bits"
Expand All @@ -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]
Expand Down
19 changes: 13 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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),
Expand All @@ -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 }
```

<!-- cargo-rdme start -->
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2b8861d

Please sign in to comment.