2020-12-24 16:24:04 +01:00
|
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
|
|
|
|
#[derive(Serialize, Deserialize)]
|
|
|
|
pub struct Configuration {
|
|
|
|
pub concurrency: usize,
|
|
|
|
}
|
|
|
|
|
|
|
|
impl Default for Configuration {
|
|
|
|
fn default() -> Self {
|
|
|
|
Self { concurrency: 2 }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl Configuration {
|
2021-01-06 18:47:54 +01:00
|
|
|
crate::rw!("highlight.toml");
|
2020-12-24 16:24:04 +01:00
|
|
|
}
|
2021-01-06 18:47:54 +01:00
|
|
|
crate::read!(Configuration);
|