forked from danburkert/fs2-rs
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
future proof style external crate support (#33)
- Loading branch information
Showing
23 changed files
with
255 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#[cfg(unix)] | ||
use crate::unix::async_impl::fs_err2_tokio_impl as sys; | ||
#[cfg(windows)] | ||
use crate::windows::async_impl::fs_err2_tokio_impl as sys; | ||
use fs_err2::tokio::File; | ||
|
||
async_file_ext!(File, "fs_err::tokio::File"); | ||
|
||
test_mod! { | ||
tokio::test, | ||
use crate::fs_err2_tokio::AsyncFileExt; | ||
use fs_err2::tokio as fs; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#[cfg(unix)] | ||
use crate::unix::async_impl::fs_err3_tokio_impl as sys; | ||
#[cfg(windows)] | ||
use crate::windows::async_impl::fs_err3_tokio_impl as sys; | ||
use fs_err3::tokio::File; | ||
|
||
async_file_ext!(File, "fs_err::tokio::File"); | ||
|
||
test_mod! { | ||
tokio::test, | ||
use crate::fs_err3_tokio::AsyncFileExt; | ||
use fs_err3::tokio as fs; | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#[cfg(unix)] | ||
use crate::unix::sync_impl::fs_err2_impl as sys; | ||
#[cfg(windows)] | ||
use crate::windows::sync_impl::fs_err2_impl as sys; | ||
use fs_err2::File; | ||
|
||
file_ext!(File, "fs_err::File"); | ||
|
||
test_mod! { | ||
use fs_err2 as fs; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#[cfg(unix)] | ||
use crate::unix::sync_impl::fs_err3_impl as sys; | ||
#[cfg(windows)] | ||
use crate::windows::sync_impl::fs_err3_impl as sys; | ||
use fs_err3::File; | ||
|
||
file_ext!(File, "fs_err::File"); | ||
|
||
test_mod! { | ||
use fs_err3 as fs; | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
use fs_err3::tokio::File; | ||
use std::os::unix::fs::MetadataExt; | ||
use std::os::unix::io::AsRawFd; | ||
|
||
lock_impl!(File); | ||
allocate!(File); | ||
allocate_size!(File); | ||
|
||
test_mod! { | ||
tokio::test, | ||
use crate::fs_err3_tokio::AsyncFileExt; | ||
use fs_err3::tokio as fs; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.