Files
neon/libs/utils/Cargo.toml
Christian Schwarz 54f767e93f hacky squash-merge of conrad's leaky_bucket impl; https://github.com/neondatabase/neon/pull/8539/files#diff-c39dcc3c2c783a8600f9e0603124693444fb6f0fe99e3d057474fd94e264f69c
commit d6d9ad2a57
Author: Conrad Ludgate <conradludgate@gmail.com>
Date:   Tue Jul 30 22:01:48 2024 +0100

    fix fix test

commit 490f475fab
Author: Conrad Ludgate <conradludgate@gmail.com>
Date:   Tue Jul 30 15:31:33 2024 +0100

    fix limitation of requesting more than max tokens

commit 2dd85f5a84
Author: Conrad Ludgate <conrad@neon.tech>
Date:   Tue Jul 30 10:46:27 2024 +0100

    Update libs/utils/src/leaky_bucket.rs

    Co-authored-by: Joonas Koivunen <joonas@neon.tech>

commit c766021d5f
Author: Conrad Ludgate <conradludgate@gmail.com>
Date:   Mon Jul 29 16:12:44 2024 +0100

    fix fair queue

commit 300a43db5c
Author: Conrad Ludgate <conradludgate@gmail.com>
Date:   Mon Jul 29 14:50:47 2024 +0100

    rename

commit d73475cc8d
Author: Conrad Ludgate <conradludgate@gmail.com>
Date:   Mon Jul 29 14:37:19 2024 +0100

    add more tests

commit 28b85ca711
Author: Conrad Ludgate <conradludgate@gmail.com>
Date:   Mon Jul 29 14:08:37 2024 +0100

    share impl between proxy and ps

commit 40d239560f
Author: Conrad Ludgate <conradludgate@gmail.com>
Date:   Mon Jul 29 13:03:17 2024 +0100

    add quantization

commit 60c3e1347f
Author: Conrad Ludgate <conradludgate@gmail.com>
Date:   Mon Jul 29 13:03:03 2024 +0100

    replace leaky-bucket crate with gcra impl

commit ef7e96fb4e
Author: Conrad Ludgate <conradludgate@gmail.com>
Date:   Mon Jul 29 11:41:44 2024 +0100

    tweak comments

commit 54c5196f75
Author: Conrad Ludgate <conradludgate@gmail.com>
Date:   Sun Jul 28 23:00:21 2024 +0100

    proxy: improve performance of leaky-bucket
2024-08-28 12:24:14 +00:00

77 lines
2.0 KiB
TOML

[package]
name = "utils"
version = "0.1.0"
edition.workspace = true
license.workspace = true
[features]
default = []
# Enables test-only APIs, incuding failpoints. In particular, enables the `fail_point!` macro,
# which adds some runtime cost to run tests on outage conditions
testing = ["fail/failpoints"]
[dependencies]
arc-swap.workspace = true
sentry.workspace = true
async-compression.workspace = true
async-trait.workspace = true
anyhow.workspace = true
bincode.workspace = true
bytes.workspace = true
camino.workspace = true
chrono.workspace = true
hex = { workspace = true, features = ["serde"] }
humantime.workspace = true
hyper = { workspace = true, features = ["full"] }
fail.workspace = true
futures = { workspace = true}
jsonwebtoken.workspace = true
nix.workspace = true
once_cell.workspace = true
pin-project-lite.workspace = true
regex.workspace = true
routerify.workspace = true
serde.workspace = true
serde_json.workspace = true
signal-hook.workspace = true
thiserror.workspace = true
tokio.workspace = true
tokio-tar.workspace = true
tokio-util.workspace = true
toml_edit = { workspace = true, features = ["serde"] }
tracing.workspace = true
tracing-error.workspace = true
tracing-subscriber = { workspace = true, features = ["json", "registry"] }
rand.workspace = true
serde_with.workspace = true
strum.workspace = true
strum_macros.workspace = true
url.workspace = true
uuid.workspace = true
walkdir.workspace = true
pq_proto.workspace = true
postgres_connection.workspace = true
metrics.workspace = true
const_format.workspace = true
# to use tokio channels as streams, this is faster to compile than async_stream
# why is it only here? no other crate should use it, streams are rarely needed.
tokio-stream = { version = "0.1.14" }
serde_path_to_error.workspace = true
[dev-dependencies]
byteorder.workspace = true
bytes.workspace = true
criterion.workspace = true
hex-literal.workspace = true
camino-tempfile.workspace = true
serde_assert.workspace = true
tokio = { workspace = true, features = ["test-util"] }
[[bench]]
name = "benchmarks"
harness = false