A Rust library for creating the memoization of a function.
Documentation: API reference
Add the following dependency to your Cargo.toml
:
[dependencies]
fn-memo = "1.2"
By default fn-memo
includes synchronized APIs, which introduces related dependencies.
If you only use the memoization in one thread and want to reduce dependencies, use following configuration.
[dependencies]
fn-memo = { version = "1.2", default-features = false }