feat: start cargo rust

This commit is contained in:
2026-08-05 21:22:29 -04:00
parent 228a0da47f
commit 66291ba545
9 changed files with 3215 additions and 0 deletions
+48
View File
@@ -0,0 +1,48 @@
[workspace]
authors = ["Alex Maldonado <alexm@scient.ing>"]
channels = ["conda-forge"]
name = "coursebank"
platforms = ["linux-64", "osx-arm64", "osx-64"]
version = "0.1.0"
[environments]
dev = ["dev"]
docs = ["docs"]
[dependencies]
rust = ">=1.96.0,<1.97"
c-compiler = "*"
pkg-config = "*"
[tasks]
build = "cargo build --release"
debug = "cargo build"
tests = "cargo test"
fmt = "cargo fmt"
lint = { cmd = "cargo clippy --all-targets -- -D warnings", depends-on = [
"fmt",
] }
doc = "cargo doc --no-deps --open"
clean = "cargo clean"
install = "cargo install --path . --locked"
check = { depends-on = ["fmt", "lint", "tests"] }
build-lean = "cargo build --release --no-default-features"
[tasks.cb]
cmd = "cargo run --release --quiet --"
description = "Run the CLI, e.g. `pixi run cb validate --course examples/course`"
[feature.dev.dependencies]
rust-analyzer = "*"
lldb = "*"
cargo-nextest = "*"
[feature.dev.tasks]
watch = "cargo watch -x check -x test"
nextest = "cargo nextest run"
[feature.docs.dependencies]
typst = "*"
[feature.docs.tasks]
typeset = "typst compile"