Enum hakari::TomlOutError [−][src]
#[non_exhaustive]
pub enum TomlOutError {
Platform(TargetSpecError),
Toml {
context: Cow<'static, str>,
err: Error,
},
FmtWrite(Error),
PathWithoutHakari {
package_id: PackageId,
rel_path: Utf8PathBuf,
},
UnrecognizedExternal {
package_id: PackageId,
source: String,
},
UnrecognizedRegistry {
package_id: PackageId,
registry_url: String,
},
}
Expand description
An error that occurred while writing out TOML.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Platform(TargetSpecError)
An error occurred while serializing platform information.
Tuple Fields of Platform
An error occurred while serializing TOML.
This option is only present if the cli-support
feature is enabled.
Fields of Toml
FmtWrite(Error)
An error occurred while writing to a fmt::Write
instance.
Tuple Fields of FmtWrite
0: Error
Attempted to output a path dependency, but a Hakari package wasn’t provided to the builder.
If any path dependencies need to be unified, the location of the Hakari package must be specified so that a relative path can be displayed.
Fields of PathWithoutHakari
package_id: PackageId
The package ID that Hakari tried to write out a dependency line for.
rel_path: Utf8PathBuf
The relative path to the package from the root of the workspace.
An external source wasn’t recognized by guppy.
Fields of UnrecognizedExternal
An external registry was found and wasn’t passed into HakariOutputOptions
.
Fields of UnrecognizedRegistry
Trait Implementations
Performs the conversion.