Skip to main content

vfsi_sync/
lib.rs

1//! Synchronous filesystem interface facets.
2//!
3//! The compatibility [`VecFs`] trait remains the optimized vector contract.
4//! Its single-operation helpers form today's scalar facet without introducing
5//! a second, conflicting set of method names.
6
7use std::path::{Path, PathBuf};
8
9pub use vfsi_core::*;
10
11#[doc(hidden)]
12pub mod path {
13    pub use vfsi_core::path::*;
14}
15
16mod traits;
17pub use traits::{VecFs, VecFsExt, rm_recursive};
18
19/// Scalar/singular view of the synchronous interface.
20pub mod sfsi {
21    pub use crate::{VecFs, VecFsExt};
22    pub use vfsi_core::{Fd, VfAttrs, VfError, VfFile, VfOffset, VfResult, VfType};
23}
24
25/// Vectorized view of the synchronous interface.
26pub mod vfsi {
27    pub use crate::{VecFs, VecFsExt, rm_recursive};
28    pub use vfsi_core::*;
29}
30
31#[cfg(feature = "test-support")]
32#[doc(hidden)]
33pub mod test_support;