forked from alemi/upub
42 lines
1.4 KiB
TOML
42 lines
1.4 KiB
TOML
[workspace]
|
|
members = ["apb"]
|
|
|
|
[package]
|
|
name = "upub"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[dependencies]
|
|
thiserror = "1"
|
|
rand = "0.8"
|
|
sha256 = "1.5"
|
|
openssl = "0.10" # TODO handle pubkeys with a smaller crate
|
|
base64 = "0.22"
|
|
chrono = { version = "0.4", features = ["serde"] }
|
|
uuid = { version = "1.8", features = ["v4"] }
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
jrd = "0.1"
|
|
tracing = "0.1"
|
|
tracing-subscriber = "0.3"
|
|
clap = { version = "4.5", features = ["derive"] }
|
|
tokio = { version = "1.35", features = ["full"] } # TODO slim this down
|
|
sea-orm = { version = "0.12", features = ["macros", "sqlx-sqlite", "runtime-tokio-rustls"] }
|
|
reqwest = { version = "0.12", features = ["json"] }
|
|
axum = "0.7"
|
|
apb = { path = "apb", features = ["unstructured", "fetch", "orm"] }
|
|
# nodeinfo = "0.0.2" # the version on crates.io doesn't re-export necessary types to build the struct!!!
|
|
nodeinfo = { git = "https://codeberg.org/thefederationinfo/nodeinfo-rs", rev = "e865094804" }
|
|
http-signature-normalization = "0.7.0"
|
|
# migrations
|
|
sea-orm-migration = { version = "0.12", optional = true }
|
|
# mastodon
|
|
mastodon-async-entities = { version = "1.1.0", optional = true }
|
|
|
|
[features]
|
|
default = ["faker", "migrations"]
|
|
faker = []
|
|
migrations = ["dep:sea-orm-migration"]
|
|
mastodon = ["dep:mastodon-async-entities"]
|