-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #168 from jamesmcm/libcode
First pass at separating library code from CLI
- Loading branch information
Showing
61 changed files
with
233 additions
and
198 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
[package] | ||
name = "vopono_core" | ||
description = "Library code for running VPN connections in network namespaces" | ||
version = "0.1.0" | ||
edition = "2021" | ||
authors = ["James McMurray <jamesmcm03@gmail.com>"] | ||
license = "GPL-3.0-or-later" | ||
repository = "https://github.com/jamesmcm/vopono" | ||
homepage = "https://github.com/jamesmcm/vopono" | ||
readme = "README.md" | ||
keywords = ["vopono", "vpn", "wireguard", "openvpn", "netns"] | ||
|
||
[dependencies] | ||
anyhow = "1" | ||
directories-next = "2" | ||
log = "0.4" | ||
which = "4" | ||
users = "0.11" | ||
nix = "0.24" | ||
serde = { version = "1", features = ["derive", "std"] } | ||
csv = "1" | ||
dialoguer = "0.10" # TODO: Remove me | ||
clap = { version = "3", features = ["derive"] } # TODO: Remove me | ||
regex = "1" | ||
ron = "0.7" | ||
walkdir = "2" | ||
# Must use rand 0.7 for compatibility with x25519-dalek for now | ||
rand = "0.7" | ||
toml = "0.5" | ||
ipnet = { version = "2", features = ["serde"] } | ||
reqwest = { default-features = false, version = "0.11", features = [ | ||
"blocking", | ||
"json", | ||
"rustls-tls", | ||
] } # TODO: Can we remove Tokio dependency? | ||
sysinfo = "0.24" | ||
base64 = "0.13" | ||
x25519-dalek = "1" | ||
strum = "0.24" | ||
strum_macros = "0.24" | ||
zip = "0.6" | ||
maplit = "1" | ||
webbrowser = "0.7" | ||
serde_json = "1" | ||
signal-hook = "0.3" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# vopono_core | ||
|
||
This crate contains the library code used in [vopono](https://github.com/jamesmcm/vopono). | ||
|
||
The separation of library code is still in development and the public | ||
API is not stable. | ||
|
||
VPN provider specific code is in `src/config/providers/` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
pub mod providers; | ||
pub mod vpn; |
2 changes: 1 addition & 1 deletion
2
src/providers/airvpn/mod.rs → ...o_core/src/config/providers/airvpn/mod.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/providers/azirevpn/openvpn.rs → .../src/config/providers/azirevpn/openvpn.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.