2019-02-27 17:59:57 +01:00
|
|
|
extern crate rider_lexers;
|
|
|
|
extern crate rider_themes;
|
|
|
|
|
2019-01-07 21:46:01 +01:00
|
|
|
use std::sync::{Arc, RwLock};
|
2019-01-03 15:19:56 +01:00
|
|
|
|
2019-01-07 21:46:01 +01:00
|
|
|
pub mod config;
|
2019-01-03 15:19:56 +01:00
|
|
|
pub mod directories;
|
2019-01-07 21:46:01 +01:00
|
|
|
pub mod editor_config;
|
2019-01-08 20:16:58 +01:00
|
|
|
pub mod scroll_config;
|
2019-01-03 15:19:56 +01:00
|
|
|
|
2019-02-27 17:59:57 +01:00
|
|
|
pub use crate::config::*;
|
|
|
|
pub use crate::directories::*;
|
|
|
|
pub use crate::editor_config::*;
|
|
|
|
pub use crate::scroll_config::*;
|
2019-01-04 21:42:39 +01:00
|
|
|
|
2019-01-07 21:46:01 +01:00
|
|
|
pub type ConfigAccess = Arc<RwLock<Config>>;
|
2019-01-04 21:42:39 +01:00
|
|
|
|
2019-01-07 21:46:01 +01:00
|
|
|
pub trait ConfigHolder {
|
|
|
|
fn config(&self) -> &ConfigAccess;
|
2019-01-03 15:19:56 +01:00
|
|
|
}
|