summaryrefslogtreecommitdiffstats
path: root/src/config.rs
diff options
context:
space:
mode:
authorMinijackson <minijackson@riseup.net>2019-12-21 12:13:21 +0100
committerMinijackson <minijackson@riseup.net>2019-12-21 12:13:21 +0100
commite773caea8010b87726ea524d31798fb2e43e12f4 (patch)
tree9034295831afb25f4bfea5a05d9f83d03e69e86c /src/config.rs
parentde896baff7e97fac4dde79078c9a2fa1c652576b (diff)
downloadposeidoc-e773caea8010b87726ea524d31798fb2e43e12f4.tar.gz
poseidoc-e773caea8010b87726ea524d31798fb2e43e12f4.zip
newtype in types, more generator config, parsing -> parser
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/config.rs b/src/config.rs
index 72a9ff6..942dfcf 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -2,7 +2,7 @@ use crate::cli::Cli;
2use crate::generator::config::{ 2use crate::generator::config::{
3 Config as GeneratorConfig, ProvidedConfig as ProvidedGeneratorConfig, 3 Config as GeneratorConfig, ProvidedConfig as ProvidedGeneratorConfig,
4}; 4};
5use crate::parsing::clang::config::{Config as ClangConfig, ProvidedConfig as ProvidedClangConfig}; 5use crate::parser::clang::config::{Config as ClangConfig, ProvidedConfig as ProvidedClangConfig};
6 6
7use anyhow::{anyhow, Context, Result}; 7use anyhow::{anyhow, Context, Result};
8use codemap::CodeMap; 8use codemap::CodeMap;
@@ -19,8 +19,8 @@ pub(super) const DEFAULT_PROJECT_CONFIGURATION_FILE_NAME: &str = "poseidoc.toml"
19#[derive(Debug, Clone, Serialize)] 19#[derive(Debug, Clone, Serialize)]
20pub(crate) struct Config { 20pub(crate) struct Config {
21 pub(crate) name: String, 21 pub(crate) name: String,
22 pub(crate) clang: ClangConfig,
23 pub(crate) generator: GeneratorConfig, 22 pub(crate) generator: GeneratorConfig,
23 pub(crate) clang: ClangConfig,
24} 24}
25 25
26impl Default for Config { 26impl Default for Config {
@@ -57,7 +57,7 @@ pub(crate) struct ProvidedConfig {
57 #[structopt(flatten)] 57 #[structopt(flatten)]
58 #[serde(default)] 58 #[serde(default)]
59 pub(crate) clang: ProvidedClangConfig, 59 pub(crate) clang: ProvidedClangConfig,
60 #[structopt(skip)] 60 #[structopt(flatten)]
61 #[serde(default)] 61 #[serde(default)]
62 pub(crate) generator: ProvidedGeneratorConfig, 62 pub(crate) generator: ProvidedGeneratorConfig,
63} 63}