- cargo_clippy:
- image: *muslrust_image
- environment:
- CARGO_HOME: .cargo
- commands:
- # latest rust for clippy to get extra checks
- # when adding new clippy lints, make sure to also add them in scripts/fix-clippy.sh
- - rustup component add clippy
- - cargo clippy --workspace --tests --all-targets --features console --
- -D warnings -D deprecated -D clippy::perf -D clippy::complexity
- -D clippy::style -D clippy::correctness -D clippy::suspicious
- -D clippy::dbg_macro -D clippy::inefficient_to_string
- -D clippy::items-after-statements -D clippy::implicit_clone
- -D clippy::cast_lossless -D clippy::manual_string_new
- -D clippy::redundant_closure_for_method_calls
- -D clippy::unused_self
- -A clippy::uninlined_format_args
- -D clippy::get_first
- -D clippy::explicit_into_iter_loop
- -D clippy::explicit_iter_loop
- -D clippy::needless_collect
- - cargo clippy --workspace --features console --
- -D clippy::unwrap_used
- -D clippy::indexing_slicing
- # when:
- # platform: linux/amd64
+ restore-cache:
+ image: meltwater/drone-cache:v1
+ pull: true
+ settings:
+ restore: true
+ endpoint:
+ from_secret: MINIO_ENDPOINT
+ access-key:
+ from_secret: MINIO_WRITE_USER
+ secret-key:
+ from_secret: MINIO_WRITE_PASSWORD
+ bucket:
+ from_secret: MINIO_BUCKET
+ region: us-east-1
+ cache_key: "rust-cache"
+ path-style: true
+ mount:
+ - ".cargo"
+ - "target"
+ - "api_tests/node_modules"
+ secrets:
+ [MINIO_ENDPOINT, MINIO_WRITE_USER, MINIO_WRITE_PASSWORD, MINIO_BUCKET]
+ when: *slow_check_paths