pipeline {
  agent {
    docker {
      image 'rust:latest'
    }
  }
  stages {
    stage('Check') {
        steps {
            sh "cargo check"
        }
    }
    stage('Test') {
        steps {
            sh "cargo test"
        }
    }
  }
}