pub struct BuildContext {Show 13 fields
pub project_dir: PathBuf,
pub workspace_dir: PathBuf,
pub output_dir: PathBuf,
pub target: TargetConfig,
pub protocol_package: String,
pub protocol_path: PathBuf,
pub protocol_module: String,
pub engine_package: String,
pub engine_path: PathBuf,
pub engine_type: String,
pub modules: Vec<ModuleBuild>,
pub framework: Framework,
pub release: bool,
}Expand description
Paths and packages a target needs to plan its build.
Fields§
§project_dir: PathBufDirectory containing Bern.toml.
workspace_dir: PathBufCargo workspace root.
output_dir: PathBuftarget/bern/<target-name>/, owned by this target.
target: TargetConfig§protocol_package: String§protocol_path: PathBuf§protocol_module: StringRust path of the protocol module, for example showcase_protocol::showcase.
engine_package: String§engine_path: PathBuf§engine_type: StringRust path of the engine type, which implements Default.
modules: Vec<ModuleBuild>The application’s modules, in catalog order.
framework: FrameworkWhere generated crates take the Bern crates from.
release: boolTrait Implementations§
Source§impl Clone for BuildContext
impl Clone for BuildContext
Auto Trait Implementations§
impl Freeze for BuildContext
impl RefUnwindSafe for BuildContext
impl Send for BuildContext
impl Sync for BuildContext
impl Unpin for BuildContext
impl UnsafeUnpin for BuildContext
impl UnwindSafe for BuildContext
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