Oregami
Repositories/oxedyne/fe2o3

oxedyne/fe2o3/fe2o3_steel/src/app/constant.rs

1.9 KiB, 9 runs

created by r1870400018:943, which is this file's identity for as long as the history lasts, whatever it is later renamed to

download · who wrote it · its history

1use oxedyne_fe2o3_jdat::version::SemVer;
2use oxedyne_fe2o3_o3db_sync::{
3 comm::response::Wait,
4};
5
6pub const VERSION: SemVer = SemVer::new(0, 1, 0);
7pub const DB_DIR: &'static str = "o3db";
8pub const DEFAULT_LOG_LEVEL: &'static str = "info";
9pub const LOG_FILE_EXTENSION: &'static str = "log";
10
11pub const CONFIG_NAME: &'static str = "config.jdat";
12pub const WALLET_NAME: &'static str = "wallet.jdat";
13/// Environment variable read in place of an interactive passphrase prompt.
14/// For development and scripted tests. Production supplies the passphrase
15/// through a human -- at the shell, or at the dashboard's unseal form.
16pub const ADMIN_PASS_ENV: &'static str = "STEEL_ADMIN_PASS";
17// Timeouts.
18pub const GET_DATA_WAIT: Wait = Wait::new_default();
19// Key derivation functions.
20pub const KDF_HASH_LEN: u32 = 32;
21pub const KDF_SALT_LEN: usize = 16;
22pub const KDF_MEM_COST_KB: u32 = 104_858; // 100 MiB in KB
23pub const KDF_TIME_COST_PASSES: u32 = 5;
24
25pub const WS_APP_MSG_LIMIT: u16 = 100; // Arbitrary.
26
27// User interface.
28pub const MAX_CREATE_PASS_ATTEMPTS: usize = 3; // Arbitrary.
29pub const SYNTAX_CMD_SIMILARITY_THRESHOLD: f64 = 0.7;
30
31// Development.
32pub const DEV_TREE_CREATE: &[&str] = &[
33 "tls/dev",
34 "tls/prod",
35 "www/logs",
36 "www/public",
37 "www/public/assets",
38 "www/public/assets/font",
39 "www/public/assets/img",
40 "www/public/bundles",
41 "www/public/bundles/js",
42 "www/src/js",
43 "www/src/js/components",
44 "www/src/js/pages",
45 "www/src/js/pages/main",
46 "www/src/js/pages/admin",
47 "www/src/js/utils",
48 "www/src/styles",
49 "www/src/styles/components",
50];
51pub const INIT_TREE_HALT: &[&str] = &[
52 "www/public",
53 "www/src",
54];