Enum semantic_release_cargo::Error
source · pub enum Error {
Show 14 variants
WorkspaceError(WorkspaceError),
WorkspaceCycles {
crate1: String,
crate2: String,
},
OutputError(Error),
VerifyError {
reason: String,
},
BadDependency {
from: String,
to: String,
typ: DependencyType,
},
FileReadError {
inner: Error,
path: PathBuf,
},
FileWriteError {
inner: Error,
path: PathBuf,
},
TomlError(TomlError),
CargoTomlError {
inner: CargoTomlError,
manifest_path: PathBuf,
},
CargoPublish {
inner: Error,
manifest_path: PathBuf,
},
CargoPublishStatus {
status: ExitStatus,
manifest_path: PathBuf,
},
UrlError(UrlError),
WriteReleaseError(WriteReleaseError),
CargoLockfileUpdate {
reason: String,
package_name: String,
},
}
Expand description
The error type for operations sementic-release-rust
operations.
Variants§
WorkspaceError(WorkspaceError)
Error while parsing the structure of a workspace.
WorkspaceCycles
Error when verifying that a workspace does not include cycles.
OutputError(Error)
Error while writing to the output.
VerifyError
Error while verifying the conditions for a release.
BadDependency
Fields
typ: DependencyType
The type of dependency that prevents publication.
Error while verifying that dependencies allow publication.
This is a specific part of verifying the conditions for a release.
FileReadError
Error while reading a file.
FileWriteError
Error while writing a file.
TomlError(TomlError)
Error while parsing a TOML document.
CargoTomlError
Fields
inner: CargoTomlError
The error found in the Cargo.toml
file.
Error while examining the contents of a Cargo.toml
file.
CargoPublish
Fields
Error while attempting to run cargo publish
CargoPublishStatus
Fields
status: ExitStatus
The exit status from cargo publish
.
Error that records a non-sucess exit status from cargo publish
.
UrlError(UrlError)
Error while parsing a url for the release record.
WriteReleaseError(WriteReleaseError)
Error while attempting to write the release record as JSON.
CargoLockfileUpdate
Fields
Error while attempting to update Cargo lockfile.