Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .clippy.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
avoid-breaking-exported-api = false
40 changes: 10 additions & 30 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,8 @@ jobs:
components: rustfmt
- name: Run tests
run: |
cargo check --no-default-features --features tokio
cargo check --no-default-features --features tokio,sparse
cargo check --no-default-features --features async-std
cargo check --no-default-features --features async-std,sparse
cargo test --no-default-features --features tokio
cargo test --no-default-features --features tokio,sparse
cargo test --no-default-features --features async-std
cargo test --no-default-features --features async-std,sparse
cargo check --no-default-features
cargo check --no-default-features --features sparse

test-windows:
runs-on: windows-latest
Expand All @@ -51,14 +45,8 @@ jobs:
components: rustfmt
- name: Run tests
run: |
cargo check --no-default-features --features tokio
cargo check --no-default-features --features tokio,sparse
cargo check --no-default-features --features async-std
cargo check --no-default-features --features async-std,sparse
cargo test --no-default-features --features tokio
cargo test --no-default-features --features tokio,sparse
cargo test --no-default-features --features async-std
cargo test --no-default-features --features async-std,sparse
cargo check --no-default-features
cargo check --no-default-features --features sparse

test-macos:
runs-on: macos-latest
Expand All @@ -70,14 +58,8 @@ jobs:
components: rustfmt
- name: Run tests
run: |
cargo check --no-default-features --features tokio
cargo check --no-default-features --features tokio,sparse
cargo check --no-default-features --features async-std
cargo check --no-default-features --features async-std,sparse
cargo test --no-default-features --features tokio
cargo test --no-default-features --features tokio,sparse
cargo test --no-default-features --features async-std
cargo test --no-default-features --features async-std,sparse
cargo check --no-default-features
cargo check --no-default-features --features sparse

build-extra:
runs-on: ubuntu-latest
Expand All @@ -87,14 +69,12 @@ jobs:
- uses: dtolnay/rust-toolchain@stable
- name: Build benches
run: |
cargo build --benches --no-default-features --features tokio
cargo build --benches --no-default-features --features async-std
cargo build --benches --no-default-features
cargo build --benches --no-default-features --features sparse
- name: Build release
run: |
cargo build --release --no-default-features --features tokio
cargo build --release --no-default-features --features tokio,sparse
cargo build --release --no-default-features --features async-std
cargo build --release --no-default-features --features async-std,sparse
cargo build --release --no-default-features
cargo build --release --no-default-features --features sparse

lint:
runs-on: ubuntu-latest
Expand Down
5 changes: 5 additions & 0 deletions .rustfmt.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# groups 'use' statements by crate
imports_granularity = "crate"
# formats code within doc tests
# requires: cargo +nightly fmt (otherwise rustfmt will warn, but pass)
format_code_in_doc_comments = true
53 changes: 43 additions & 10 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,28 @@
## 2024-01-09, Version 3.0.1
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

<!-- next-header -->

## [Unreleased] - ReleaseDate

### Added

### Changed

* Use new version of `random-access-storage` that returns owned futures.
* Bump edition to 2024.
* Remove `async-trait` dependency.

### Removed

* Drop all `async-std` stuff, we're only using `tokio` now. This removes both the `tokio` and `async-std` features.


