lpkg/Cargo.toml

82 lines
1.8 KiB
TOML
Raw Normal View History

2025-09-30 16:51:03 +02:00
[package]
name = "package_management"
version = "0.1.0"
edition = "2024"
2025-09-30 20:44:34 +02:00
authors = ["Lucy <lucy@c-base.org>"]
description = "A Rust project for package management with CLI and optional TUI support."
license = "MIT"
2025-09-30 16:51:03 +02:00
[dependencies]
2025-09-30 20:44:34 +02:00
# CLI utilities
2025-09-30 18:49:50 +02:00
anyhow = "1.0.100"
2025-09-30 20:44:34 +02:00
clap = { version = "4.5.48", features = ["derive"] }
2025-09-30 16:51:03 +02:00
console = "0.16.1"
2025-09-30 20:44:34 +02:00
# Optional Terminal UI
2025-09-30 18:49:50 +02:00
crossterm = { version = "0.29.0", optional = true }
ratatui = { version = "0.29.0", optional = true }
2025-09-30 17:08:26 +02:00
2025-09-30 20:44:34 +02:00
# Parsing & scraping
html_parser = "0.7.0"
scraper = "0.19.0"
regex = "1.11.3"
2025-09-30 16:51:03 +02:00
serde = { version = "1.0.228", features = ["derive"] }
2025-09-30 20:38:13 +02:00
serde_json = "1.0.145"
2025-09-30 20:44:34 +02:00
# Utilities
indicatif = "0.18.0"
2025-09-30 18:49:50 +02:00
spinners = "4.1.1"
2025-09-30 20:44:34 +02:00
num_cpus = "1.17.0"
rand = "0.9.2"
md5 = "0.8.0"
# HTTP
reqwest = { version = "0.12.23", features = ["blocking", "json"] }
2025-09-30 16:51:03 +02:00
2025-09-30 18:49:50 +02:00
[features]
2025-09-30 20:44:34 +02:00
# TUI feature flag
2025-09-30 18:49:50 +02:00
tui = ["ratatui", "crossterm"]
2025-09-30 20:44:34 +02:00
# Optional default features
default = []
# -----------------------
# Cargo-make tasks
# -----------------------
[tasks.format]
description = "Format Rust code using rustfmt"
install_crate = "rustfmt"
command = "cargo"
args = ["fmt", "--", "--emit=files"]
[tasks.clean]
description = "Clean build artifacts"
command = "cargo"
args = ["clean"]
[tasks.build]
description = "Build the project"
command = "cargo"
args = ["build"]
dependencies = ["clean"]
[tasks.test]
description = "Run tests"
command = "cargo"
args = ["test"]
dependencies = ["clean"]
[tasks.my-flow]
description = "Run full workflow: format, build, test"
dependencies = ["format", "build", "test"]
[tasks.dev-flow]
description = "Full developer workflow: format, lint, build, test"
dependencies = ["format", "clippy", "build", "test"]
[tasks.release-build]
description = "Build the project in release mode"
command = "cargo"
args = ["build", "--release", "--all-features"]
dependencies = ["clean"]