Cargo Update (#3338)

This commit is contained in:
Quentin Le Sceller
2020-06-08 17:15:32 -04:00
committed by GitHub
parent e28e02ecd4
commit 093c500fed
15 changed files with 831 additions and 928 deletions
+1
View File
@@ -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
View File
@@ -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),
);
}