Skip to main content

Crate loadsmith_core

Crate loadsmith_core 

Source
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.
InstalledFile
A single file belonging to an installed package.
InstalledPackage
A record of a package installation at a specific point in time.
PackageId
A unique identifier for a package (e.g. "denikson-BepInExPack_Valheim").
PackageRef
A reference to a specific version of a package, formatted as "<id>@<version>".
Version
Re-export of semver::Version for convenience.
VersionReq
Re-export of semver::Version for convenience.

Enums§

Checksum
A checksum value computed with a recognised algorithm (BLAKE3 or SHA-256).
ChecksumAlgorithm
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::Result with the crate-level Error type.