aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGalen Guyer <galen@galenguyer.com>2022-06-08 10:33:16 -0400
committerGalen Guyer <galen@galenguyer.com>2022-06-08 10:33:16 -0400
commitda1e4ac4461958643fe14b3da83450292cbb2ca4 (patch)
tree43e4c679c295c4afc01784088e2e21fb33971cdf
parent61e579536992f311dc5bc953ddb28a921a3ace1c (diff)
create wg-conf
-rw-r--r--Cargo.toml2
-rw-r--r--wg-conf/Cargo.toml10
-rw-r--r--wg-conf/src/lib.rs8
3 files changed, 19 insertions, 1 deletions
diff --git a/Cargo.toml b/Cargo.toml
index f5cd7ff..f4c42e7 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,2 +1,2 @@
[workspace]
-members = ["wg-rs", "wg-sys"]
+members = ["wg-rs", "wg-sys", "wg-conf"]
diff --git a/wg-conf/Cargo.toml b/wg-conf/Cargo.toml
new file mode 100644
index 0000000..b138082
--- /dev/null
+++ b/wg-conf/Cargo.toml
@@ -0,0 +1,10 @@
+[package]
+name = "wg-conf"
+version = "0.0.1"
+description = "Library for reading and writing wireguard configuration files"
+license = "MIT"
+edition = "2021"
+
+# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
+
+[dependencies]
diff --git a/wg-conf/src/lib.rs b/wg-conf/src/lib.rs
new file mode 100644
index 0000000..1b4a90c
--- /dev/null
+++ b/wg-conf/src/lib.rs
@@ -0,0 +1,8 @@
+#[cfg(test)]
+mod tests {
+ #[test]
+ fn it_works() {
+ let result = 2 + 2;
+ assert_eq!(result, 4);
+ }
+}