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 }
|
2025-10-01 06:58:04 +02:00
|
|
|
tui = { version = "0.19.0", optional = true }
|
2025-10-01 12:28:04 +02:00
|
|
|
rsille = { version = "2.3", optional = true }
|
|
|
|
|
gptman = { version = "2.0.1", optional = true }
|
|
|
|
|
uuid = { version = "1.18.1", optional = true, features = ["v4"] }
|
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-10-01 12:28:04 +02:00
|
|
|
jsonschema = { version = "0.17.0", default-features = false, features = ["draft202012"] }
|
2025-10-01 06:58:04 +02:00
|
|
|
walkdir = "2.5.0"
|
|
|
|
|
chrono = { version = "0.4.38", default-features = false, features = ["clock"] }
|
|
|
|
|
sha2 = "0.10.8"
|
2025-09-30 20:44:34 +02:00
|
|
|
|
|
|
|
|
# Utilities
|
|
|
|
|
num_cpus = "1.17.0"
|
2025-10-01 12:28:04 +02:00
|
|
|
rand = { version = "0.9.2", optional = true }
|
2025-09-30 20:44:34 +02:00
|
|
|
md5 = "0.8.0"
|
|
|
|
|
|
|
|
|
|
# HTTP
|
2025-09-30 20:54:25 +02:00
|
|
|
semver = "1.0.27"
|
2025-09-30 21:38:22 +02:00
|
|
|
inquire = "0.9.1"
|
2025-10-01 12:28:04 +02:00
|
|
|
juniper = { version = "0.17", optional = true }
|
|
|
|
|
actix-web = { version = "4.9", optional = true }
|
|
|
|
|
juniper_actix = { version = "0.7", optional = true }
|
2025-09-30 23:56:51 +02:00
|
|
|
shell-words = "1.1.0"
|
|
|
|
|
url = "2.5.7"
|
|
|
|
|
hex = "0.4.3"
|
2025-10-01 06:58:04 +02:00
|
|
|
diesel = { version = "2.1.6", features = ["sqlite", "r2d2", "returning_clauses_for_sqlite_3_35"] }
|
|
|
|
|
|
2025-10-01 12:28:04 +02:00
|
|
|
# Networking
|
|
|
|
|
ureq = { version = "2.9.7", features = ["tls", "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-10-01 12:28:04 +02:00
|
|
|
tui = ["dep:tui", "dep:crossterm", "dep:rsille", "dep:gptman", "dep:uuid"]
|
|
|
|
|
|
|
|
|
|
# GraphQL/HTTP server feature flag
|
|
|
|
|
graphql = ["dep:juniper", "dep:actix-web", "dep:juniper_actix", "dep:rand"]
|
2025-09-30 20:44:34 +02:00
|
|
|
|
|
|
|
|
# Optional default features
|
|
|
|
|
default = []
|
|
|
|
|
|
2025-10-01 12:28:04 +02:00
|
|
|
[[bin]]
|
|
|
|
|
name = "graphql_server"
|
|
|
|
|
path = "src/bin/graphql_server.rs"
|
|
|
|
|
required-features = ["graphql"]
|