[package] name = "tote" version = "0.5.1" authors = ["Matthew Wood "] edition = "2021" description = "A lightweight data cache for CLI libraries" license = "MIT" homepage = "https://github.com/thepacketgeek/tote" repository = "https://github.com/thepacketgeek/tote" readme = "README.md" [features] # Synchronous (threaded) `Fetch` trait used to retrieve data in the case # of missing or expired cache data default = [] # Asynchronous (tokio) `AsyncFetch` trait used to retrieve data in the case # of missing or expired cache data # Adds dependency for `async-trait` and `tokio` (for testing) async = ["async-trait"] [dependencies] async-trait = { version = "0.1.53", optional = true } serde = "1.0.137" serde_json = "1.0.81" thiserror = "1.0.31" [dev-dependencies] dirs = "4.0.0" reqwest = { version = "0.11.10", features = ["blocking", "json"] } serde_derive = "1.0.137" tokio = { version = "1.18.2", features = ["full"] } tempfile = "3.3.0"