Scripting API
Scripting API
RustCrates
Class in Abyss.Core, from Abyss.Core.
What the engine reads of a crate's manifest, the Cargo.toml in a game's or a package's rust folder: its package's name, and whether it names another crate as one it needs.
public static class RustCratesRemarks
Read as lines, a table's name in brackets and a key before an =, which is all a manifest names a crate by; nothing of TOML's past that, as nothing else is asked of one.
Methods
NameOf
public static string? NameOf(string manifest)The name a crate's manifest gives its package, from its [package] table; null where it gives none or cannot be read.
Parameters
manifest
Needs
public static bool Needs(string manifest, string crate)Whether a crate's manifest names crate as one it needs: by its name as a key of a table of dependencies — its own, a build's, its tests', a platform's — or as the table of it, or as the package a key of another name stands for.
Parameters
manifestcrate
Constants
Manifest
public const string Manifest = "Cargo.toml"What a crate's manifest is called, in its folder.
