build: update dependencies

This commit is contained in:
ardocrat
2023-11-08 22:30:02 +03:00
parent ced144476b
commit 8af7ed95d3
3 changed files with 38 additions and 47 deletions
+1 -13
View File
@@ -12,18 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.
use std::env;
use std::path::Path;
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,
Path::new(env!("CARGO_MANIFEST_DIR")),
Path::new(&out_dir_path),
);
built::write_built_file().expect("Failed to acquire build-time information");;
}