mirror of
https://git.alemi.dev/fedicharter.git
synced 2024-11-09 18:59:18 +01:00
56 lines
1.9 KiB
TOML
56 lines
1.9 KiB
TOML
[package]
|
|
name = "fedicharter"
|
|
version = "0.2.0"
|
|
authors = [ "alemi <me@alemi.dev>" ]
|
|
keywords = ["fediverse", "mastodon", "axum", "cli", "visualization", "graph", "api", "database"]
|
|
repository = "https://github.com/alemidev/fedicharter"
|
|
readme = "README.md"
|
|
edition = "2021"
|
|
|
|
[lib]
|
|
name = "fedicharter"
|
|
path = "src/lib.rs"
|
|
|
|
[[bin]]
|
|
name = "fedicharter-cli"
|
|
path = "src/cli/main.rs"
|
|
required-features = ["cli"]
|
|
|
|
[[bin]]
|
|
name = "fedicharter-web"
|
|
path = "src/web/main.rs"
|
|
required-features = ["web"]
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[dependencies]
|
|
async-recursion = "1.0.5"
|
|
chrono = "0.4.31"
|
|
thiserror = "1.0.49"
|
|
derive_more = "0.99.17"
|
|
serde = { version = "1.0.188", features = ["derive"] }
|
|
serde_json = "1.0.107"
|
|
tracing = "0.1.37" # TODO either this or log
|
|
log = "0.4.20" # TODO either this or tracing
|
|
#nodeinfo = { git = "https://codeberg.org/thefederationinfo/nodeinfo-rs.git" }
|
|
|
|
# async runtime and cli stuff
|
|
tokio = { version = "1.32.0", features = ["full"], optional = true }
|
|
tracing-subscriber = { version = "0.3.17", optional = true }
|
|
axum = { version = "0.6.20", optional = true }
|
|
reqwest = { version = "0.11.20", features = ["json"], optional = true }
|
|
sea-orm = { version = "0.12.3", features = ["runtime-tokio-native-tls", "sqlx-sqlite", "sqlx-postgres"], optional = true }
|
|
clap = { version = "4.4.6", features = ["derive"], optional = true }
|
|
|
|
# wasm and web stuff
|
|
console_error_panic_hook = { version = "0.1.7", optional = true }
|
|
console_log = { version = "1.0.0", optional = true }
|
|
leptos = { version = "0.5.1", features = ["csr"], optional = true }
|
|
reqwasm = { version = "0.5.0", optional = true }
|
|
|
|
|
|
[features]
|
|
default = ["web", "cli"]
|
|
db = ["dep:tokio", "dep:sea-orm", "dep:reqwest"]
|
|
web = ["dep:console_error_panic_hook", "dep:console_log", "dep:leptos", "dep:reqwasm"]
|
|
cli = ["db", "dep:axum", "dep:tracing-subscriber", "dep:clap"]
|