Skip to content
This repository was archived by the owner on Jun 5, 2020. It is now read-only.

Commit 9dc0346

Browse files
committed
Switch to using cargo-metadata
This both makes the crate compile way faster and avoids having to touch tons of unstable, undocumented cargo internals. This requires Rust 1.41 (the current beta) for some cargo-metadata features. There are some subtle differences in the new output (particularly in handling dependencies between crates in workspaces), but they're pretty minor. Closes #73 Closes #69 Closes #66 Closes #65 Closes #63 Closes #61 Closes #57 Closes #20
1 parent de50a9d commit 9dc0346

File tree

9 files changed

+717
-1704
lines changed

9 files changed

+717
-1704
lines changed

.circleci/config.yml

Lines changed: 15 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,23 @@
1-
deps_key: &DEPS_KEY
2-
key: dependencies-1.40-{{ checksum "Cargo.lock" }}
3-
4-
restore_registry: &RESTORE_REGISTRY
5-
restore_cache:
6-
key: registry
7-
8-
save_registry: &SAVE_REGISTRY
9-
save_cache:
10-
key: registry-{{ .BuildNum }}
11-
paths:
12-
- ~/.cargo/registry/index
13-
14-
restore_deps: &RESTORE_DEPS
15-
restore_cache:
16-
<<: *DEPS_KEY
17-
18-
save_deps: &SAVE_DEPS
19-
save_cache:
20-
<<: *DEPS_KEY
21-
paths:
22-
- target
23-
- ~/.cargo/registry/cache
24-
251
version: 2
262
jobs:
273
build:
284
docker:
29-
- image: rust:1.40.0
5+
- image: rustlang/rust:nightly
306
steps:
317
- checkout
32-
- run: apt-get update
33-
- run: apt-get install -y --no-install-recommends cmake zlib1g-dev
34-
- <<: *RESTORE_REGISTRY
35-
- <<: *RESTORE_DEPS
8+
- run: rustc --version > ~/rust-version
9+
- restore_cache:
10+
key: registry
11+
- restore_cache:
12+
key: dependencies-{{ checksum "~/rust-version" }}-{{ checksum "Cargo.lock" }}
3613
- run: cargo build --locked
3714
- run: cargo run --locked -- tree
38-
- <<: *SAVE_REGISTRY
39-
- <<: *SAVE_DEPS
15+
- save_cache:
16+
key: registry-{{ .BuildNum }}
17+
paths:
18+
- /usr/local/cargo/registry/index
19+
- save_cache:
20+
key: dependencies-{{ checksum "~/rust-version" }}-{{ checksum "Cargo.lock" }}
21+
paths:
22+
- target
23+
- /usr/local/cargo/registry/cache

0 commit comments

Comments
 (0)