pub struct CargoCommands { /* private fields */ }Expand description
Structure for handling Cargo commands Contains a runtime for async operations
Implementations§
Source§impl CargoCommands
impl CargoCommands
Sourcepub fn execute<F, T>(&self, future: F) -> Twhere
F: Future<Output = T>,
pub fn execute<F, T>(&self, future: F) -> Twhere
F: Future<Output = T>,
Executes a future on the runtime
Sourcepub async fn cargo_check(&self, args: &[&str]) -> LuaResult<(String, bool)>
pub async fn cargo_check(&self, args: &[&str]) -> LuaResult<(String, bool)>
Check the project for errors
Sourcepub async fn cargo_clean(&self, args: &[&str]) -> LuaResult<(String, bool)>
pub async fn cargo_clean(&self, args: &[&str]) -> LuaResult<(String, bool)>
Clean the target directory
Sourcepub async fn cargo_doc(&self, args: &[&str]) -> LuaResult<(String, bool)>
pub async fn cargo_doc(&self, args: &[&str]) -> LuaResult<(String, bool)>
Generate documentation
Sourcepub async fn cargo_new(
&self,
name: &str,
args: &[&str],
) -> LuaResult<(String, bool)>
pub async fn cargo_new( &self, name: &str, args: &[&str], ) -> LuaResult<(String, bool)>
Create a new package
Sourcepub async fn cargo_update(&self, args: &[&str]) -> LuaResult<(String, bool)>
pub async fn cargo_update(&self, args: &[&str]) -> LuaResult<(String, bool)>
Update dependencies
Sourcepub async fn cargo_init(&self, args: &[&str]) -> LuaResult<(String, bool)>
pub async fn cargo_init(&self, args: &[&str]) -> LuaResult<(String, bool)>
Initialize a new package in an existing directory
Sourcepub async fn cargo_add(&self, args: &[&str]) -> LuaResult<(String, bool)>
pub async fn cargo_add(&self, args: &[&str]) -> LuaResult<(String, bool)>
Add dependencies to a manifest file
Sourcepub async fn cargo_remove(&self, args: &[&str]) -> LuaResult<(String, bool)>
pub async fn cargo_remove(&self, args: &[&str]) -> LuaResult<(String, bool)>
Remove dependencies from a manifest file
Sourcepub async fn cargo_clippy(&self, args: &[&str]) -> LuaResult<(String, bool)>
pub async fn cargo_clippy(&self, args: &[&str]) -> LuaResult<(String, bool)>
Run the Clippy linter
Sourcepub async fn cargo_fix(&self, args: &[&str]) -> LuaResult<(String, bool)>
pub async fn cargo_fix(&self, args: &[&str]) -> LuaResult<(String, bool)>
Automatically fix lint warnings
Sourcepub async fn cargo_publish(&self, args: &[&str]) -> LuaResult<(String, bool)>
pub async fn cargo_publish(&self, args: &[&str]) -> LuaResult<(String, bool)>
Package and upload crate to registry
Sourcepub async fn cargo_install(&self, args: &[&str]) -> LuaResult<(String, bool)>
pub async fn cargo_install(&self, args: &[&str]) -> LuaResult<(String, bool)>
Install a Rust binary
Sourcepub async fn cargo_uninstall(&self, args: &[&str]) -> LuaResult<(String, bool)>
pub async fn cargo_uninstall(&self, args: &[&str]) -> LuaResult<(String, bool)>
Uninstall a Rust binary
Sourcepub async fn cargo_search(&self, args: &[&str]) -> LuaResult<(String, bool)>
pub async fn cargo_search(&self, args: &[&str]) -> LuaResult<(String, bool)>
Search packages in registry
Sourcepub async fn cargo_tree(&self, args: &[&str]) -> LuaResult<(String, bool)>
pub async fn cargo_tree(&self, args: &[&str]) -> LuaResult<(String, bool)>
Display dependency tree
Sourcepub async fn cargo_vendor(&self, args: &[&str]) -> LuaResult<(String, bool)>
pub async fn cargo_vendor(&self, args: &[&str]) -> LuaResult<(String, bool)>
Vendor all dependencies locally
Sourcepub async fn cargo_audit(&self, args: &[&str]) -> LuaResult<(String, bool)>
pub async fn cargo_audit(&self, args: &[&str]) -> LuaResult<(String, bool)>
Audit dependencies for security vulnerabilities
Trait Implementations§
Source§impl Clone for CargoCommands
impl Clone for CargoCommands
Source§fn clone(&self) -> CargoCommands
fn clone(&self) -> CargoCommands
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CargoCommands
impl RefUnwindSafe for CargoCommands
impl Send for CargoCommands
impl Sync for CargoCommands
impl Unpin for CargoCommands
impl UnwindSafe for CargoCommands
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more