Commit e6ead31d authored by Ben Boeckel's avatar Ben Boeckel Committed by Kitware Robot
Browse files

Merge topic 'dep-sorting'

41e9f4de gitlab-ci: generate the lockfile with the minimum Rust version
2a1769f8 gitlab-ci: use a generic build dir
a002a9d4 gitlab-ci: use sccache settings from the runner
95954fd0 derive_builder: sort the dependency and import
29536d3e gitlab-ci: use a stable build directory
40b94890

 gitlab-ci: always force the old lock format
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Merge-request: !193
parents 4032ccdc 41e9f4de
......@@ -13,6 +13,11 @@ before_script:
- tags@utils/rust-gitlab
.cargo_update: &cargo_update
# XXX(minver<1.41.0): No backwards compatibility is provided. Instead, it
# uses the format of the existing `Cargo.lock` file to determine the format
# of the to-be-written file. See
# https://github.com/rust-lang/cargo/pull/7579#pullrequestreview-323640264
- touch Cargo.lock
- cargo generate-lockfile $GENERATE_LOCKFILE_ARGS
- cargo fetch --locked
- mkdir .cargo
......@@ -54,14 +59,14 @@ before_script:
variables:
CARGO_UPDATE_POLICY: newest
SCCACHE_REDIS: redis://minmus:6379
GIT_CLONE_PATH: $CI_BUILDS_DIR/rust
.rust_stable: &rust_stable
image: "rust:latest"
variables:
CARGO_UPDATE_POLICY: newest
SCCACHE_REDIS: redis://minmus:6379
GIT_CLONE_PATH: $CI_BUILDS_DIR/rust
.rust_nightly: &rust_nightly
extends: .rust_stable
......@@ -168,7 +173,7 @@ stages:
prepare:cargo-cache-newest:
<<:
- *cargo_fetch_job
- *rust_stable
- *rust_minimum
# prepare:cargo-cache-mindeps:
# <<:
......
......@@ -13,13 +13,13 @@ keywords = ["gitlab", "api"]
categories = ["web-programming", "api-bindings"]
[dependencies]
derive_builder = "~0.9"
itertools = "~0.8"
log = "~0.4"
percent-encoding = "^2.0"
reqwest = "~0.9"
rustversion = "^1.0"
thiserror = "^1.0.2"
derive_builder = "~0.9"
chrono = { version = "~0.4", features = ["serde"] }
serde = { version = "~1.0", features = ["derive"] }
......
......@@ -9,11 +9,12 @@
//! A library for communicating with Gitlab instances.
#[macro_use]
extern crate log;
#[macro_use]
extern crate derive_builder;
#[macro_use]
extern crate log;
mod crates {
// public
pub extern crate chrono;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment