Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build service library and binaries for formnet #331

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ resolver = "2"
members = [
"server",
"client",
"formnet",
"hostsfile",
"shared",
"publicip",
Expand Down
2 changes: 1 addition & 1 deletion client/src/data_store.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::Error;
use shared::Error;
use anyhow::bail;
use serde::{Deserialize, Serialize};
use shared::{chmod, ensure_dirs_exist, Cidr, IoErrorContext, Peer, WrappedIoError};
Expand Down
3 changes: 3 additions & 0 deletions client/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
pub mod util;
pub mod data_store;
pub mod nat;
49 changes: 49 additions & 0 deletions formnet/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
[package]
authors = [
"Andrew Smith [email protected]"
]
description = "A service that uses innernet behind the scenes to coordinate the formation fog network."
edition = "2021"
license = "MIT"
name = "formnet"
publish = false
readme = "README.md"
version = "0.1.0"

[features]
integration = []

[lib]
path = "src/lib.rs"

[[bin]]
name = "formnet"
path = "src/main.rs"

[[bin]]
name = "formnet-client"
path = "src/client.rs"


[dependencies]
innernet-server = { path = "../server" }
client = { path = "../client" }
wireguard-control = { path = "../wireguard-control" }
form-types = { path = "../../form-types" }
tokio = { version = "1", features=["full"] }
clap = { version = "4.5.23", features=["derive"] }
conductor = { git = "https://github.com/versatus/conductor.git" }
shared = { path = "../shared" }
ipnet = "2.9"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
async-trait = "0.1.83"
bincode = "1.3.3"
axum = "0.7"
reqwest = { version = "0.12", features = ["json"] }
log = "0.4"
simple_logger = "5.0.0"
log4rs = "1.3.0"

[dev-dependencies]
random_word = { version = "0.4.3", features = ["en"] }
4 changes: 4 additions & 0 deletions formnet/src/client.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
Ok(())
}
Loading
Loading