aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGalen Guyer <galen@galenguyer.com>2022-05-10 12:57:31 -0400
committerGalen Guyer <galen@galenguyer.com>2022-05-10 13:00:12 -0400
commit07ce9bbf42ad8e6e120eb772ba68dc912fb598b4 (patch)
treec9c1a73244697d9ffbd16231d881953bf11ee733
Initial commit
-rw-r--r--.gitignore1
-rw-r--r--Cargo.lock11
-rw-r--r--Cargo.toml2
-rw-r--r--wg-rs/.gitignore2
-rw-r--r--wg-rs/Cargo.toml10
-rw-r--r--wg-rs/src/lib.rs8
-rw-r--r--wg-sys/.gitignore2
-rw-r--r--wg-sys/Cargo.toml10
-rw-r--r--wg-sys/src/lib.rs8
9 files changed, 54 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..b83d222
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/target/
diff --git a/Cargo.lock b/Cargo.lock
new file mode 100644
index 0000000..d5a7dd6
--- /dev/null
+++ b/Cargo.lock
@@ -0,0 +1,11 @@
+# This file is automatically @generated by Cargo.
+# It is not intended for manual editing.
+version = 3
+
+[[package]]
+name = "wg-rs"
+version = "0.1.0"
+
+[[package]]
+name = "wg-sys"
+version = "0.1.0"
diff --git a/Cargo.toml b/Cargo.toml
new file mode 100644
index 0000000..f5cd7ff
--- /dev/null
+++ b/Cargo.toml
@@ -0,0 +1,2 @@
+[workspace]
+members = ["wg-rs", "wg-sys"]
diff --git a/wg-rs/.gitignore b/wg-rs/.gitignore
new file mode 100644
index 0000000..4fffb2f
--- /dev/null
+++ b/wg-rs/.gitignore
@@ -0,0 +1,2 @@
+/target
+/Cargo.lock
diff --git a/wg-rs/Cargo.toml b/wg-rs/Cargo.toml
new file mode 100644
index 0000000..b3052b5
--- /dev/null
+++ b/wg-rs/Cargo.toml
@@ -0,0 +1,10 @@
+[package]
+name = "wg-rs"
+version = "0.0.1"
+description = "Library for managing wireguard devices"
+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-rs/src/lib.rs b/wg-rs/src/lib.rs
new file mode 100644
index 0000000..1b4a90c
--- /dev/null
+++ b/wg-rs/src/lib.rs
@@ -0,0 +1,8 @@
+#[cfg(test)]
+mod tests {
+ #[test]
+ fn it_works() {
+ let result = 2 + 2;
+ assert_eq!(result, 4);
+ }
+}
diff --git a/wg-sys/.gitignore b/wg-sys/.gitignore
new file mode 100644
index 0000000..4fffb2f
--- /dev/null
+++ b/wg-sys/.gitignore
@@ -0,0 +1,2 @@
+/target
+/Cargo.lock
diff --git a/wg-sys/Cargo.toml b/wg-sys/Cargo.toml
new file mode 100644
index 0000000..328c2dc
--- /dev/null
+++ b/wg-sys/Cargo.toml
@@ -0,0 +1,10 @@
+[package]
+name = "wg-sys"
+version = "0.0.1"
+description = "C bindings for wireguard"
+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-sys/src/lib.rs b/wg-sys/src/lib.rs
new file mode 100644
index 0000000..1b4a90c
--- /dev/null
+++ b/wg-sys/src/lib.rs
@@ -0,0 +1,8 @@
+#[cfg(test)]
+mod tests {
+ #[test]
+ fn it_works() {
+ let result = 2 + 2;
+ assert_eq!(result, 4);
+ }
+}