alemi
1ce89aa6f9
basically nothing wants a transaction anymore, so that quick stuff can pass a DatabaseConnection and be done, while longer stuff can start a transaction and provide that. i think this will solve deadlocks with transactions in sqlite?
38 lines
1.4 KiB
TOML
38 lines
1.4 KiB
TOML
[package]
|
|
name = "upub"
|
|
version = "0.2.0"
|
|
edition = "2021"
|
|
authors = [ "alemi <me@alemi.dev>" ]
|
|
description = "core inner workings of upub"
|
|
license = "AGPL-3.0"
|
|
repository = "https://git.alemi.dev/upub.git"
|
|
readme = "README.md"
|
|
|
|
[lib]
|
|
|
|
[dependencies]
|
|
thiserror = "1"
|
|
async-recursion = "1.1"
|
|
async-trait = "0.1"
|
|
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"] }
|
|
regex = "1.10"
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
serde_default = "0.1"
|
|
serde-inline-default = "0.2"
|
|
toml = "0.8"
|
|
mdhtml = { path = "../../utils/mdhtml", features = ["markdown"] }
|
|
uriproxy = { path = "../../utils/uriproxy" }
|
|
httpsign = { path = "../../utils/httpsign/" }
|
|
jrd = "0.1"
|
|
tracing = "0.1"
|
|
tokio = { version = "1.35", features = ["full"] } # TODO slim this down
|
|
sea-orm = { version = "0.12", features = ["macros", "sqlx-sqlite", "sqlx-postgres", "runtime-tokio-rustls"] }
|
|
reqwest = { version = "0.12", features = ["json"] }
|
|
apb = { path = "../../apb", features = ["unstructured", "orm", "activitypub-fe", "activitypub-counters", "litepub", "ostatus", "toot"] }
|
|
# 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" }
|