docs.rs failed to build lazyget-0.1.4
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
lazyget
Lazy artifact downloader with local caching.
lazyget provides a simple, atomic caching layer for downloading or generating artifacts.
Perfect for build tools, template engines, or any workflow where you want to avoid redundant work.
Features
- Atomic operations: Uses temp directories and atomic renames to prevent partial/corrupted cache entries
- Sync & Async: Choose the API that fits your project
- Zero-fuss: Only
thiserror,sha2, andhex(async mode adds optionaltokio) - Idempotent: Calling
fetchmultiple times with the same ID invokes your closure only once
Quick Start
Add to your dependencies:
cargo add lazyget
Basic usage:
use ;
let cache_dir = temp_dir.join;
let id = make_id;
let path = fetch?;
println!;
Documentation
Full API reference and advanced usage examples are available in the book.
License
MIT OR Apache-2.0