diff options
author | adrien <adrien@luxeylab.net> | 2021-08-25 17:20:31 +0200 |
---|---|---|
committer | adrien <adrien@luxeylab.net> | 2021-08-26 16:05:39 +0200 |
commit | 76fe63791baea5577bde3f83243f85ba781f46fe (patch) | |
tree | 1f7ffed5671f30cbd13093db02d7462183bf1952 /src/consul.rs | |
parent | fa25c54e47decf9f323ba0c614f4d9de106626d5 (diff) | |
download | diplonat-76fe63791baea5577bde3f83243f85ba781f46fe.tar.gz diplonat-76fe63791baea5577bde3f83243f85ba781f46fe.zip |
Rewrote the configuration options to make Diplonat modular: IGD and Firewall modules will only be enabled if correponding `DIPLONAT_*_ENABLE` is set. (Breaking changes!)
Also rearranged imports throughout the project, because I couldn't resist, sorry.
Diffstat (limited to 'src/consul.rs')
-rw-r--r-- | src/consul.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/consul.rs b/src/consul.rs index 1bb30aa..9a91782 100644 --- a/src/consul.rs +++ b/src/consul.rs @@ -1,6 +1,7 @@ -use serde::{Serialize, Deserialize}; use std::collections::HashMap; + use anyhow::{Result, anyhow}; +use serde::{Serialize, Deserialize}; #[derive(Serialize, Deserialize, Debug)] pub struct ServiceEntry { |