agave_fs/lib.rs
1#![cfg(feature = "agave-unstable-api")]
2// Activate some of the Rust 2024 lints to make the future migration easier.
3#![warn(if_let_rescope)]
4#![warn(keyword_idents_2024)]
5#![warn(rust_2024_incompatible_pat)]
6#![warn(tail_expr_drop_order)]
7#![warn(unsafe_attr_outside_unsafe)]
8#![warn(unsafe_op_in_unsafe_fn)]
9
10pub mod buffered_reader;
11pub mod buffered_writer;
12pub mod dirs;
13mod file_info;
14pub mod file_io;
15pub mod io_setup;
16mod io_uring;
17pub mod metadata;
18
19pub use file_info::FileInfo;
20
21/// Alias for file offsets and sizes - since files can exceed 4GB, use 64-bits
22pub type FileSize = u64;
23
24/// Single IO performed on a filesystem can never exceed 32-bits,
25/// this also constrains possible buffer sizes that are used for IO operations.
26pub type IoSize = u32;