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 = [
|
2024-11-22 14:33:35 +00:00
|
|
|
"ts-rs",
|
|
|
|
"diesel",
|
|
|
|
"rosetta-i18n",
|
|
|
|
"actix-web",
|
|
|
|
"reqwest-middleware",
|
|
|
|
"tracing",
|
|
|
|
"actix-web",
|
|
|
|
"serde_json",
|
|
|
|
"anyhow",
|
|
|
|
"http",
|
|
|
|
"deser-hjson",
|
|
|
|
"regex",
|
|
|
|
"urlencoding",
|
|
|
|
"doku",
|
|
|
|
"url",
|
|
|
|
"smart-default",
|
|
|
|
"enum-map",
|
|
|
|
"futures",
|
|
|
|
"tokio",
|
|
|
|
"html2text",
|
|
|
|
"lettre",
|
|
|
|
"uuid",
|
|
|
|
"itertools",
|
|
|
|
"markdown-it",
|
|
|
|
"moka",
|
2024-02-25 00:54:27 +00:00
|
|
|
]
|
2023-07-10 14:50:07 +00:00
|
|
|
|
2024-10-28 15:41:09 +00:00
|
|
|
[package.metadata.cargo-shear]
|
|
|
|
ignored = ["http"]
|
|
|
|
|
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 }
|
|
|
|
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 }
|
|
|
|
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 }
|
2024-02-25 00:54:27 +00:00
|
|
|
futures = { workspace = true, optional = true }
|
2024-12-20 22:20:16 +00:00
|
|
|
diesel = { workspace = true, optional = true, features = ["chrono"] }
|
2024-02-25 00:54:27 +00:00
|
|
|
http = { workspace = true, optional = true }
|
|
|
|
doku = { workspace = true, features = ["url-2"], optional = true }
|
2024-12-20 22:20:16 +00:00
|
|
|
uuid = { workspace = true, optional = true, features = ["v4"] }
|
2024-02-25 00:54:27 +00:00
|
|
|
rosetta-i18n = { workspace = true, optional = true }
|
|
|
|
tokio = { workspace = true, optional = true }
|
|
|
|
urlencoding = { workspace = true, optional = true }
|
2024-11-18 17:23:02 +00:00
|
|
|
html2text = { version = "0.12.6", optional = true }
|
2024-02-25 00:54:27 +00:00
|
|
|
deser-hjson = { version = "2.2.4", optional = true }
|
|
|
|
smart-default = { version = "0.7.1", optional = true }
|
2024-11-18 17:23:02 +00:00
|
|
|
lettre = { version = "0.11.10", default-features = false, features = [
|
2024-07-18 12:40:43 +00:00
|
|
|
"builder",
|
|
|
|
"smtp-transport",
|
2024-12-20 22:20:16 +00:00
|
|
|
"tokio1-rustls-tls",
|
2024-02-25 00:54:27 +00:00
|
|
|
], optional = true }
|
2024-08-01 21:04:28 +00:00
|
|
|
markdown-it = { version = "0.6.1", 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"
|
2024-09-16 15:15:41 +00:00
|
|
|
clearurls = { version = "0.0.4", features = ["linkify"] }
|
2024-10-25 21:06:37 +00:00
|
|
|
markdown-it-block-spoiler = "1.0.0"
|
|
|
|
markdown-it-sub = "1.0.0"
|
|
|
|
markdown-it-sup = "1.0.0"
|
|
|
|
markdown-it-ruby = "1.0.0"
|
2024-11-22 14:33:35 +00:00
|
|
|
moka = { workspace = true, optional = true }
|
2022-03-24 15:25:51 +00:00
|
|
|
|
2023-02-23 14:51:33 +00:00
|
|
|
[dev-dependencies]
|
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 }
|