pub struct FlatDistTree(/* private fields */);Expand description
A staging tree with a flat hierarchy for distribution outside of Lux.
When dropped, tries to remove all build artifacts that are not meant to be distributed,
as well as the etc directory (failing silently if any artifacts cannot be removed).
Unlike a regular Lux tree, conflicting packages are not supported.
Implementations§
Source§impl FlatDistTree
impl FlatDistTree
Trait Implementations§
Source§impl Clone for FlatDistTree
impl Clone for FlatDistTree
Source§fn clone(&self) -> FlatDistTree
fn clone(&self) -> FlatDistTree
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FlatDistTree
impl Debug for FlatDistTree
Source§impl Drop for FlatDistTree
impl Drop for FlatDistTree
Source§impl InstallTree for FlatDistTree
impl InstallTree for FlatDistTree
Source§fn version(&self) -> &LuaVersion
fn version(&self) -> &LuaVersion
The Lua version for which to install packages.
Source§fn root_for(&self, _package: &LocalPackage) -> PathBuf
fn root_for(&self, _package: &LocalPackage) -> PathBuf
The root of a package
Source§fn unwrapped_bin(&self) -> PathBuf
fn unwrapped_bin(&self) -> PathBuf
Where unwrapped package binaries are installed
Source§fn entrypoint(&self, package: &LocalPackage) -> Result<RockLayout>
fn entrypoint(&self, package: &LocalPackage) -> Result<RockLayout>
Source§fn dependency(&self, package: &LocalPackage) -> Result<RockLayout>
fn dependency(&self, package: &LocalPackage) -> Result<RockLayout>
Source§fn lockfile_path(&self) -> PathBuf
fn lockfile_path(&self) -> PathBuf
Get this tree’s lockfile path.
Source§fn build_tree(&self, config: &Config) -> Result<Tree, TreeError>
fn build_tree(&self, config: &Config) -> Result<Tree, TreeError>
The tree in which to install build dependencies.
Source§fn test_tree(&self, config: &Config) -> Result<Tree, TreeError>
fn test_tree(&self, config: &Config) -> Result<Tree, TreeError>
The tree in which to install test dependencies.
Source§fn installed_rock_layout(
&self,
package: &LocalPackage,
) -> Result<RockLayout, TreeError>
fn installed_rock_layout( &self, package: &LocalPackage, ) -> Result<RockLayout, TreeError>
Get the
RockLayout for an installed package.Source§fn list(&self) -> Result<HashMap<PackageName, Vec<LocalPackage>>, TreeError>
fn list(&self) -> Result<HashMap<PackageName, Vec<LocalPackage>>, TreeError>
List the packages that are installed in this tree.
Source§fn match_rocks(&self, req: &PackageReq) -> Result<RockMatches, TreeError>
fn match_rocks(&self, req: &PackageReq) -> Result<RockMatches, TreeError>
Find installed rocks that match the given
PackageReq.Auto Trait Implementations§
impl Freeze for FlatDistTree
impl RefUnwindSafe for FlatDistTree
impl Send for FlatDistTree
impl Sync for FlatDistTree
impl Unpin for FlatDistTree
impl UnsafeUnpin for FlatDistTree
impl UnwindSafe for FlatDistTree
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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 moreimpl<T> OrderedSeq<'_, T> for Twhere
T: Clone,
Source§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<'p, T> Seq<'p, T> for Twhere
T: Clone,
impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
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
Invokes
WrappingSpan::make_wrapped to wrap an AST node in a span.