1# fs-err Changelog 2 3## 2.11.0 4 5* Added the first line of the standard library documentation to each function's rustdocs, to make them more useful in IDEs ([#50](https://github.com/andrewhickman/fs-err/issues/45)) 6* Fixed the wrapper for `tokio::fs::symlink_dir()` on Windows being incorrectly named `symlink`. The old function is now deprecated and will be removed in the next breaking release. 7 8## 2.10.0 9 10* Add `fs_err_try_exists` to `std::path::Path` via extension trait. This feature requires Rust 1.63 or later. ([#48](https://github.com/andrewhickman/fs-err/pull/48)) 11 12## 2.9.0 13 14* Add wrappers for [`tokio::fs`](https://docs.rs/tokio/latest/tokio/fs/index.html) ([#40](https://github.com/andrewhickman/fs-err/pull/40)). 15 16## 2.8.1 17 18* Fixed docs.rs build 19 20## 2.8.0 21 22* Implement I/O safety traits (`AsFd`/`AsHandle`, `Into<OwnedFd>`/`Into<OwnedHandle>`) for file. This feature requires Rust 1.63 or later and is gated behind the `io_safety` feature flag. ([#39](https://github.com/andrewhickman/fs-err/pull/39)) 23 24## 2.7.0 25 26* Implement `From<fs_err::File> for std::fs::File` ([#38](https://github.com/andrewhickman/fs-err/pull/38)) 27 28## 2.6.0 29 30* Added [`File::into_parts`](https://docs.rs/fs-err/2.6.0/fs_err/struct.File.html#method.into_parts) and [`File::file_mut`](https://docs.rs/fs-err/2.6.0/fs_err/struct.File.html#method.file_mut) to provide more access to the underlying `std::fs::File`. 31* Fixed some typos in documention ([#33](https://github.com/andrewhickman/fs-err/pull/33)) 32 33## 2.5.0 34* Added `symlink` for unix platforms 35* Added `symlink_file` and `symlink_dir` for windows 36* Implemented os-specific extension traits for `File` 37 - `std::os::unix::io::{AsRawFd, IntoRawFd}` 38 - `std::os::windows::io::{AsRawHandle, IntoRawHandle}` 39 - Added trait wrappers for `std::os::{unix, windows}::fs::FileExt` and implemented them for `fs_err::File` 40* Implemented os-specific extension traits for `OpenOptions` 41 - Added trait wrappers for `std::os::{unix, windows}::fs::OpenOptionsExt` and implemented them for `fs_err::OpenOptions` 42* Improved compile times by converting arguments early and forwarding only a small number of types internally. There will be a slight performance hit only in the error case. 43* Reduced trait bounds on generics from `AsRef<Path> + Into<PathBuf>` to either `AsRef<Path>` or `Into<PathBuf>`, making the functions more general. 44 45## 2.4.0 46* Added `canonicalize`, `hard link`, `read_link`, `rename`, `symlink_metadata` and `soft_link`. ([#25](https://github.com/andrewhickman/fs-err/pull/25)) 47* Added aliases to `std::path::Path` via extension trait ([#26](https://github.com/andrewhickman/fs-err/pull/26)) 48* Added `OpenOptions` ([#27](https://github.com/andrewhickman/fs-err/pull/27)) 49* Added `set_permissions` ([#28](https://github.com/andrewhickman/fs-err/pull/28)) 50 51## 2.3.0 52* Added `create_dir` and `create_dir_all`. ([#19](https://github.com/andrewhickman/fs-err/pull/19)) 53* Added `remove_file`, `remove_dir`, and `remove_dir_all`. ([#16](https://github.com/andrewhickman/fs-err/pull/16)) 54 55## 2.2.0 56* Added `metadata`. ([#15](https://github.com/andrewhickman/fs-err/pull/15)) 57 58## 2.1.0 59* Updated crate-level documentation. ([#8](https://github.com/andrewhickman/fs-err/pull/8)) 60* Added `read_dir`, `ReadDir`, and `DirEntry`. ([#9](https://github.com/andrewhickman/fs-err/pull/9)) 61 62## 2.0.1 (2020-02-22) 63* Added `copy`. ([#7](https://github.com/andrewhickman/fs-err/pull/7)) 64 65## 2.0.0 (2020-02-19) 66* Removed custom error type in favor of `std::io::Error`. ([#2](https://github.com/andrewhickman/fs-err/pull/2)) 67 68## 1.0.1 (2020-02-15) 69* Fixed bad documentation link in `Cargo.toml`. 70 71## 1.0.0 (2020-02-15) 72* No changes from 0.1.2. 73 74## 0.1.2 (2020-02-10) 75* Added `Error::cause` implementation for `fs_err::Error`. 76 77## 0.1.1 (2020-02-05) 78* Added wrappers for `std::fs::*` functions. 79 80## 0.1.0 (2020-02-02) 81* Initial release, containing a wrapper around `std::fs::File`. 82