Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
59 lines (54 loc) · 2.72 KB
/
Copy pathCargo.toml
File metadata and controls
59 lines (54 loc) · 2.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
[package]
name = "nebula"
version = "3.1.1"
rust-version = "1.94.0"
edition = "2024"
description = "A starter kit for Suprnova"
authors = ["eas4ai <shawn@eas4ai.com>"]
# Two binaries are declared below, so `cargo run` has to be told which
# one it means. Without `default-run` it refuses outright - it does NOT
# fall back to the binary sharing the package name - and every wrapper
# (`suprnova migrate`, `schedule:work`, `web:run`) fails before doing
# any work.
default-run = "nebula"
[[bin]]
name = "nebula"
path = "cmd/main.rs"
# Per-project console binary - runtime command dispatch (db:seed,
# user-defined `#[command]` async fns, etc.). Same crate, different
# `fn main` because console commands exit when their handler returns
# whereas the server binary loops forever.
[[bin]]
name = "console"
path = "src/bin/console.rs"
[dependencies]
# Production build shape: default features off, the retained features
# listed explicitly, plus agents for the kit tools, so the binaries never carry a test
# seam. See the Suprnova manual, "Production build shape" (deployment.md).
suprnova = { git = "https://github.com/eas4ai/suprnova.git", tag = "v4.6.2", default-features = false, features = ["filesystem", "database-sqlite", "database-postgres", "database-mysql", "vector-mariadb", "web-push", "localization", "magnetar-oauth", "media", "queue-sqs", "reporting-sentry", "agents"] }
tokio = { version = "1", features = ["full"] }
sea-orm-migration = { version = "2.0", features = ["sqlx-sqlite", "sqlx-postgres", "runtime-tokio-native-tls"] }
sea-orm = { version = "2.0", features = ["sqlx-sqlite", "sqlx-postgres", "runtime-tokio-native-tls", "macros", "postgres-use-serial-pk"] }
serde = { version = "1.0", features = ["derive"] }
async-trait = "0.1"
clap = { version = "4", features = ["derive"] }
chrono = { version = "0.4", features = ["serde"] }
validator = { version = "0.20", features = ["derive"] }
tracing = "0.1"
# Parses APP_URL for the production boot check (src/controllers/mod.rs).
# Suprnova already builds it.
url = "2"
# Markdown twins of public pages for crawlers that do not run JavaScript
# (src/markdown.rs). It names the framework with the same tag, so both
# resolve to one `suprnova`.
suprnova-markdown = { git = "https://github.com/eas4ai/suprnova-markdown.git", tag = "v0.5.6" }
[dev-dependencies]
# Turns `testing` back on for `cargo test` and every `--tests` build
# only; it never reaches the binaries above. The suites use its
# `*_for_test` helpers.
suprnova = { git = "https://github.com/eas4ai/suprnova.git", tag = "v4.6.2", default-features = false, features = ["testing"] }
bytes = "1.11.1"
http-body-util = "0.1.3"
hyper = { version = "1.10.1", features = ["full"] }
hyper-util = { version = "0.1.20", features = ["full"] }
serde_json = "1.0.150"