[package]
edition = "2018"
name = "fn-memo"
version = "1.1.1"
authors = ["Jason Lee <jason5lee@hotmail.com>"]
description = "A library for creating the memoization of a function."
homepage = "https://crates.io/crates/fn-memo"
readme = "README.md"
keywords = ["cache", "memoization"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/Jason5Lee/rust-fn-memo"
[[test]]
name = "unsync"
path = "tests/unsync.rs"
required-features = []
[[test]]
name = "rw_lock"
path = "tests/rw_lock.rs"
required-features = ["sync"]
[[test]]
name = "chashmap"
path = "tests/chashmap.rs"
required-features = ["concurrent_hash_map"]
[dependencies.chashmap]
version = "2.2.0"
optional = true
[dependencies.once_cell]
version = "0.1.7"
optional = true
[dependencies.recur-fn]
version = "1.2.0"
[features]
concurrent_hash_map = ["chashmap", "sync"]
default = ["concurrent_hash_map"]
sync = ["once_cell"]