Crates.io | fastpool |
lib.rs | fastpool |
version | |
source | src |
created_at | 2025-02-25 03:35:40.317706+00 |
updated_at | 2025-05-07 14:44:38.019812+00 |
description | This crates implements a fast object pool for Async Rust. |
homepage | https://github.com/fast/fastpool |
repository | https://github.com/fast/fastpool |
max_upload_size | |
id | 1568667 |
Cargo.toml error: | TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
Fastpool provides fast and runtime-agnostic object pools for Async Rust.
You can read the docs page for a complete overview of the library.
Add the dependency to your Cargo.toml
via:
cargo add fastpool
Read the online documents at https://docs.rs/fastpool.
This crate is built against the latest stable release, and its minimum supported rustc version is 1.85.0.
The policy is that the minimum Rust version required to use this crate can be increased in minor version updates. For example, if Fastpool 1.0 requires Rust 1.20.0, then Fastpool 1.0.z for all values of z will also require Rust 1.20.0 or newer. However, Fastpool 1.y for y > 0 may require a newer minimum version of Rust.
This project is licensed under Apache License, Version 2.0.
This library is derived from the deadpool crate with several dedicated considerations and a quite different mindset.
You can read the FAQ section on the docs page for detailed discussion on "Why does fastpool have no timeout config?" and "Why does fastpool have no before/after hooks?"
The postgres example and this issue thread is a significant motivation for this crate:
Arc<Pool>
on creation so that maintenance could be triggered with a weak reference. This helps applications to teardown (drop) the pool easily with Rust's built-in RAII mechanism. See also this example.