pub struct ResolvedManifest {
pub crate_dir: PathBuf,
pub package: String,
pub config: Config,
}Expand description
One CLI invocation’s worth of resolved user-crate state.
Fields§
§crate_dir: PathBufDirectory containing the user crate’s Cargo.toml and (next
to it) whisker.rs. All other paths the CLI builds are
relative to this.
package: String[package].name from Cargo.toml. Used by the dev-server as
the cargo -p argument, and by whisker-build to find the
lib<package>.so / .dylib artifact.
config: ConfigResult of running the user’s whisker.rs::configure. Owned
(decoded from JSON) so subsequent CLI logic can pattern-match
on optional fields without rerunning the probe.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ResolvedManifest
impl RefUnwindSafe for ResolvedManifest
impl Send for ResolvedManifest
impl Sync for ResolvedManifest
impl Unpin for ResolvedManifest
impl UnsafeUnpin for ResolvedManifest
impl UnwindSafe for ResolvedManifest
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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 more