pub struct InstallOptions {
pub no_cache: bool,
pub quiet: bool,
pub backend: Backend,
pub lockfile_only: bool,
pub offline: bool,
pub strict_lockfile: bool,
pub from_lockfile: bool,
pub native_only: bool,
pub no_scripts: bool,
pub script_allowlist: Option<HashSet<String>>,
}Fields§
§no_cache: bool§quiet: bool§backend: Backend§lockfile_only: bool§offline: bool§strict_lockfile: bool§from_lockfile: boolWhen true, specs came from lockfile; skip npm show and use tarball URLs only (no packument).
native_only: boolWhen true, never call Bun/npm; fail with clear error if native install fails.
no_scripts: boolWhen true, skip lifecycle scripts in backend fallback paths.
script_allowlist: Option<HashSet<String>>Optional allowlist for packages allowed to run scripts in backend fallback mode.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InstallOptions
impl RefUnwindSafe for InstallOptions
impl Send for InstallOptions
impl Sync for InstallOptions
impl Unpin for InstallOptions
impl UnwindSafe for InstallOptions
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