pub enum LibraryProblem {
Show 23 variants
Toml(Box<Error>),
PackagesNotList,
UnnamedLockEntry,
Unlocked {
name: String,
version: String,
source: String,
},
NoLock,
NoManifest,
VirtualWorkspace,
NoPackage,
NoLibraryTarget,
DirectoryName,
NoSharedRoot {
root: PathBuf,
},
NoToolkit {
executable: PathBuf,
},
RelativeLauncher,
NotAContract(DecodeError),
ModulePath(SegmentsError),
NoTools,
ConditionalTool,
ConditionalLifespan,
SecondLifespan,
ModuleAttributes,
ModuleName {
name: String,
},
OutsideRoot,
Syntax(Box<Error>),
}Expand description
What is wrong with a file of the library, or of its build.
Variants§
Toml(Box<Error>)
A TOML file, a manifest or a lock, does not parse.
PackagesNotList
A lock’s package is not a list.
UnnamedLockEntry
A package of a lock has no name or version.
Unlocked
The library’s launcher resolves a package the workspace’s lock does not lock at the same version, source and checksum.
NoLock
The library’s workspace has no Cargo.lock.
NoManifest
The library’s root has no Cargo.toml.
VirtualWorkspace
The manifest is a virtual workspace’s.
NoPackage
The manifest has no [package] with a name.
NoLibraryTarget
The library target’s source, src/lib.rs or [lib].path, is no
file.
DirectoryName
The library’s directory has no UTF-8 name, which names its exported launcher.
A file shares no root with the library at root.
NoToolkit
The library depends on no flow-toolkit crate, and the running
toolkit, at executable, lies in no installation holding its
sources.
RelativeLauncher
The launcher’s path in the cache is not absolute.
NotAContract(DecodeError)
The launcher wrote no contract in the value encoding.
ModulePath(SegmentsError)
A contract module’s path is no module path.
NoTools
The library has no public #[tool] function.
ConditionalTool
A #[tool] function is conditional.
ConditionalLifespan
A #[lifespan] function is conditional.
SecondLifespan
The library has a second #[lifespan] function.
ModuleAttributes
A public module holding Tools is conditional or has a #[path].
ModuleName
A public module holding Tools is named name, which is no Flow
lowercase name.
OutsideRoot
A source file lies outside the library’s root.
Syntax(Box<Error>)
A source file does not parse as Rust.