Crate workspacer_interface

Source

Enums§

BuildError
CargoDocError
CargoMetadataError
CargoTomlError
CargoTomlWriteError
CrateError
CrateWriteError
DirectoryError
GitError
LintingError
ReadmeWriteError
SourceFileRegistrationError
TestCoverageError
TestFailure
TokioError
WatchError
WorkspaceError

Traits§

CargoTomlInterface
CheckExistence
CheckIfReadmeExists
CheckIfSrcDirectoryContainsValidFiles
CheckRequiredFieldsForIntegrity
CheckRequiredFieldsForPublishing
CheckVersionValidityForIntegrity
CheckVersionValidityForPublishing
CrateHandleInterface
DocumentClone
FindCrateByName
GatherBinTargetNames
GetAllCrateNames
GetContent
GetCrateRepositoryLocation
GetCrateRepositoryLocationOrFallback
GetCrates
GetCratesMut
GetFilesInDirectory
GetFilesInDirectoryWithExclusions
GetInternalDependencies
A private trait for gathering local (path-based) dependencies from a crate’s Cargo.toml. We do NOT expose it publicly — it remains internal.
GetLicenseType
GetLicenseTypeOrFallback
GetPackageAuthors
GetPackageAuthorsOrFallback
GetPackageSection
GetPackageSectionMut
GetReadmePath
GetRustEdition
GetRustEditionOrFallback
GetSourceFilesWithExclusions
GetTestFiles
HasCargoToml
HasCargoTomlPathBuf
HasCargoTomlPathBufSync
HasTestsDirectory
IsPrivate
IsValidVersion
NumCrates
ReadFileString
We add a new method to CrateHandleInterface so we can read file text from an in-memory mock or from the real filesystem. For your real code, you might implement it differently.
RootDirPathBuf
SaveToDisk
UpdateDependencyVersionRaw
Versioned
WorkspaceInterface
WriteDocumentBack