Cargo Update (#3338)
This commit is contained in:
committed by
GitHub
parent
e28e02ecd4
commit
093c500fed
@@ -30,6 +30,7 @@ use cursive::views::{
|
||||
CircularFocus, Dialog, LinearLayout, Panel, SelectView, StackView, TextView, ViewRef,
|
||||
};
|
||||
use cursive::Cursive;
|
||||
use cursive::CursiveExt;
|
||||
use std::sync::mpsc;
|
||||
use std::{thread, time};
|
||||
|
||||
|
||||
+4
-3
@@ -17,7 +17,7 @@
|
||||
use built;
|
||||
|
||||
use std::env;
|
||||
use std::path::PathBuf;
|
||||
use std::path::{Path, PathBuf};
|
||||
use std::process::Command;
|
||||
|
||||
fn main() {
|
||||
@@ -42,10 +42,11 @@ fn main() {
|
||||
// build and versioning information
|
||||
let mut opts = built::Options::default();
|
||||
opts.set_dependencies(true);
|
||||
let out_dir_path = format!("{}{}", env::var("OUT_DIR").unwrap(), "/built.rs");
|
||||
// don't fail the build if something's missing, may just be cargo release
|
||||
let _ = built::write_built_file_with_opts(
|
||||
&opts,
|
||||
env!("CARGO_MANIFEST_DIR"),
|
||||
format!("{}{}", env::var("OUT_DIR").unwrap(), "/built.rs"),
|
||||
Path::new(env!("CARGO_MANIFEST_DIR")),
|
||||
Path::new(&out_dir_path),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user