diff --git a/.travis.yml b/.travis.yml index 518c8ea..4f29d12 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,7 @@ sudo: false language: rust rust: - - nightly-2017-05-03 + - nightly-2017-06-05 - nightly matrix: allow_failures: @@ -20,9 +20,9 @@ script: - | travis-cargo build -- --all-features --all --locked && travis-cargo test -- --all-features --all && - travis-cargo --only nightly-2017-05-03 doc -- --no-deps --all-features --all + travis-cargo --only nightly-2017-06-05 doc -- --no-deps --all-features --all after_success: - - travis-cargo --only nightly-2017-05-03 doc-upload + - travis-cargo --only nightly-2017-06-05 doc-upload env: global: - TRAVIS_CARGO_NIGHTLY_FEATURE="" diff --git a/Cargo.lock b/Cargo.lock index a7998ed..bde30f1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,12 +1,12 @@ [root] name = "rowdy-cli" -version = "0.0.1" +version = "0.0.2" dependencies = [ "docopt 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", - "rocket 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)", - "rocket_codegen 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)", - "rowdy 0.0.1", + "rocket 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", + "rocket_codegen 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", + "rowdy 0.0.2", "rustc-serialize 0.3.24 (registry+https://github.com/rust-lang/crates.io-index)", "serde 1.0.8 (registry+https://github.com/rust-lang/crates.io-index)", "serde_json 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", @@ -97,12 +97,12 @@ dependencies = [ [[package]] name = "cargo_metadata" -version = "0.1.2" +version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "serde 0.9.15 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_derive 0.9.15 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_json 0.9.10 (registry+https://github.com/rust-lang/crates.io-index)", + "serde 1.0.8 (registry+https://github.com/rust-lang/crates.io-index)", + "serde_derive 1.0.8 (registry+https://github.com/rust-lang/crates.io-index)", + "serde_json 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -122,23 +122,26 @@ dependencies = [ [[package]] name = "clippy" -version = "0.0.130" +version = "0.0.137" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "cargo_metadata 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", - "clippy_lints 0.0.130 (registry+https://github.com/rust-lang/crates.io-index)", + "cargo_metadata 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", + "clippy_lints 0.0.137 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] name = "clippy_lints" -version = "0.0.130" +version = "0.0.137" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ + "lazy_static 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", "matches 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", "quine-mc_cluskey 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)", "regex-syntax 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", "semver 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)", - "toml 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", + "serde 1.0.8 (registry+https://github.com/rust-lang/crates.io-index)", + "serde_derive 1.0.8 (registry+https://github.com/rust-lang/crates.io-index)", + "toml 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", "unicode-normalization 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -625,7 +628,7 @@ dependencies = [ [[package]] name = "rocket" -version = "0.2.6" +version = "0.2.8" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "ansi_term 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -644,22 +647,22 @@ dependencies = [ [[package]] name = "rocket_codegen" -version = "0.2.6" +version = "0.2.8" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "ansi_term 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", - "rocket 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)", + "rocket 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", "version_check 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] name = "rocket_contrib" -version = "0.2.6" +version = "0.2.8" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "log 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", - "rocket 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)", + "rocket 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", "serde 0.9.15 (registry+https://github.com/rust-lang/crates.io-index)", "serde_json 0.9.10 (registry+https://github.com/rust-lang/crates.io-index)", "uuid 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -667,21 +670,21 @@ dependencies = [ [[package]] name = "rowdy" -version = "0.0.1" +version = "0.0.2" dependencies = [ "ansi_term 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", "argon2rs 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)", "biscuit 0.0.4 (registry+https://github.com/rust-lang/crates.io-index)", "chrono 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", - "clippy 0.0.130 (registry+https://github.com/rust-lang/crates.io-index)", + "clippy 0.0.137 (registry+https://github.com/rust-lang/crates.io-index)", "csv 0.15.0 (registry+https://github.com/rust-lang/crates.io-index)", "hyper 0.10.11 (registry+https://github.com/rust-lang/crates.io-index)", "ldap3 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", "ring 0.9.7 (registry+https://github.com/rust-lang/crates.io-index)", - "rocket 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)", - "rocket_codegen 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)", - "rocket_contrib 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)", + "rocket 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", + "rocket_codegen 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", + "rocket_contrib 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", "serde 1.0.8 (registry+https://github.com/rust-lang/crates.io-index)", "serde_derive 1.0.8 (registry+https://github.com/rust-lang/crates.io-index)", "serde_json 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", @@ -786,24 +789,6 @@ name = "serde" version = "1.0.8" source = "registry+https://github.com/rust-lang/crates.io-index" -[[package]] -name = "serde_codegen_internals" -version = "0.14.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "syn 0.11.11 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "serde_derive" -version = "0.9.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "quote 0.3.15 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_codegen_internals 0.14.2 (registry+https://github.com/rust-lang/crates.io-index)", - "syn 0.11.11 (registry+https://github.com/rust-lang/crates.io-index)", -] - [[package]] name = "serde_derive" version = "1.0.8" @@ -1050,8 +1035,13 @@ dependencies = [ name = "toml" version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "toml" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "rustc-serialize 0.3.24 (registry+https://github.com/rust-lang/crates.io-index)", + "serde 1.0.8 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -1174,11 +1164,11 @@ dependencies = [ "checksum blake2-rfc 0.2.17 (registry+https://github.com/rust-lang/crates.io-index)" = "0c6a476f32fef3402f1161f89d0d39822809627754a126f8441ff2a9d45e2d59" "checksum byteorder 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "c40977b0ee6b9885c9013cd41d9feffdd22deb3bb4dc3a71d901cc7a77de18c8" "checksum bytes 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)" = "8b24f16593f445422331a5eed46b72f7f171f910fead4f2ea8f17e727e9c5c14" -"checksum cargo_metadata 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "34fdab49a2904acb112c83b62f0118de3de3ce28e52a9188dec2858e43878f25" +"checksum cargo_metadata 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "5d84cb53c78e573aa126a4b9f963fdb2629f8183b26e235da08bb36dc7381162" "checksum cfg-if 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "de1e760d7b6535af4241fca8bd8adf68e2e7edacc6b29f5d399050c5e48cf88c" "checksum chrono 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "d9123be86fd2a8f627836c235ecdf331fdd067ecf7ac05aa1a68fbcf2429f056" -"checksum clippy 0.0.130 (registry+https://github.com/rust-lang/crates.io-index)" = "a55ee0eccfd801afcd8f1ebe19ae780e962923e32c3ff50763d4855f3c533ebf" -"checksum clippy_lints 0.0.130 (registry+https://github.com/rust-lang/crates.io-index)" = "9fdbc3c4eddf13df636f173f8f2bad92f6e12c0749d43d932f8efa355065f096" +"checksum clippy 0.0.137 (registry+https://github.com/rust-lang/crates.io-index)" = "31f3cc7a67292ef868d8648c2f2a0cc6870ac37bb0f7cec3e0e9f1407e925543" +"checksum clippy_lints 0.0.137 (registry+https://github.com/rust-lang/crates.io-index)" = "6ee969758373ea5b1a34ced0c71ed2e8974199405c1844e19828ef355c25dc8b" "checksum constant_time_eq 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "07dcb7959f0f6f1cf662f9a7ff389bcb919924d99ac41cf31f10d611d8721323" "checksum cookie 0.6.2 (registry+https://github.com/rust-lang/crates.io-index)" = "30b3493e12a550c2f96be785088d1da8d93189e7237c8a8d0d871bc9070334c3" "checksum core-foundation 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "25bfd746d203017f7d5cbd31ee5d8e17f94b6521c7af77ece6c9e4b2d4b16c67" @@ -1236,9 +1226,9 @@ dependencies = [ "checksum regex 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "1731164734096285ec2a5ec7fea5248ae2f5485b3feeb0115af4fda2183b2d1b" "checksum regex-syntax 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)" = "ad890a5eef7953f55427c50575c680c42841653abd2b028b68cd223d157f62db" "checksum ring 0.9.7 (registry+https://github.com/rust-lang/crates.io-index)" = "24293de46bac74c9b9c05b40ff8496bbc8b9ae242a9b89f754e1154a43bc7c4c" -"checksum rocket 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)" = "ee95097db80eac85e071dd44f5a842f8e40ef40bef83bd72d320710e3efea9a2" -"checksum rocket_codegen 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)" = "060ea4d2c0af966c73420c3a64b5b8814a16247dc7e16e815e6ff5b4dfb01ba2" -"checksum rocket_contrib 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)" = "6cf1c3677525e17abc1e7564e294dee079f2725a6e5886c807bd4e9732b4b316" +"checksum rocket 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)" = "371b8fbbe588a08fbc858553153c1a4b6c864848260b8105ae81ef93470e09ad" +"checksum rocket_codegen 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)" = "62813eaa298ffa6b2dd0de4318670985b900bec6c4dd9a249450ea5d98e67f2b" +"checksum rocket_contrib 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)" = "49173eb7adb6cd93a10ef8e904c54b3c49ec7caef0f1caf14bce6b0ae57d7686" "checksum rustc-serialize 0.3.24 (registry+https://github.com/rust-lang/crates.io-index)" = "dcf128d1287d2ea9d80910b5f1120d0b8eede3fbf1abe91c40d39ea7d51e6fda" "checksum rustc_version 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)" = "c5f5376ea5e30ce23c03eb77cbe4962b988deead10910c372b226388b594c084" "checksum schannel 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "4e45ac5e9e4698c1c138d2972bedcd90b81fe1efeba805449d2bdd54512de5f9" @@ -1252,8 +1242,6 @@ dependencies = [ "checksum semver-parser 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3" "checksum serde 0.9.15 (registry+https://github.com/rust-lang/crates.io-index)" = "34b623917345a631dc9608d5194cc206b3fe6c3554cd1c75b937e55e285254af" "checksum serde 1.0.8 (registry+https://github.com/rust-lang/crates.io-index)" = "c2f530d36fb84ec48fb7146936881f026cdbf4892028835fd9398475f82c1bb4" -"checksum serde_codegen_internals 0.14.2 (registry+https://github.com/rust-lang/crates.io-index)" = "bc888bd283bd2420b16ad0d860e35ad8acb21941180a83a189bb2046f9d00400" -"checksum serde_derive 0.9.15 (registry+https://github.com/rust-lang/crates.io-index)" = "978fd866f4d4872084a81ccc35e275158351d3b9fe620074e7d7504b816b74ba" "checksum serde_derive 1.0.8 (registry+https://github.com/rust-lang/crates.io-index)" = "10552fad5500771f3902d0c5ba187c5881942b811b7ba0d8fbbfbf84d80806d3" "checksum serde_derive_internals 0.15.1 (registry+https://github.com/rust-lang/crates.io-index)" = "37aee4e0da52d801acfbc0cc219eb1eda7142112339726e427926a6f6ee65d3a" "checksum serde_json 0.9.10 (registry+https://github.com/rust-lang/crates.io-index)" = "ad8bcf487be7d2e15d3d543f04312de991d631cfe1b43ea0ade69e6a8a5b16a1" @@ -1281,6 +1269,7 @@ dependencies = [ "checksum tokio-uds 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)" = "bd209039933255ea77c6d7a1d18abc20b997d161acb900acca6eb74cdd049f31" "checksum tokio-uds-proto 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "dca49ad7fe77611e593350d3996579dc94c115c3bd39643f0bc86239d74547b9" "checksum toml 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "736b60249cb25337bc196faa43ee12c705e426f3d55c214d73a4e7be06f92cb4" +"checksum toml 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)" = "4cc5dbfb20a481e64b99eb7ae280859ec76730c7191570ba5edaa962394edb0a" "checksum traitobject 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "efd1f82c56340fdf16f2a953d7bda4f8fdffba13d93b00844c25572110b26079" "checksum typeable 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "1410f6f91f21d1612654e7cc69193b0334f909dcf2c790c4826254fbb86f8887" "checksum unicase 1.4.2 (registry+https://github.com/rust-lang/crates.io-index)" = "7f4765f83163b74f957c797ad9253caf97f103fb064d3999aea9568d09fc8a33" diff --git a/Cargo.toml b/Cargo.toml index 085a271..12876be 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -36,8 +36,8 @@ biscuit = "0.0.4" chrono = { version = "0.3", features = ["serde"] } hyper = "0.10" log = "0.3" -rocket = "= 0.2.6" -rocket_codegen = "= 0.2.6" +rocket = "= 0.2.8" +rocket_codegen = "= 0.2.8" serde = "1.0" serde_derive = "1.0" serde_json = "1.0" @@ -46,20 +46,20 @@ uuid = { version = "0.4", features = ["use_std", "serde"] } # Optional dependencies that are activated by the various features argon2rs = { version = "0.2.5", optional = true } -clippy = { version = "=0.0.130", optional = true } +clippy = { version = "=0.0.137", optional = true } csv = { version = "0.15", optional = true } ldap3 = { version = "0.4.0", optional = true } ring = { version = "0.9", optional = true } # rust-jwt has this as its dependency strfmt = { version = "0.1.5", optional = true } [dependencies.rocket_contrib] -version = "= 0.2.6" +version = "= 0.2.8" default-features = false features = ["json", "uuid"] [dev-dependencies] serde_test = "1.0" -rocket = { version = "= 0.2.6", features = ["testing"] } +rocket = { version = "= 0.2.8", features = ["testing"] } [build-dependencies] ansi_term = "0.9" diff --git a/Dockerfile b/Dockerfile index 7558150..9bd818c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ FROM japaric/x86_64-unknown-linux-musl:v0.1.10 as builder MAINTAINER Yong Wen Chua ENV PATH "/root/.cargo/bin:${PATH}" -ARG RUST_VERSION=nightly-2017-05-03 +ARG RUST_VERSION=nightly-2017-06-05 ARG ARCHITECTURE=x86_64-unknown-linux-musl RUN set -x \ && apt-get update \ diff --git a/README.md b/README.md index 43f3104..046ac3c 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ based off Docker Registry's [authentication protocol](https://docs.docker.com/re Rocket requires nightly Rust. You should probably install Rust with [rustup](https://www.rustup.rs/), then override the code directory to use nightly instead of stable. See [installation instructions](https://rocket.rs/guide/getting-started/#installing-rust). -In particular, `rowdy` is currently targetted for `nightly-2017-05-03`. +In particular, `rowdy` is currently targetted for `nightly-2017-06-05`. ## Testing diff --git a/build.rs b/build.rs index f9749c1..811abc3 100644 --- a/build.rs +++ b/build.rs @@ -10,7 +10,7 @@ use version_check::{is_nightly, is_min_version, is_min_date}; // Specifies the minimum nightly version that is targetted // Note that sometimes the `rustc` date might be older than the nightly version, usually one day older -const MIN_DATE: &'static str = "2017-05-02"; +const MIN_DATE: &'static str = "2017-06-04"; const MIN_VERSION: &'static str = "1.19.0-nightly"; // Convenience macro for writing to stderr. diff --git a/cli/Cargo.toml b/cli/Cargo.toml index 7911534..768a295 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -12,8 +12,8 @@ doc = false [dependencies] docopt = "0.7" log = "0.3" -rocket = "= 0.2.6" -rocket_codegen = "= 0.2.6" +rocket = "= 0.2.8" +rocket_codegen = "= 0.2.8" rowdy = { path = "../", features = ["simple_authenticator", "ldap_authenticator"] } rustc-serialize = "0.3" serde = "1.0"