Crates.io | aleo-std-storage |
lib.rs | aleo-std-storage |
version | 0.1.7 |
source | src |
created_at | 2021-11-13 08:32:00.360036 |
updated_at | 2024-01-20 23:46:12.366164 |
description | Convenience methods for accessing resources in Aleo storage |
homepage | |
repository | |
max_upload_size | |
id | 481319 |
size | 41,051 |
This crate uses aleo-std-storage
to implement convenience methods for accessing resources in Aleo storage.
use aleo_std::prelude::*;
fn foo() {
// Prints the Aleo directory.
println!("{:?} exists: {:?}", aleo_dir(), aleo_dir().exists());
// Prints the Aleo ledger directory in production mode.
println!("{:?} exists: {:?}", aleo_ledger_dir(2, StorageMode::Production), aleo_ledger_dir(2, StorageMode::Production).exists());
}