|
|
|
@ -16,23 +16,24 @@ doctest = false
|
|
|
|
|
[[bin]]
|
|
|
|
|
name = "lemmy_util_bin"
|
|
|
|
|
path = "src/main.rs"
|
|
|
|
|
required-features = ["default"]
|
|
|
|
|
required-features = ["full"]
|
|
|
|
|
|
|
|
|
|
[lints]
|
|
|
|
|
workspace = true
|
|
|
|
|
|
|
|
|
|
[features]
|
|
|
|
|
default = [
|
|
|
|
|
"error-type",
|
|
|
|
|
"dep:serde_json",
|
|
|
|
|
"dep:anyhow",
|
|
|
|
|
"dep:tracing-error",
|
|
|
|
|
full = [
|
|
|
|
|
"dep:ts-rs",
|
|
|
|
|
"dep:diesel",
|
|
|
|
|
"dep:http",
|
|
|
|
|
"dep:rosetta-i18n",
|
|
|
|
|
"dep:actix-web",
|
|
|
|
|
"dep:reqwest-middleware",
|
|
|
|
|
"dep:tracing",
|
|
|
|
|
"dep:actix-web",
|
|
|
|
|
"dep:serde_json",
|
|
|
|
|
"dep:anyhow",
|
|
|
|
|
"dep:tracing-error",
|
|
|
|
|
"dep:http",
|
|
|
|
|
"dep:deser-hjson",
|
|
|
|
|
"dep:regex",
|
|
|
|
|
"dep:urlencoding",
|
|
|
|
@ -47,27 +48,23 @@ default = [
|
|
|
|
|
"dep:html2text",
|
|
|
|
|
"dep:lettre",
|
|
|
|
|
"dep:uuid",
|
|
|
|
|
"dep:rosetta-i18n",
|
|
|
|
|
"dep:itertools",
|
|
|
|
|
"dep:markdown-it",
|
|
|
|
|
|
|
|
|
|
]
|
|
|
|
|
full = ["default", "dep:ts-rs"]
|
|
|
|
|
error-type = ["dep:serde", "dep:strum"]
|
|
|
|
|
|
|
|
|
|
[dependencies]
|
|
|
|
|
regex = { workspace = true, optional = true }
|
|
|
|
|
tracing = { workspace = true, optional = true }
|
|
|
|
|
tracing-error = { workspace = true, optional = true }
|
|
|
|
|
itertools = { workspace = true, optional = true }
|
|
|
|
|
serde = { workspace = true, optional = true }
|
|
|
|
|
serde = { workspace = true }
|
|
|
|
|
serde_json = { workspace = true, optional = true }
|
|
|
|
|
once_cell = { workspace = true, optional = true }
|
|
|
|
|
url = { workspace = true, optional = true }
|
|
|
|
|
actix-web = { workspace = true, optional = true }
|
|
|
|
|
anyhow = { workspace = true, optional = true }
|
|
|
|
|
reqwest-middleware = { workspace = true, optional = true }
|
|
|
|
|
strum = { workspace = true, optional = true }
|
|
|
|
|
strum = { workspace = true }
|
|
|
|
|
strum_macros = { workspace = true }
|
|
|
|
|
futures = { workspace = true, optional = true }
|
|
|
|
|
diesel = { workspace = true, features = ["chrono"], optional = true }
|
|
|
|
|