[package] name = "fn-memo" version = "1.2.0" authors = ["Jason Lee "] edition = "2018" description = "A library for creating the memoization of a function." license = "MIT OR Apache-2.0" readme = "README.md" repository = "https://github.com/Jason5Lee/rust-fn-memo" homepage = "https://crates.io/crates/fn-memo" keywords = ["cache", "memoization"] [dependencies] recur-fn = "2.1" once_cell = { version = "0.2", optional = true } chashmap = { version = "2.2", optional = true } [features] default = ["concurrent_hash_map"] sync = ["once_cell"] concurrent_hash_map = ["chashmap", "sync"] [workspace] members = ["fn-memo-example"] [[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"]