feat: start cargo rust
This commit is contained in:
@@ -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"
|
||||
Reference in New Issue
Block a user