mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-09-10 00:18:49 -06:00
![Nutomic](/assets/img/avatar_default.png)
* Create error type enum * Replace magic string slices with LemmyErrorTypes * Remove unused enum * Add rename snake case to error enum * Rename functions * clippy * Fix merge errors * Serialize in PascalCase instead of snake_case * Revert src/lib * Add serialization tests * Update translations * Fix compilation error in test * Fix another compilation error * Add code for generating typescript types * Various fixes to avoid breaking api * impl From<LemmyErrorType> for LemmyError * with_lemmy_type * trigger ci --------- Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
59 lines
1.5 KiB
TOML
59 lines
1.5 KiB
TOML
[package]
|
|
name = "lemmy_utils"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
description.workspace = true
|
|
license.workspace = true
|
|
homepage.workspace = true
|
|
documentation.workspace = true
|
|
repository.workspace = true
|
|
|
|
[lib]
|
|
name = "lemmy_utils"
|
|
path = "src/lib.rs"
|
|
doctest = false
|
|
|
|
[features]
|
|
full = ["ts-rs"]
|
|
|
|
[dependencies]
|
|
regex = { workspace = true }
|
|
chrono = { workspace = true }
|
|
tracing = { workspace = true }
|
|
tracing-error = { workspace = true }
|
|
itertools = { workspace = true }
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
once_cell = { workspace = true }
|
|
url = { workspace = true }
|
|
actix-web = { workspace = true }
|
|
anyhow = { workspace = true }
|
|
reqwest-middleware = { workspace = true }
|
|
strum = { workspace = true }
|
|
strum_macros = { workspace = true }
|
|
futures = { workspace = true }
|
|
diesel = { workspace = true, features = ["chrono"] }
|
|
http = { workspace = true }
|
|
doku = { workspace = true, features = ["url-2"] }
|
|
uuid = { workspace = true, features = ["serde", "v4"] }
|
|
rosetta-i18n = { workspace = true }
|
|
typed-builder = { workspace = true }
|
|
percent-encoding = { workspace = true }
|
|
tokio = { workspace = true }
|
|
openssl = "0.10.55"
|
|
html2text = "0.6.0"
|
|
deser-hjson = "1.2.0"
|
|
smart-default = "0.7.1"
|
|
jsonwebtoken = "8.3.0"
|
|
lettre = { version = "0.10.4", features = ["tokio1", "tokio1-native-tls"] }
|
|
markdown-it = "0.5.1"
|
|
totp-rs = { version = "5.0.2", features = ["gen_secret", "otpauth"] }
|
|
ts-rs = { workspace = true, optional = true }
|
|
enum-map = "2.6"
|
|
|
|
[dev-dependencies]
|
|
reqwest = { workspace = true }
|
|
|
|
[build-dependencies]
|
|
rosetta-build = "0.1.3"
|