2020-07-10 18:15:41 +00:00
|
|
|
[package]
|
|
|
|
name = "lemmy_utils"
|
2022-11-17 15:23:01 +00:00
|
|
|
version.workspace = true
|
|
|
|
edition.workspace = true
|
|
|
|
description.workspace = true
|
|
|
|
license.workspace = true
|
|
|
|
homepage.workspace = true
|
|
|
|
documentation.workspace = true
|
2022-11-24 16:38:00 +00:00
|
|
|
repository.workspace = true
|
2020-07-10 18:15:41 +00:00
|
|
|
|
2020-09-02 15:42:48 +00:00
|
|
|
[lib]
|
|
|
|
name = "lemmy_utils"
|
|
|
|
path = "src/lib.rs"
|
2021-02-25 19:43:39 +00:00
|
|
|
doctest = false
|
2020-09-02 15:42:48 +00:00
|
|
|
|
2024-02-25 00:54:27 +00:00
|
|
|
[[bin]]
|
|
|
|
name = "lemmy_util_bin"
|
|
|
|
path = "src/main.rs"
|
2024-02-27 16:13:52 +00:00
|
|
|
required-features = ["full"]
|
2024-02-25 00:54:27 +00:00
|
|
|
|
2023-11-21 13:51:22 +00:00
|
|
|
[lints]
|
|
|
|
workspace = true
|
|
|
|
|
2023-07-10 14:50:07 +00:00
|
|
|
[features]
|
2024-02-27 16:13:52 +00:00
|
|
|
full = [
|
|
|
|
"dep:ts-rs",
|
2024-02-25 00:54:27 +00:00
|
|
|
"dep:diesel",
|
2024-02-27 16:13:52 +00:00
|
|
|
"dep:rosetta-i18n",
|
2024-02-25 00:54:27 +00:00
|
|
|
"dep:actix-web",
|
|
|
|
"dep:reqwest-middleware",
|
|
|
|
"dep:tracing",
|
|
|
|
"dep:actix-web",
|
2024-02-27 16:13:52 +00:00
|
|
|
"dep:serde_json",
|
|
|
|
"dep:anyhow",
|
|
|
|
"dep:tracing-error",
|
|
|
|
"dep:http",
|
2024-02-25 00:54:27 +00:00
|
|
|
"dep:deser-hjson",
|
|
|
|
"dep:regex",
|
|
|
|
"dep:urlencoding",
|
|
|
|
"dep:doku",
|
|
|
|
"dep:url",
|
|
|
|
"dep:once_cell",
|
|
|
|
"dep:smart-default",
|
|
|
|
"dep:enum-map",
|
|
|
|
"dep:futures",
|
|
|
|
"dep:tokio",
|
|
|
|
"dep:openssl",
|
|
|
|
"dep:html2text",
|
|
|
|
"dep:lettre",
|
|
|
|
"dep:uuid",
|
|
|
|
"dep:itertools",
|
|
|
|
"dep:markdown-it",
|
|
|
|
]
|
2023-07-10 14:50:07 +00:00
|
|
|
|
2020-07-10 18:15:41 +00:00
|
|
|
[dependencies]
|
2024-02-25 00:54:27 +00:00
|
|
|
regex = { workspace = true, optional = true }
|
|
|
|
tracing = { workspace = true, optional = true }
|
|
|
|
tracing-error = { workspace = true, optional = true }
|
|
|
|
itertools = { workspace = true, optional = true }
|
2024-02-27 16:13:52 +00:00
|
|
|
serde = { workspace = true }
|
2024-02-25 00:54:27 +00:00
|
|
|
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 }
|
2024-02-27 16:13:52 +00:00
|
|
|
strum = { workspace = true }
|
2022-11-17 15:23:01 +00:00
|
|
|
strum_macros = { workspace = true }
|
2024-02-25 00:54:27 +00:00
|
|
|
futures = { workspace = true, optional = true }
|
|
|
|
diesel = { workspace = true, features = ["chrono"], optional = true }
|
|
|
|
http = { workspace = true, optional = true }
|
|
|
|
doku = { workspace = true, features = ["url-2"], optional = true }
|
|
|
|
uuid = { workspace = true, features = ["serde", "v4"], optional = true }
|
|
|
|
rosetta-i18n = { workspace = true, optional = true }
|
|
|
|
tokio = { workspace = true, optional = true }
|
|
|
|
urlencoding = { workspace = true, optional = true }
|
2024-03-18 09:36:49 +00:00
|
|
|
openssl = { version = "0.10.64", optional = true }
|
2024-02-25 00:54:27 +00:00
|
|
|
html2text = { version = "0.6.0", optional = true }
|
|
|
|
deser-hjson = { version = "2.2.4", optional = true }
|
|
|
|
smart-default = { version = "0.7.1", optional = true }
|
2024-05-01 02:54:16 +00:00
|
|
|
lettre = { version = "0.11.7", features = [
|
2024-02-25 00:54:27 +00:00
|
|
|
"tokio1",
|
|
|
|
"tokio1-native-tls",
|
|
|
|
], optional = true }
|
|
|
|
markdown-it = { version = "0.6.0", optional = true }
|
2023-07-10 14:50:07 +00:00
|
|
|
ts-rs = { workspace = true, optional = true }
|
2024-02-25 00:54:27 +00:00
|
|
|
enum-map = { workspace = true, optional = true }
|
|
|
|
cfg-if = "1"
|
2022-03-24 15:25:51 +00:00
|
|
|
|
2023-02-23 14:51:33 +00:00
|
|
|
[dev-dependencies]
|
|
|
|
reqwest = { workspace = true }
|
2024-01-04 09:47:18 +00:00
|
|
|
pretty_assertions = { workspace = true }
|
2023-02-23 14:51:33 +00:00
|
|
|
|
2022-03-24 15:25:51 +00:00
|
|
|
[build-dependencies]
|
2023-07-21 09:50:47 +00:00
|
|
|
rosetta-build = { version = "0.1.3", default-features = false }
|