#aleo #std #storage

aleo-std-storage

Convenience methods for accessing resources in Aleo storage

4 releases

0.1.3 Dec 19, 2021
0.1.2 Nov 30, 2021
0.1.1 Nov 29, 2021
0.1.0 Nov 13, 2021

#624 in Rust patterns

Download history 13978/week @ 2022-08-11 4641/week @ 2022-08-18 11449/week @ 2022-08-25 14915/week @ 2022-09-01 2838/week @ 2022-09-08 2984/week @ 2022-09-15 9020/week @ 2022-09-22 11931/week @ 2022-09-29 3196/week @ 2022-10-06 3518/week @ 2022-10-13 11047/week @ 2022-10-20 7707/week @ 2022-10-27 8545/week @ 2022-11-03 12474/week @ 2022-11-10 8758/week @ 2022-11-17 7024/week @ 2022-11-24

38,403 downloads per month
Used in 39 crates (via aleo-std)

GPL-3.0 license

15KB
102 lines

aleo-std-storage

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, None), aleo_ledger_dir(2, None).exists());
    // Prints the Aleo operator directory in production mode.
    println!("{:?} exists: {:?}", aleo_operator_dir(2, None), aleo_operator_dir(2, None).exists());
    // Prints the Aleo prover directory in production mode.
    println!("{:?} exists: {:?}", aleo_prover_dir(2, None), aleo_prover_dir(2, None).exists());
}

Dependencies

~220KB