File tree Expand file tree Collapse file tree 6 files changed +1125
-546
lines changed Expand file tree Collapse file tree 6 files changed +1125
-546
lines changed Original file line number Diff line number Diff line change 3
3
All notable changes to this project will be documented in this file.
4
4
This project uses [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
5
5
6
+ ## Unreleased
7
+
8
+ ### Added
9
+
10
+ - Added ` TempDir ` for automatically deleted temporary directories.
11
+ - Added ` close ` methods to ` TempFile ` and ` TempDir ` allow for manual file system interactions.
12
+ - Added ` AsyncClose ` trait for manual closing / deletion of ` AsyncFile ` and ` AsyncDir ` instances.
13
+ This is gated behind the ` async-trait ` crate feature and disabled by default.
14
+
6
15
## [ 0.5.0] - 2023-12-06
7
16
17
+ [ 0.5.0 ] : https://github.com/sunsided/async-tempfile-rs/releases/tag/0.5.0
18
+
8
19
### Changed
9
20
10
21
- The ` new ` and ` new_in ` functions now do not rely on the ` uuid ` feature anymore
@@ -17,6 +28,8 @@ This project uses [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
17
28
18
29
## [ 0.4.0] - 2023-06-16
19
30
31
+ [ 0.4.0 ] : https://github.com/sunsided/async-tempfile-rs/releases/tag/0.4.0
32
+
20
33
### Added
21
34
22
35
- Added ` uuid ` as a default crate feature and feature gated all ` uuid ` crate related functionality.
@@ -44,6 +57,3 @@ This project uses [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
44
57
### Internal
45
58
46
59
- 🎉 Initial release.
47
-
48
- [ 0.5.0 ] : https://github.com/sunsided/async-tempfile-rs/releases/tag/0.5.0
49
- [ 0.4.0 ] : https://github.com/sunsided/async-tempfile-rs/releases/tag/0.4.0
Original file line number Diff line number Diff line change @@ -14,12 +14,14 @@ edition = "2021"
14
14
[features ]
15
15
default = []
16
16
uuid = [" dep:uuid" ]
17
+ async-trait = [" dep:async-trait" ]
17
18
18
19
[[test ]]
19
20
name = " tests"
20
21
path = " tests/tests.rs"
21
22
22
23
[dependencies ]
24
+ async-trait = { version = " 0.1.77" , optional = true }
23
25
tokio = { version = " 1.36.0" , features = [" fs" ] }
24
26
uuid = { version = " 1.7.0" , features = [" v4" ], optional = true }
25
27
You can’t perform that action at this time.
0 commit comments