pub struct DevArgs {
pub project_root: Option<PathBuf>,
pub watch_paths: Vec<PathBuf>,
pub debounce_ms: u64,
}Expand description
Decoded form of the dev subcommand.
Fields§
§project_root: Option<PathBuf>Override the project root. Defaults to walking up from cwd.
watch_paths: Vec<PathBuf>Extra paths to watch (in addition to src/). Useful for
templates, static fixtures, anything that should trigger a
rebuild but doesn’t live under src/. Defaults to empty.
debounce_ms: u64Debounce window for file events. Defaults to 250ms — long enough to swallow the multi-event storm editors emit on save, short enough that adopters don’t notice the lag.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DevArgs
impl RefUnwindSafe for DevArgs
impl Send for DevArgs
impl Sync for DevArgs
impl Unpin for DevArgs
impl UnsafeUnpin for DevArgs
impl UnwindSafe for DevArgs
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