async-fs-io 0.2.0

Async-first filesystem primitives, bounded reads, streaming directory access, and temporary resources
Documentation
#![doc = include_str!("../README.md")]

//! Async-first filesystem primitives with explicit memory bounds.

mod async_file;
mod atomic;
mod directory;
mod error;
mod file;
mod lock;
mod temp;

pub use async_file::AsyncFile;
pub use atomic::{
    atomic_copy,
    atomic_write,
    atomic_write_string,
};
pub use directory::{
    DirectoryEntry,
    DirectoryEntryKind,
    DirectoryReader,
    ensure_dir,
    remove_dir_all,
};
pub use error::{
    FsError,
    Operation,
};
pub use file::{
    FileMetadata,
    canonicalize,
    metadata,
    read_bounded,
    read_string_bounded,
    read_string_bounded_if_exists,
    remove_file,
    remove_if_exists,
    rename,
    set_permissions,
    symlink_metadata,
    try_exists,
    write_bytes,
};
pub use lock::{
    ExclusiveLock,
    acquire_exclusive_lock,
};
pub use temp::{
    TempDir,
    TempFile,
};

#[cfg(test)]
mod tests;