Skip to content

Commit

Permalink
feat: when using --offline, pass that on to cargo
Browse files Browse the repository at this point in the history
  • Loading branch information
ctron committed Oct 25, 2023
1 parent 9590251 commit 98ffce4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/config/rt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ pub struct RtcBuild {
pub target_parent: PathBuf,
/// Build in release mode.
pub release: bool,
/// Build without downloading tools
/// Build without network access
pub offline: bool,
/// The public URL from which assets are to be served.
pub public_url: String,
Expand Down
3 changes: 3 additions & 0 deletions src/pipelines/rust.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,9 @@ impl RustApp {
if self.cfg.release {
args.push("--release");
}
if self.cfg.offline {
args.push("--offline");
}
if let Some(bin) = &self.bin {
args.push("--bin");
args.push(bin);
Expand Down

0 comments on commit 98ffce4

Please sign in to comment.