mirror of
https://gitlab.com/veilid/veilid.git
synced 2024-10-01 01:26:08 -04:00
mtime fixes
This commit is contained in:
parent
ffacbdfe25
commit
c67a427610
22
Cargo.lock
generated
22
Cargo.lock
generated
@ -1830,6 +1830,18 @@ version = "0.2.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "a481586acf778f1b1455424c343f71124b048ffa5f4fc3f8f6ae9dc432dcb3c7"
|
||||
|
||||
[[package]]
|
||||
name = "filetime"
|
||||
version = "0.2.22"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "d4029edd3e734da6fe05b6cd7bd2960760a616bd2ddd0d59a0124746d6272af0"
|
||||
dependencies = [
|
||||
"cfg-if 1.0.0",
|
||||
"libc",
|
||||
"redox_syscall 0.3.5",
|
||||
"windows-sys 0.48.0",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "flate2"
|
||||
version = "1.0.28"
|
||||
@ -3930,6 +3942,15 @@ dependencies = [
|
||||
"bitflags 1.3.2",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "redox_syscall"
|
||||
version = "0.3.5"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "567664f262709473930a4bf9e51bf2ebf3348f2e748ccc50dea20646858f8f29"
|
||||
dependencies = [
|
||||
"bitflags 1.3.2",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "redox_syscall"
|
||||
version = "0.4.1"
|
||||
@ -5521,6 +5542,7 @@ dependencies = [
|
||||
"enum-as-inner",
|
||||
"enumset",
|
||||
"eyre",
|
||||
"filetime",
|
||||
"flume",
|
||||
"futures-util",
|
||||
"getrandom",
|
||||
|
@ -274,6 +274,7 @@ wasm-logger = "0.2.0"
|
||||
[build-dependencies]
|
||||
capnpc = "0.18.0"
|
||||
glob = "0.3.1"
|
||||
filetime = "0.2.22"
|
||||
|
||||
[package.metadata.wasm-pack.profile.release]
|
||||
wasm-opt = ["-O", "--enable-mutable-globals"]
|
||||
|
@ -1,3 +1,4 @@
|
||||
use filetime::{set_file_mtime, FileTime};
|
||||
use glob::glob;
|
||||
use std::{
|
||||
env, fs, io,
|
||||
@ -84,6 +85,9 @@ fn do_capnp_build() {
|
||||
.output_path(".")
|
||||
.run()
|
||||
.expect("compiling schema");
|
||||
|
||||
// If successful, update modification time
|
||||
set_file_mtime("proto/veilid_capnp.rs", FileTime::now()).unwrap();
|
||||
}
|
||||
|
||||
// Fix for missing __extenddftf2 on Android x86_64 Emulator
|
||||
@ -113,6 +117,7 @@ fn main() {
|
||||
}
|
||||
|
||||
if is_input_file_outdated("./proto/veilid.capnp", "./proto/veilid_capnp.rs").unwrap() {
|
||||
println!("cargo:warning=rebuilding proto/veilid_capnp.rs because it is older than proto/veilid.capnp");
|
||||
do_capnp_build();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user