Ver código fonte

build: only rerun syntex when relevant files have changed

Paul Lietar 7 anos atrás
pai
commit
541114e2b4
3 arquivos alterados com 7 adições e 12 exclusões
  1. 1 10
      Cargo.lock
  2. 1 1
      Cargo.toml
  3. 5 1
      build.rs

+ 1 - 10
Cargo.lock

@@ -3,7 +3,7 @@ name = "librespot"
 version = "0.1.0"
 dependencies = [
  "alsa 0.0.1 (git+https://github.com/plietar/rust-alsa)",
- "base64 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
+ "base64 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
  "bit-set 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
  "byteorder 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
  "env_logger 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -64,14 +64,6 @@ dependencies = [
  "syntex_syntax 0.58.1 (registry+https://github.com/rust-lang/crates.io-index)",
 ]
 
-[[package]]
-name = "base64"
-version = "0.3.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-dependencies = [
- "byteorder 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
-]
-
 [[package]]
 name = "base64"
 version = "0.4.0"
@@ -953,7 +945,6 @@ dependencies = [
 "checksum aho-corasick 0.6.2 (registry+https://github.com/rust-lang/crates.io-index)" = "0638fd549427caa90c499814196d1b9e3725eb4d15d7339d6de073a680ed0ca2"
 "checksum alsa 0.0.1 (git+https://github.com/plietar/rust-alsa)" = "<none>"
 "checksum aster 0.41.0 (registry+https://github.com/rust-lang/crates.io-index)" = "4ccfdf7355d9db158df68f976ed030ab0f6578af811f5a7bb6dcf221ec24e0e0"
-"checksum base64 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "1d156a04ec694d726e92ea3c13e4a62949b4f0488a9344f04341d679ec6b127b"
 "checksum base64 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "065a0ce220ab84d0b6d5ae3e7bb77232209519c366f51f946fe28c19e84989d0"
 "checksum bit-set 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "d9bf6104718e80d7b26a68fdbacff3481cfc05df670821affc7e9cbc1884400c"
 "checksum bit-vec 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)" = "5b97c2c8e8bbb4251754f559df8af22fb264853c7d009084a576cdf12565089d"

+ 1 - 1
Cargo.toml

@@ -22,7 +22,7 @@ doc = false
 path = "protocol"
 
 [dependencies]
-base64          = "0.3.0"
+base64          = "0.4.0"
 bit-set         = "0.4.0"
 byteorder       = "1.0"
 env_logger      = "0.4.0"

+ 5 - 1
build.rs

@@ -9,5 +9,9 @@ fn main() {
 
     let out = PathBuf::from(env::var("OUT_DIR").unwrap());
     protobuf_macros::expand("src/lib.in.rs", &out.join("lib.rs")).unwrap();
-}
 
+    println!("cargo:rerun-if-changed=src/lib.in.rs");
+    println!("cargo:rerun-if-changed=src/spirc.rs");
+    println!("cargo:rerun-if-changed=src/connection");
+
+}