matrix-sdk-sled 0.2.0

Sled Storage backend for matrix-sdk for native environments
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::{env, process};

fn main() {
    let target_arch = env::var_os("CARGO_CFG_TARGET_ARCH");
    if target_arch.map_or(false, |arch| arch == "wasm32") {
        let err = "this crate does not support the target arch 'wasm32'";
        eprintln!(
            "\n\
            ┏━━━━━━━━{pad}━┓\n\
            ┃ error: {err}\n\
            ┗━━━━━━━━{pad}━┛\n\
            ",
            pad = "".repeat(err.len()),
        );
        process::exit(1);
    }
}