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)
Tuple Fields
An error occurred while serializing platform information.
Toml
An error occurred while serializing TOML.
This option is only present if the cli-support
feature is enabled.
FmtWrite(Error)
Tuple Fields
0: Error
An error occurred while writing to a fmt::Write
instance.
PathWithoutHakari
Fields
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.
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.
UnrecognizedExternal
Fields
package_id: PackageId
The package ID that Hakari tried to write out a dependency line for.
source: String
The source string that wasn’t recognized.
An external source wasn’t recognized by guppy.
UnrecognizedRegistry
Fields
package_id: PackageId
The package ID that Hakari tried to write out a dependency line for.
registry_url: String
The registry URL that wasn’t recognized.
An external registry was found and wasn’t passed into HakariOutputOptions
.
Trait Implementations
Performs the conversion.