From 541114e2b4bd0335791bb6c5d945162f1884813e Mon Sep 17 00:00:00 2001 From: Paul Lietar Date: Wed, 22 Feb 2017 14:27:54 +0000 Subject: [PATCH] build: only rerun syntex when relevant files have changed --- Cargo.lock | 11 +---------- Cargo.toml | 2 +- build.rs | 6 +++++- 3 files changed, 7 insertions(+), 12 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b000df36..6648ddb4 100644 --- a/Cargo.lock +++ b/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)" = "" "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" diff --git a/Cargo.toml b/Cargo.toml index 775afafd..e8f40ccd 100644 --- a/Cargo.toml +++ b/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" diff --git a/build.rs b/build.rs index 77699884..131b5ef0 100644 --- a/build.rs +++ b/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"); + +}