Skip to content

Commit ac62531

Browse files
committed
Add bitmaps-3.1.0.
1 parent 892252b commit ac62531

File tree

14 files changed

+2695
-0
lines changed

14 files changed

+2695
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"git": {
3+
"sha1": "6534d3b6e65ba2fe3fbc5e6e7b2087019095f9ee"
4+
}
5+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: cargo
4+
directory: "/"
5+
schedule:
6+
interval: daily
7+
open-pull-requests-limit: 10
8+
ignore:
9+
- dependency-name: proptest-derive
10+
versions:
11+
- 0.3.0
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Continuous Integration
2+
on:
3+
push:
4+
pull_request:
5+
schedule:
6+
- cron: "0 0 1,15 * *"
7+
8+
jobs:
9+
test:
10+
runs-on: ${{ matrix.os }}
11+
strategy:
12+
matrix:
13+
os: [ubuntu-latest, windows-latest, macOS-latest]
14+
rust: [stable, beta, nightly]
15+
16+
steps:
17+
- uses: hecrj/setup-rust-action@v1
18+
with:
19+
rust-version: ${{ matrix.rust }}
20+
- uses: actions/checkout@v1
21+
- name: Run tests (with all features)
22+
run: cargo test --all-features
23+
- name: Run tests (with no features)
24+
run: cargo test --no-default-features
25+
26+
clippy:
27+
runs-on: ubuntu-latest
28+
steps:
29+
- uses: hecrj/setup-rust-action@v1
30+
with:
31+
rust-version: stable
32+
components: clippy
33+
- uses: actions/checkout@v1
34+
- name: Clippy
35+
run: cargo clippy -- -D warnings
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/target
2+
**/*.rs.bk
3+
Cargo.lock
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project
6+
adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
7+
8+
## [3.1.0] - 2021-04-30
9+
10+
### ADDED
11+
12+
- The methods `first_false_index()` and `is_full()` have been added to `Bitmap`. (#12)
13+
14+
### FIXED
15+
16+
- The previous version broke the `no_std` feature; it has now been restored. (#11)
17+
18+
## [3.0.0] - 2021-04-26
19+
20+
### CHANGED
21+
22+
- This crate now uses const generics, rather than the `typenum` crate, to encode numerical values
23+
in types. This means you can now use plain integers in the `Bitmap` type, eg. `Bitmap<32>`,
24+
rather than the old `Bitmap<typenum::U32>`. (#8, #9)
25+
26+
### ADDED
27+
28+
- `Bitmap` now implements `Hash`, `Eq`, `PartialOrd` and `Ord`. (#7)
29+
- The `as_value()` method has been added to `Bitmap`, to get a reference to the underlying value.
30+
(#7)
31+
- `bitmaps::Iter` now implements `Clone` and `Debug`. (#4)
32+
33+
## [2.1.0] - 2020-03-26
34+
35+
### ADDED
36+
37+
- There is now a `std` feature flag, on by default, which you can disable to get a `no_std` crate.
38+
39+
## [2.0.0] - 2019-09-09
40+
41+
### CHANGED
42+
43+
- `Bits` now does a lot less work, which is now being done instead by the `BitOps` trait on its
44+
storage type. This turns out to improve compilation time quite considerably. If you were using
45+
methods on `Bits` directly, they will have moved to `BitOps`.
46+
- `Debug` now prints a single hex value for the entire bitmap, rather than deferring to the
47+
storage type.
48+
- `Iter` now takes a reference instead of a copy, which is more sensible for larger bitmaps.
49+
50+
### ADDED
51+
52+
- `Bitmap` now implements `BitAnd`, `BitOr`, `BitXor`, their equivalent assignation traits, and
53+
`Not`, meaning you can now use bitwise operators on them, even the very big array-of-u128 ones.
54+
- A `Bitmap::mask()` constructor has been added, to construct bitmasks more efficiently, now that
55+
there are bitwise operators to use them with.
56+
57+
## [1.0.0] - 2019-09-06
58+
59+
Initial release.
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, gender identity and expression, level of experience,
9+
education, socio-economic status, nationality, personal appearance, race,
10+
religion, or sexual identity and orientation.
11+
12+
## Our Standards
13+
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
16+
17+
* Using welcoming and inclusive language
18+
* Being respectful of differing viewpoints and experiences
19+
* Gracefully accepting constructive criticism
20+
* Focusing on what is best for the community
21+
* Showing empathy towards other community members
22+
23+
Examples of unacceptable behavior by participants include:
24+
25+
* The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
* Trolling, insulting/derogatory comments, and personal or political attacks
28+
* Public or private harassment
29+
* Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
* Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
33+
34+
## Our Responsibilities
35+
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
39+
40+
Project maintainers have the right and responsibility to remove, edit, or
41+
reject comments, commits, code, wiki edits, issues, and other contributions
42+
that are not aligned to this Code of Conduct, or to ban temporarily or
43+
permanently any contributor for other behaviors that they deem inappropriate,
44+
threatening, offensive, or harmful.
45+
46+
## Scope
47+
48+
This Code of Conduct applies both within project spaces and in public spaces
49+
when an individual is representing the project or its community. Examples of
50+
representing a project or community include using an official project e-mail
51+
address, posting via an official social media account, or acting as an appointed
52+
representative at an online or offline event. Representation of a project may be
53+
further defined and clarified by project maintainers.
54+
55+
## Enforcement
56+
57+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58+
reported by contacting the project team at [email protected]. All
59+
complaints will be reviewed and investigated and will result in a response that
60+
is deemed necessary and appropriate to the circumstances. The project team is
61+
obligated to maintain confidentiality with regard to the reporter of an incident.
62+
Further details of specific enforcement policies may be posted separately.
63+
64+
Project maintainers who do not follow or enforce the Code of Conduct in good
65+
faith may face temporary or permanent repercussions as determined by other
66+
members of the project's leadership.
67+
68+
## Attribution
69+
70+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71+
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72+
73+
[homepage]: https://www.contributor-covenant.org
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
2+
#
3+
# When uploading crates to the registry Cargo will automatically
4+
# "normalize" Cargo.toml files for maximal compatibility
5+
# with all versions of Cargo and also rewrite `path` dependencies
6+
# to registry (e.g., crates.io) dependencies
7+
#
8+
# If you believe there's an error in this file please file an
9+
# issue against the rust-lang/cargo repository. If you're
10+
# editing this file be aware that the upstream Cargo.toml
11+
# will likely look very different (and much more reasonable)
12+
13+
[package]
14+
edition = "2018"
15+
name = "bitmaps"
16+
version = "3.1.0"
17+
authors = ["Bodil Stokke <[email protected]>"]
18+
exclude = ["release.toml", "proptest-regressions/**"]
19+
description = "Fixed size boolean arrays"
20+
documentation = "http://docs.rs/bitmaps"
21+
readme = "./README.md"
22+
categories = ["data-structures"]
23+
license = "MPL-2.0+"
24+
repository = "https://github.com/bodil/bitmaps"
25+
[dev-dependencies.proptest]
26+
version = "1.0.0"
27+
28+
[dev-dependencies.proptest-derive]
29+
version = "0.3.0"
30+
31+
[features]
32+
default = ["std"]
33+
std = []

collector/benchmarks/bitmaps-3.1.0/Cargo.toml.orig

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)