pub struct RockLayout {
pub rock_path: PathBuf,
pub etc: PathBuf,
pub lib: PathBuf,
pub src: PathBuf,
pub bin: PathBuf,
pub conf: PathBuf,
pub doc: PathBuf,
}Expand description
Change-agnostic way of referencing various paths for a rock.
Fields§
§rock_path: PathBufThe local installation directory.
Can be substituted in a rockspec’s build.build_variables and build.install_variables
using $(PREFIX).
etc: PathBufThe etc directory, containing resources.
lib: PathBufThe lib directory, containing native libraries.
Can be substituted in a rockspec’s build.build_variables and build.install_variables
using $(LIBDIR).
src: PathBufThe src directory, containing Lua sources.
Can be substituted in a rockspec’s build.build_variables and build.install_variables
using $(LUADIR).
bin: PathBufThe bin directory, containing executables.
Can be substituted in a rockspec’s build.build_variables and build.install_variables
using $(BINDIR).
This points to a global binary path at the root of the current tree by default.
conf: PathBufThe etc/conf directory, containing configuration files.
Can be substituted in a rockspec’s build.build_variables and build.install_variables
using $(CONFDIR).
doc: PathBufThe etc/doc directory, containing documentation files.
Can be substituted in a rockspec’s build.build_variables and build.install_variables
using $(DOCDIR).
Implementations§
Source§impl RockLayout
impl RockLayout
pub fn rockspec_path(&self) -> PathBuf
Trait Implementations§
Source§impl Debug for RockLayout
impl Debug for RockLayout
Source§impl PartialEq for RockLayout
impl PartialEq for RockLayout
impl StructuralPartialEq for RockLayout
Auto Trait Implementations§
impl Freeze for RockLayout
impl RefUnwindSafe for RockLayout
impl Send for RockLayout
impl Sync for RockLayout
impl Unpin for RockLayout
impl UnsafeUnpin for RockLayout
impl UnwindSafe for RockLayout
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
Source§fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
WrappingSpan::make_wrapped to wrap an AST node in a span.