aleo-std-storage

Crates.ioaleo-std-storage
lib.rsaleo-std-storage
version0.1.7
sourcesrc
created_at2021-11-13 08:32:00.360036
updated_at2024-01-20 23:46:12.366164
descriptionConvenience methods for accessing resources in Aleo storage
homepage
repository
max_upload_size
id481319
size41,051
Howard Wu (howardwu)

documentation

README

aleo-std-storage

Crates.io Authors License

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());
}
Commit count: 0

cargo fmt