Expand description
Core types, traits, and errors for the loadsmith mod-manager library.
This is an internal crate of the [loadsmith] workspace. Most consumers
should depend on the loadsmith facade crate instead of using this
crate directly.
§Examples
let pkg = PackageRef::new("denikson-BepInExPack_Valheim", Version::new(5, 4, 2202));
assert_eq!(pkg.to_string(), "denikson-BepInExPack_Valheim@5.4.2202");
let parsed: PackageRef = "x753-More_Suits@1.4.0".parse()?;
assert_eq!(parsed.id().as_str(), "x753-More_Suits");
assert_eq!(parsed.version().to_string(), "1.4.0");Structs§
- Dependency
- A declared dependency on another package.
- Installed
File - A single file belonging to an installed package.
- Installed
Package - A record of a package installation at a specific point in time.
- Package
Id - A unique identifier for a package (e.g.
"denikson-BepInExPack_Valheim"). - Package
Ref - A reference to a specific version of a package, formatted as
"<id>@<version>". - Version
- Re-export of
semver::Versionfor convenience. - Version
Req - Re-export of
semver::Versionfor convenience.
Enums§
- Checksum
- A checksum value computed with a recognised algorithm (BLAKE3 or SHA-256).
- Checksum
Algorithm - The set of checksum algorithms this crate can handle.
- Error
- Errors that can occur while interacting with the structs in this crate.
- FileUrl
- A URL or local file path that points to a package source.
Type Aliases§
- Result
- Convenience alias for
std::result::Resultwith the crate-levelErrortype.