Skip to content

Commit

Permalink
build service library and binaries for formnet
Browse files Browse the repository at this point in the history
  • Loading branch information
ASmithOWL committed Jan 1, 2025
1 parent b2e4149 commit 8cda33f
Show file tree
Hide file tree
Showing 10 changed files with 841 additions and 14 deletions.
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

0 comments on commit 8cda33f

Please sign in to comment.