Add docstrings to CleanOptions
authorAdam Niederer <AdamNiederer@users.noreply.github.com>
Thu, 22 Mar 2018 02:13:05 +0000 (22:13 -0400)
committerGitHub <noreply@github.com>
Thu, 22 Mar 2018 02:13:05 +0000 (22:13 -0400)
src/cargo/ops/cargo_clean.rs

index f56e1d58070a582c86fe3dcffd085b8f000f19aa..30f299faf2462349a69b293e0344dd602f708a3c 100644 (file)
@@ -10,8 +10,11 @@ use ops::{self, BuildConfig, Context, Kind, Unit};
 
 pub struct CleanOptions<'a> {
     pub config: &'a Config,
+    /// A list of packages to clean. If empty, everything is cleaned.
     pub spec: Vec<String>,
+    /// The target arch triple to clean, or None for the host arch
     pub target: Option<String>,
+    /// Whether to clean the release directory
     pub release: bool,
 }