mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-10-30 05:23:08 +00:00
a14657d124
* Update rate_limiter.rs * Update mod.rs * Update rate_limiter.rs * Update rate_limiter.rs * Update mod.rs * Update scheduled_tasks.rs * Shrink `RateLimitBucket` * Update rate_limiter.rs * Update mod.rs * Update rate_limiter.rs * Update rate_limiter.rs * Update rate_limiter.rs * Update rate_limiter.rs * Update mod.rs * Update rate_limiter.rs * fmt * Update rate_limiter.rs * Update rate_limiter.rs * Update rate_limiter.rs * Update rate_limiter.rs * Update rate_limiter.rs * Update rate_limiter.rs * Update rate_limiter.rs * Update rate_limiter.rs * Update rate_limiter.rs * rerun ci * Update rate_limiter.rs * Undo changes to fields * Manually undo changes to RateLimitBucket fields * fmt * Bucket cleanup loop in rate_limit/mod.rs * Remove rate limit bucket cleanup from scheduled_tasks.rs * Remove ; * Remove UNINITIALIZED_TOKEN_AMOUNT * Update rate_limiter.rs * fmt * Update rate_limiter.rs * fmt * Update rate_limiter.rs * fmt * Update rate_limiter.rs * stuff * MapLevel trait * fix merge * Prevent negative numbers in buckets * Clean up MapLevel::check * MapLevel::remove_full_buckets * stuff * Use remove_full_buckets to avoid allocations * stuff * remove tx * Remove RateLimitConfig * Rename settings_updated_channel to rate_limit_cell * Remove global rate limit cell * impl Default for RateLimitCell * bucket_configs doc comment to explain EnumMap * improve test_rate_limiter * rename default to with_test_config --------- Co-authored-by: Dessalines <dessalines@users.noreply.github.com> Co-authored-by: Nutomic <me@nutomic.com>
57 lines
1.5 KiB
TOML
57 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"
|
|
lettre = { version = "0.10.4", features = ["tokio1", "tokio1-native-tls"] }
|
|
markdown-it = "0.5.1"
|
|
ts-rs = { workspace = true, optional = true }
|
|
enum-map = { workspace = true }
|
|
|
|
[dev-dependencies]
|
|
reqwest = { workspace = true }
|
|
|
|
[build-dependencies]
|
|
rosetta-build = { version = "0.1.3", default-features = false }
|