pub struct Options<'a> {
pub crate_dir: &'a Path,
pub name: Option<String>,
pub version: Option<String>,
pub out: Option<PathBuf>,
pub dry_run: bool,
pub fallback: Option<String>,
pub bin: Vec<String>,
pub original: Option<String>,
}Fields§
§crate_dir: &'a Path§name: Option<String>Package name on npm or PyPI; defaults to the crate name.
version: Option<String>Package version; defaults to the original package’s.
out: Option<PathBuf>Output folder; defaults to <crate>/package.
dry_run: boolList what would be written, write nothing.
fallback: Option<String>napi: the module the loader requires when no binary fits the platform.
bin: Vec<String>CLI: the commands the package installs; defaults to the package name without its scope.
original: Option<String>CLI: the original npm package the front door falls back to, as name@version; defaults
to the one in node_modules of the repository the front door belongs to.
Auto Trait Implementations§
impl<'a> Forget for Options<'a>
impl<'a> Freeze for Options<'a>
impl<'a> Move for Options<'a>
impl<'a> RefUnwindSafe for Options<'a>
impl<'a> Send for Options<'a>
impl<'a> Sync for Options<'a>
impl<'a> Unpin for Options<'a>
impl<'a> UnsafeUnpin for Options<'a>
impl<'a> UnwindSafe for Options<'a>
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