Skip to main content

mwc_wallet_config/
lib.rs

1// Copyright 2019 The Grin Developers
2// Copyright 2024 The Mwc Developers
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8//     http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16//! Crate wrapping up the Mwc binary and configuration file
17
18#![deny(non_upper_case_globals)]
19#![deny(non_camel_case_types)]
20#![deny(non_snake_case)]
21#![deny(unused_mut)]
22#![warn(missing_docs)]
23
24#[macro_use]
25extern crate serde_derive;
26
27use mwc_wallet_util::mwc_core as core;
28use mwc_wallet_util::mwc_util as util;
29
30mod comments;
31pub mod config;
32#[allow(missing_docs)]
33pub mod types;
34
35pub use crate::config::{
36	config_file_exists, initial_setup_wallet, MWC_WALLET_DIR, WALLET_CONFIG_FILE_NAME,
37};
38pub use crate::types::{
39	parse_node_address_string, ConfigError, GlobalWalletConfig, GlobalWalletConfigMembers,
40	MQSConfig, TorConfig, WalletConfig,
41};