sudo: false
dist: trusty
language: rust
rust:
  - nightly
  - stable
matrix:
  allow_failures:
    - rust: stable


addons:
  apt:
    packages:
      - openssl
      - libcurl4-openssl-dev

cache: cargo

before_script:
# Rust
  # Install tools if not already installed
  - cargo install --list | grep clippy || cargo install clippy
  - cargo install --list | grep rustfmt || cargo install rustfmt
  # Update all tools
  - cargo install --list | grep cargo-update || cargo install cargo-update || true # sometimes nightly breaks stuff, that's okay
  - cargo install-update -a
  
  # Lint
  - cd core
  - cargo fmt -- --write-mode=diff
  - cargo clippy -- -Z no-trans -D clippy 

sudo: false
dist: trusty
language: rust
rust:
  - nightly
  - stable
matrix:
  allow_failures:
    - rust: stable


cache: cargo

before_script:
# Rust
  # Install tools if not already installed
  - cargo install --list | grep clippy || cargo install clippy
  - cargo install --list | grep rustfmt || cargo install rustfmt
  # Update all tools
  - cargo install --list | grep cargo-update || cargo install cargo-update || true # sometimes nightly breaks stuff, that's okay
  - cargo install-update -a
  
  # Lint
  - cd core
  - cargo fmt -- --write-mode=diff
  - cargo clippy -- -Z no-trans -D clippy 

Test if we really need those packages for CI
Repo: Test if we really need those packages for CI
