linera-base 0.13.1

Base definitions, including cryptography, used by the Linera protocol.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

fn main() {
    cfg_aliases::cfg_aliases! {
        web: { all(target_arch = "wasm32", feature = "web") },
        chain: { all(target_arch = "wasm32", not(web)) },
        with_metrics: { all(not(target_arch = "wasm32"), feature = "metrics") },
        with_testing: { any(test, feature = "test") },

        // the old version of `getrandom` we pin here is available on all targets, but
        // using it will panic if no suitable source of entropy is found
        with_getrandom: { any(web, not(target_arch = "wasm32")) },
    };
}