cap_fs_ext/
lib.rs

1//! Extension traits for `Dir`
2
3#![deny(missing_docs)]
4#![forbid(unsafe_code)]
5#![cfg_attr(all(windows, windows_by_handle), feature(windows_by_handle))]
6#![doc(
7    html_logo_url = "https://raw.githubusercontent.com/bytecodealliance/cap-std/main/media/cap-std.svg"
8)]
9#![doc(
10    html_favicon_url = "https://raw.githubusercontent.com/bytecodealliance/cap-std/main/media/cap-std.ico"
11)]
12
13mod dir_entry_ext;
14mod dir_ext;
15mod file_type_ext;
16mod is_file_read_write;
17mod metadata_ext;
18mod open_options_follow_ext;
19mod open_options_maybe_dir_ext;
20mod open_options_sync_ext;
21mod reopen;
22
23pub use dir_entry_ext::DirEntryExt;
24#[cfg(feature = "async_std")]
25pub use dir_ext::AsyncDirExt;
26#[cfg(all(feature = "async_std", feature = "fs_utf8"))]
27pub use dir_ext::AsyncDirExtUtf8;
28#[cfg(all(any(feature = "std", feature = "async_std"), feature = "fs_utf8"))]
29pub use dir_ext::DirExtUtf8;
30pub use dir_ext::{AccessType, DirExt, SystemTimeSpec};
31pub use file_type_ext::FileTypeExt;
32pub use is_file_read_write::IsFileReadWrite;
33pub use metadata_ext::MetadataExt;
34pub use open_options_follow_ext::OpenOptionsFollowExt;
35pub use open_options_maybe_dir_ext::OpenOptionsMaybeDirExt;
36pub use open_options_sync_ext::OpenOptionsSyncExt;
37pub use reopen::Reopen;
38
39/// Re-export these to allow them to be used with `Reuse`.
40pub use cap_primitives::fs::{
41    FollowSymlinks, Metadata, MetadataExt as OsMetadataExt, OpenOptions, OpenOptionsExt,
42};
43
44#[doc(hidden)]
45pub use cap_primitives::ambient_authority_known_at_compile_time;
46pub use cap_primitives::{ambient_authority, AmbientAuthority};