pub enum Command {
Serve {
contract: PathBuf,
},
Extract {
library: PathBuf,
out: PathBuf,
depfile: Option<PathBuf>,
},
Export {
library: PathBuf,
out: PathBuf,
},
New {
directory: PathBuf,
},
}Expand description
A command of the Rust toolkit.
Variants§
Serve
serve --contract FILE: serve the Tools the host’s --contract
file lists, as a [process] library’s command is started
(abi.md, Binding).
Extract
extract --library ROOT --out CONTRACT [--depfile FILE]: write the
contract of the library at library to out in the value encoding,
and list in depfile every file read (abi.md, Extracting a
contract).
Fields
Export
export --library ROOT --out DIR: build the library’s launcher
for a release and copy it into out.
New
new DIR: write a library to start from at directory.
Implementations§
Trait Implementations§
impl Eq for Command
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Forget for Command
impl Freeze for Command
impl Move for Command
impl RefUnwindSafe for Command
impl Send for Commandwhere
RawVecInner: Send,
impl Sync for Commandwhere
RawVecInner: Sync,
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Commandwhere
RawVecInner: UnwindSafe,
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