Don't use DirectoryError, but PathComponentError. Also add checks for too long path components. Change-Id: Ia9deb9dd0351138baadb2e9c9454c3e019d5a45e Reviewed-on: https://cl.tvl.fyi/c/depot/+/12229 Tested-by: BuildkiteCI Reviewed-by: Ilan Joselevich <personal@ilanjoselevich.com> Autosubmit: flokli <flokli@flokli.de> Reviewed-by: edef <edef@edef.eu>
34 lines
702 B
Rust
34 lines
702 B
Rust
mod digests;
|
|
mod errors;
|
|
mod hashing_reader;
|
|
|
|
pub mod blobservice;
|
|
pub mod composition;
|
|
pub mod directoryservice;
|
|
pub mod fixtures;
|
|
|
|
#[cfg(feature = "fs")]
|
|
pub mod fs;
|
|
|
|
mod nodes;
|
|
pub use nodes::*;
|
|
|
|
mod path;
|
|
pub use path::{Path, PathBuf, PathComponent, PathComponentError};
|
|
|
|
pub mod import;
|
|
pub mod proto;
|
|
pub mod tonic;
|
|
|
|
pub use digests::{B3Digest, B3_LEN};
|
|
pub use errors::{DirectoryError, Error, ValidateNodeError};
|
|
pub use hashing_reader::{B3HashingReader, HashingReader};
|
|
|
|
#[cfg(test)]
|
|
mod tests;
|
|
|
|
// That's what the rstest_reuse README asks us do, and fails about being unable
|
|
// to find rstest_reuse in crate root.
|
|
#[cfg(test)]
|
|
#[allow(clippy::single_component_path_imports)]
|
|
use rstest_reuse;
|