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