[package] name = "fedicharter" version = "0.2.0" authors = [ "alemi " ] 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"] # 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 } [features] default = ["web", "cli"] db = ["dep:tokio", "dep:sea-orm", "dep:reqwest"] cli = ["db", "dep:axum", "dep:tracing-subscriber", "dep:clap"]