#[ allow( clippy ::std_instead_of_alloc, clippy ::std_instead_of_core ) ]
mod private
{
use crate :: *;
use std ::
{
io,
};
use error ::
{
typed ::Error,
};
#[ derive( Debug, Error ) ]
pub enum PathError
{
#[ error( "Failed to create a `CrateDir` object due to `{0}`" ) ]
Validation( String ),
#[ error( "IO operation failed. Details: {0}" ) ]
Io( #[ from ] io ::Error ),
}
}
mod crate_dir;
mod manifest_file;
mod source_file;
mod either;
crate ::mod_interface!
{
exposed use super ::
{
crate_dir ::CrateDir,
manifest_file ::ManifestFile,
source_file ::
{
SourceFile,
Entries,
Sources,
},
either ::EitherDirOrFile
};
exposed use PathError;
}