pub struct OnDiskCompiledPackage {
pub root_path: PathBuf,
pub compiled_package_info: CompiledPackageInfo,
pub dependencies: Vec<PathBuf>,
}
Expand description
Represents a compiled package that has been saved to disk. This holds only the minimal metadata
needed to reconstruct a CompiledPackage
package from it and to determine whether or not a
recompilation of the package needs to be performed or not.
Fields§
§root_path: PathBuf
Path to the root of the package and its data on disk.
compiled_package_info: CompiledPackageInfo
Information about the package and the specific compilation that was done.
dependencies: Vec<PathBuf>
Paths to dependencies for this package.
Implementations§
source§impl OnDiskCompiledPackage
impl OnDiskCompiledPackage
pub fn from_path<P: AsRef<Path>>(p: P) -> Result<Self>
pub fn into_compiled_package(&self) -> Result<CompiledPackage>
Trait Implementations§
source§impl Clone for OnDiskCompiledPackage
impl Clone for OnDiskCompiledPackage
source§fn clone(&self) -> OnDiskCompiledPackage
fn clone(&self) -> OnDiskCompiledPackage
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for OnDiskCompiledPackage
impl Debug for OnDiskCompiledPackage
source§impl<'de> Deserialize<'de> for OnDiskCompiledPackage
impl<'de> Deserialize<'de> for OnDiskCompiledPackage
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more