Skip to content

Commit

Permalink
release: 0.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
joshstoik1 committed Jun 13, 2024
2 parents bbc82ed + 0022ebc commit a0f6919
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
RUSTFLAGS: "-D warnings"

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/msrv.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
RUSTFLAGS: "-D warnings"

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@



## [0.9.1](https://github.com/Blobfolio/dowser/releases/tag/v0.9.1) - 2024-06-13

### Changed

* Add a few `#[inline]` hints to improve downstream performance



## [0.9.0](https://github.com/Blobfolio/dowser/releases/tag/v0.9.0) - 2024-02-15

### Changed
Expand Down
10 changes: 5 additions & 5 deletions CREDITS.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Project Dependencies
Package: dowser
Version: 0.9.0
Generated: 2024-02-16 02:47:00 UTC
Version: 0.9.1
Generated: 2024-06-13 17:13:15 UTC

| Package | Version | Author(s) | License |
| ---- | ---- | ---- | ---- |
| [ahash](https://github.com/tkaitchuck/ahash) | 0.8.8 | [Tom Kaitchuck](mailto:[email protected]) | Apache-2.0 or MIT |
| [ahash](https://github.com/tkaitchuck/ahash) | 0.8.11 | [Tom Kaitchuck](mailto:[email protected]) | Apache-2.0 or MIT |
| [cfg-if](https://github.com/alexcrichton/cfg-if) | 1.0.0 | [Alex Crichton](mailto:[email protected]) | Apache-2.0 or MIT |
| [dactyl](https://github.com/Blobfolio/dactyl) | 0.7.0 | [Blobfolio, LLC.](mailto:[email protected]) | WTFPL |
| [zerocopy](https://github.com/google/zerocopy) | 0.7.32 | [Joshua Liebow-Feeser](mailto:[email protected]) | Apache-2.0, BSD-2-Clause, or MIT |
| [dactyl](https://github.com/Blobfolio/dactyl) | 0.7.1 | [Blobfolio, LLC.](mailto:[email protected]) | WTFPL |
| [zerocopy](https://github.com/google/zerocopy) | 0.7.34 | [Joshua Liebow-Feeser](mailto:[email protected]) | Apache-2.0, BSD-2-Clause, or MIT |
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "dowser"
version = "0.9.0"
version = "0.9.1"
authors = ["Blobfolio, LLC. <[email protected]>"]
edition = "2021"
rust-version = "1.72"
Expand Down
8 changes: 8 additions & 0 deletions src/ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ pub enum Extension {
impl Eq for Extension {}

impl Hash for Extension {
#[inline]
fn hash<H: Hasher>(&self, state: &mut H) {
match *self {
Self::Ext2(n) => { state.write_u16(n); },
Expand All @@ -173,6 +174,7 @@ impl PartialEq for Extension {

impl<P> PartialEq<P> for Extension
where P: AsRef<Path> {
#[inline]
/// # Path Equality.
///
/// When there's just one extension and one path to check, you can compare
Expand Down Expand Up @@ -201,6 +203,7 @@ where P: AsRef<Path> {
/// # Unchecked Instantiation.
impl Extension {
#[must_use]
#[inline]
/// # New Unchecked (2).
///
/// Create a new [`Extension`], unchecked, from two bytes, e.g. `*b"gz"`.
Expand All @@ -223,6 +226,7 @@ impl Extension {
}

#[must_use]
#[inline]
/// # New Unchecked (3).
///
/// Create a new [`Extension`], unchecked, from three bytes, e.g. `*b"gif"`.
Expand All @@ -245,6 +249,7 @@ impl Extension {
}

#[must_use]
#[inline]
/// # New Unchecked (4).
///
/// Create a new [`Extension`], unchecked, from four bytes, e.g. `*b"html"`.
Expand All @@ -270,6 +275,7 @@ impl Extension {
/// # From Paths.
impl Extension {
#[must_use]
#[inline]
/// # Try From Path (2).
///
/// This method is used to (try to) pull a 2-byte extension from a file
Expand Down Expand Up @@ -298,6 +304,7 @@ impl Extension {
}

#[must_use]
#[inline]
/// # Try From Path (3).
///
/// This method is used to (try to) pull a 3-byte extension from a file
Expand Down Expand Up @@ -326,6 +333,7 @@ impl Extension {
}

#[must_use]
#[inline]
/// # Try From Path (4).
///
/// This method is used to (try to) pull a 4-byte extension from a file
Expand Down
3 changes: 3 additions & 0 deletions src/iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ pub struct Dowser {
}

impl Default for Dowser {
#[inline]
fn default() -> Self {
Self {
files: Vec::with_capacity(8),
Expand Down Expand Up @@ -221,6 +222,7 @@ impl Dowser {

impl Dowser {
#[must_use]
#[inline]
/// # Without Path.
///
/// This will prevent the provided directory or file from being crawled or
Expand Down Expand Up @@ -251,6 +253,7 @@ impl Dowser {
}

#[must_use]
#[inline]
/// # Without Paths.
///
/// This will prevent the provided directories or files from being crawled
Expand Down

0 comments on commit a0f6919

Please sign in to comment.