Module lua_rockspec

Source

Structs§

BuildSpec
The build specification for a given rock, serialized from rockspec.build = { ... }.
BuiltinBuildSpec
BustedTestSpec
CMakeBuildSpec
CommandBuildSpec
CommandTestSpec
DeploySpec
An undocumented part of the rockspec format.
ExpectedListOfStrings
ExpectedTableOfStrings
ExternalDependencySpec
Can be defined in a platform-agnostic manner
InstallSpec
For packages which don’t provide means to install modules and expect the user to copy the .lua or library files by hand to the proper locations. This struct contains categories of files. Each category is itself a table, where the array part is a list of filenames to be copied. For module directories only, in the hash part, other keys are identifiers in Lua module format, to indicate which subdirectory the file should be copied to. For example, build.install.lua = {[“foo.bar”] = {“src/bar.lua”}} will copy src/bar.lua to the foo directory under the rock’s Lua files directory.
InvalidRockspecFormat
LocalLuaRockspec
LocalRockSource
LuaModule
LuaScriptTestSpec
MakeBuildSpec
ModulePaths
PartialLuaRockspec
PerPlatform
Data that that can vary per platform
PerPlatformWrapper
Newtype wrapper used to implement a FromLua instance for FromPlatformOverridable This is necessary, because Rust doesn’t yet support specialization.
PlatformIdentifierIter
An iterator over the variants of PlatformIdentifier
PlatformSupport
RemoteLuaRockspec
RemoteRockSource
RockDescription
RockSourceMissingSource
RustMluaBuildSpec
TreesitterParserBuildSpec

Enums§

BuildBackendSpec
Encodes extra information about each backend. When selecting a backend, one may provide extra parameters to build = { ... } in order to further customize the behaviour of the build step.
BuildSpecInternalError
LuaRockspecError
LuaTableError
LuaTableKey
LuaVersionError
ModuleSpec
PlatformIdentifier
Identifier by a platform. The PartialOrd instance views more specific platforms as Greater
PlatformValidationError
RockSourceError
RockSourceSpec
RockspecFormat
SourceUrlError
TestSpec
TestSpecDecodeError
TestSpecError

Traits§

FromPlatformOverridable
PartialOverride
PlatformOverridable

Functions§

deserialize_vec_from_lua_array_or_string
Deserialize a json value into a Vec, treating empty json objects as empty lists If the json value is a string, this returns a singleton vector containing that value. This is needed to be able to deserialise RockSpec tables that luarocks also allows to be strings.
mlua_json_value_to_map
Convert a json value into a HashMap<String, T>. This is needed to be able to deserialise Lua tables.
mlua_json_value_to_vec
Convert a json value into a Vec, treating empty json objects as empty lists This is needed to be able to deserialise Lua tables.

Type Aliases§

PartialRockspecError