mirror of
https://github.com/aramperes/onetun.git
synced 2025-09-09 17:58:32 -04:00
Split dependencies that are only used for the binary version of onetun
This commit is contained in:
parent
1c1399d5ff
commit
f85692950f
3 changed files with 17 additions and 4 deletions
|
@ -7,7 +7,6 @@ use std::sync::Arc;
|
|||
|
||||
use anyhow::Context;
|
||||
use boringtun::crypto::{X25519PublicKey, X25519SecretKey};
|
||||
use clap::{App, Arg};
|
||||
|
||||
const DEFAULT_PORT_FORWARD_SOURCE: &str = "127.0.0.1";
|
||||
|
||||
|
@ -29,7 +28,10 @@ pub struct Config {
|
|||
}
|
||||
|
||||
impl Config {
|
||||
#[cfg(feature = "bin")]
|
||||
pub fn from_args() -> anyhow::Result<Self> {
|
||||
use clap::{App, Arg};
|
||||
|
||||
let mut warnings = vec![];
|
||||
|
||||
let matches = App::new("onetun")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue