2023-10-02 07:23:44 +02:00
|
|
|
[package]
|
2023-10-02 07:26:05 +02:00
|
|
|
name = "fedicharter"
|
2023-10-19 05:47:56 +02:00
|
|
|
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"
|
2023-10-02 07:23:44 +02:00
|
|
|
edition = "2021"
|
|
|
|
|
2023-10-20 04:20:53 +02:00
|
|
|
[lib]
|
|
|
|
name = "fedicharter"
|
|
|
|
path = "src/lib.rs"
|
|
|
|
|
|
|
|
[[bin]]
|
|
|
|
name = "fedicharter-cli"
|
|
|
|
path = "src/cli/main.rs"
|
|
|
|
required-features = ["cli"]
|
|
|
|
|
2023-10-02 07:23:44 +02:00
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
|
|
|
|
[dependencies]
|
|
|
|
async-recursion = "1.0.5"
|
2023-10-02 14:14:16 +02:00
|
|
|
chrono = "0.4.31"
|
2023-10-20 04:20:53 +02:00
|
|
|
thiserror = "1.0.49"
|
2023-10-18 00:37:08 +02:00
|
|
|
derive_more = "0.99.17"
|
2023-10-02 07:23:44 +02:00
|
|
|
serde = { version = "1.0.188", features = ["derive"] }
|
|
|
|
serde_json = "1.0.107"
|
2023-10-20 04:20:53 +02:00
|
|
|
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 }
|
|
|
|
|
2023-10-02 07:23:44 +02:00
|
|
|
|
2023-10-20 04:20:53 +02:00
|
|
|
[features]
|
|
|
|
default = ["web", "cli"]
|
|
|
|
db = ["dep:tokio", "dep:sea-orm", "dep:reqwest"]
|
|
|
|
cli = ["db", "dep:axum", "dep:tracing-subscriber", "dep:clap"]
|