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