pub trait Rockspec {
type Error: Display + Debug;
Show 20 methods
// Required methods
fn package(&self) -> &PackageName;
fn version(&self) -> &PackageVersion;
fn description(&self) -> &RockDescription;
fn supported_platforms(&self) -> &PlatformSupport;
fn lua(&self) -> &PackageVersionReq;
fn dependencies(&self) -> &PerPlatform<Vec<LuaDependencySpec>>;
fn build_dependencies(&self) -> &PerPlatform<Vec<LuaDependencySpec>>;
fn external_dependencies(
&self,
) -> &PerPlatform<HashMap<String, ExternalDependencySpec>>;
fn test_dependencies(&self) -> &PerPlatform<Vec<LuaDependencySpec>>;
fn build(&self) -> &PerPlatform<BuildSpec>;
fn test(&self) -> &PerPlatform<TestSpec>;
fn source(&self) -> &PerPlatform<RemoteRockSource>;
fn deploy(&self) -> &PerPlatform<DeploySpec>;
fn build_mut(&mut self) -> &mut PerPlatform<BuildSpec>;
fn test_mut(&mut self) -> &mut PerPlatform<TestSpec>;
fn source_mut(&mut self) -> &mut PerPlatform<RemoteRockSource>;
fn deploy_mut(&mut self) -> &mut PerPlatform<DeploySpec>;
fn format(&self) -> &Option<RockspecFormat>;
fn to_lua_remote_rockspec_string(&self) -> Result<String, Self::Error>;
// Provided method
fn binaries(&self) -> RockBinaries { ... }
}
Required Associated Types§
Required Methods§
fn package(&self) -> &PackageName
fn version(&self) -> &PackageVersion
fn description(&self) -> &RockDescription
fn supported_platforms(&self) -> &PlatformSupport
fn lua(&self) -> &PackageVersionReq
fn dependencies(&self) -> &PerPlatform<Vec<LuaDependencySpec>>
fn build_dependencies(&self) -> &PerPlatform<Vec<LuaDependencySpec>>
fn external_dependencies( &self, ) -> &PerPlatform<HashMap<String, ExternalDependencySpec>>
fn test_dependencies(&self) -> &PerPlatform<Vec<LuaDependencySpec>>
fn build(&self) -> &PerPlatform<BuildSpec>
fn test(&self) -> &PerPlatform<TestSpec>
fn source(&self) -> &PerPlatform<RemoteRockSource>
fn deploy(&self) -> &PerPlatform<DeploySpec>
fn build_mut(&mut self) -> &mut PerPlatform<BuildSpec>
fn test_mut(&mut self) -> &mut PerPlatform<TestSpec>
fn source_mut(&mut self) -> &mut PerPlatform<RemoteRockSource>
fn deploy_mut(&mut self) -> &mut PerPlatform<DeploySpec>
fn format(&self) -> &Option<RockspecFormat>
Sourcefn to_lua_remote_rockspec_string(&self) -> Result<String, Self::Error>
fn to_lua_remote_rockspec_string(&self) -> Result<String, Self::Error>
Converts the rockspec to a string that can be uploaded to a luarocks server.
Provided Methods§
Sourcefn binaries(&self) -> RockBinaries
fn binaries(&self) -> RockBinaries
Shorthand to extract the binaries that are part of the rockspec.