## [3.0.1] - 2024-01-09
### Commits
- [[`69cfe7047c`](https://github.com/datrs/random-access-disk/commit/69cfe7047c71eded4ddfa935d83f9260f255ab8b)] Refactor PathBuf into impl AsRef<Path> (Fahmi Akbar Wildana)
- [[`44134ffbf4`](https://github.com/datrs/random-access-disk/commit/44134ffbf484bfd15b9da2dd05b52072f7b5207c)] docs: fix broken actions link and tweak docs logo (Timo Tiuraniemi)
Expand All @@ -13,7 +37,7 @@
4 files changed, 33 insertions(+), 7 deletions(-)
```

## 2023-04-12, Version 3.0.0
## [3.0.0] - 2023-04-12
### Commits
- [[`0e4c5e3e87`](https://github.com/datrs/random-access-disk/commit/0e4c5e3e8776b5beb860d7a0507cac4a86fa5557)] Release 3.0.0 (Timo Tiuraniemi)
- [[`5d90852e06`](https://github.com/datrs/random-access-disk/commit/5d90852e06c0c2666690cbd9ea2f050d73acf06c)] Fix formatting (Timo Tiuraniemi)
Expand All @@ -39,7 +63,7 @@
```


## 2020-03-03, Version 2.0.0
## [2.0.0] - 2020-03-03
### Commits
- [[`e480856d06`](https://github.com/datrs/random-access-disk/commit/e480856d06af1357f33ef7bf826373c169df83d2)] (cargo-release) version 2.0.0 (Bruno Tavares)
- [[`b0f1507868`](https://github.com/datrs/random-access-disk/commit/b0f15078689fbfd379aa249ff45bf28be54f2249)] Implement async API for random-access-storage (#37) (Bruno Tavares)
Expand All @@ -59,7 +83,7 @@
```


## 2020-03-03, Version 1.1.0
## [1.1.0] - 2020-03-03
### Commits
- [[`7063f6fa47`](https://github.com/datrs/random-access-disk/commit/7063f6fa47dc7689e1d44055aa594845345f890f)] (cargo-release) version 1.1.0 (Bruno Tavares)
- [[`218aab2629`](https://github.com/datrs/random-access-disk/commit/218aab2629ce76308c946c62b61078b749100c53)] From Failure into std::error::Error (#36) (Bruno Tavares)
Expand All @@ -75,7 +99,7 @@
```


## 2020-02-02, Version 1.0.0
## [1.0.0] - 2020-02-02
### Commits
- [[`3de8d37a0c`](https://github.com/datrs/random-access-disk/commit/3de8d37a0c33bc15874de8870734bbdd07a8b24c)] 1.0.0 (substack)
- [[`2fca3428a6`](https://github.com/datrs/random-access-disk/commit/2fca3428a6ca6e484c5b31c8b62422553641731e)] Merge pull request #28 from bltavares/bump-deps (Szabolcs Berecz)
Expand All @@ -101,7 +125,7 @@
```


## 2018-12-20, Version 0.8.0
## [0.8.0] - 2018-12-20
### Commits
- [[`c7cdc2d39a`](https://github.com/datrs/random-access-disk/commit/c7cdc2d39a7d92103f7125c28d2451ecf6272578)] (cargo-release) version 0.8.0 (Yoshua Wuyts)
- [[`65bffdf0b8`](https://github.com/datrs/random-access-disk/commit/65bffdf0b8ef6d7b37a89b9ef498fb62a24a2e25)] len() and is_empty() implementation (#21) (James Halliday)
Expand All @@ -117,7 +141,7 @@
```


## 2018-11-21, Version 0.7.0
## [0.7.0] - 2018-11-21
### Commits
- [[`9059d4f552`](https://github.com/datrs/random-access-disk/commit/9059d4f5524f16f52badff98a92e4b7db308a2d0)] (cargo-release) version 0.7.0 (Yoshua Wuyts)
- [[`791e3fd8ee`](https://github.com/datrs/random-access-disk/commit/791e3fd8ee1fd7af387119e734fd498074fc8c33)] update travis (Yoshua Wuyts)
Expand All @@ -139,7 +163,7 @@
```


## 2018-08-30, Version 0.6.0
## [0.6.0] - 2018-08-30
### Commits
- [[`1070eb3166`](https://github.com/datrs/random-access-disk/commits/1070eb31665c3578842997557af292a9e702a033)] (cargo-release) version 0.6.0 (Yoshua Wuyts)
- [[`fb9ee81c81`](https://github.com/datrs/random-access-disk/commits/fb9ee81c81043619ecf6ea3a5d670373248cd677)] Random access always open (#13) (Szabolcs Berecz)
Expand All @@ -160,7 +184,7 @@
```


## 2018-08-23, Version 0.5.0
## [0.5.0] - 2018-08-23
### Commits
- [[`647536ba06`](https://github.com/datrs/random-access-disk/commits/647536ba06ab55f810c7981e60d68481ec55044c)] (cargo-release) version 0.5.0 (Yoshua Wuyts)
- [[`556d70f09a`](https://github.com/datrs/random-access-disk/commits/556d70f09a0b23cf15107442f9cefec7669ad463)] upgrade random-access-storage (#9)
Expand All @@ -185,4 +209,13 @@
7 files changed, 26 insertions(+), 125 deletions(-)
```


<!-- next-url -->
[Unreleased]: https://github.com/datrs/random-access-disk/compare/v3.0.1...HEAD
[3.0.1]: https://github.com/datrs/random-access-disk/compare/v3.0.0...v3.0.1
[3.0.0]: https://github.com/datrs/random-access-disk/compare/v2.0.0...v3.0.0
[2.0.0]: https://github.com/datrs/random-access-disk/compare/v1.1.0...v2.0.0
[1.1.0]: https://github.com/datrs/random-access-disk/compare/v1.0.0...v1.1.0
[1.0.0]: https://github.com/datrs/random-access-disk/compare/v0.8.0...v1.0.0
[0.8.0]: https://github.com/datrs/random-access-disk/compare/v0.7.0...v0.8.0
[0.7.0]: https://github.com/datrs/random-access-disk/compare/v0.6.0...v0.7.0
[0.6.0]: https://github.com/datrs/random-access-disk/compare/v0.5.0...v0.6.0
20 changes: 9 additions & 11 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,30 @@ license = "MIT OR Apache-2.0"
name = "random-access-disk"
readme = "README.md"
repository = "https://github.com/datrs/random-access-disk"
version = "3.0.1"
edition = "2021"
version = "4.0.0-alpha"
edition = "2024"

[dependencies]
mkdirp = "1.0.0"
random-access-storage = "5.0.0"
async-std = { version = "1.12.0", optional = true }
tokio = { version = "1.27.0", optional = true, features = ["fs", "io-util"] }
async-trait = "0.1"
random-access-storage = "=6.0.0-alpha"
async-lock = "3"
tokio = { version = "1.27.0", features = ["fs", "io-util"] }
libc = { version = "0.2", optional = true }

[target.'cfg(windows)'.dependencies]
winapi = { version = "0.3.9", features = ["ioapiset", "winioctl"] }

[dev-dependencies]
proptest = "1.1.0"
proptest-derive = "0.2.0"
proptest-derive = "0.8.0"
tempfile = "3.1.0"
async-std = { version = "1.12.0", features = ["attributes"] }
tokio = { version = "1.27.0", features = ["macros", "rt", "rt-multi-thread"] }
criterion = { version = "0.4", features = ["async_std", "async_tokio"] }
criterion = { version = "0.4", features = ["async_tokio"] }
tokio-test = "0.4"

[features]
default = ["sparse", "async-std"]
sparse = ["libc"]
default = ["sparse"]
sparse = ["dep:libc"]

[[bench]]
name = "sync"
Expand Down
Loading
Loading