commit 577b7b008401d0df59fb22d61df2da1186e62a59 Author: Milo Turner Date: Fri Feb 21 16:51:19 2020 -0500 hello world diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1de5659 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +target \ No newline at end of file diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 0000000..1b531f0 --- /dev/null +++ b/Cargo.lock @@ -0,0 +1,19 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +[[package]] +name = "hptp" +version = "0.1.0" + +[[package]] +name = "hptp-recv" +version = "0.1.0" +dependencies = [ + "hptp", +] + +[[package]] +name = "hptp-send" +version = "0.1.0" +dependencies = [ + "hptp", +] diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..ba9c2af --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,7 @@ +[workspace] + +members = [ + "hptp", + "hptp-send", + "hptp-recv", +] \ No newline at end of file diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..88e9f1d --- /dev/null +++ b/Makefile @@ -0,0 +1,15 @@ + +all: + cargo build + +clean: + cargo clean + +test: + cargo test + +c: clean + +t: test + +.PHONY: all clean test c t diff --git a/hptp-recv/Cargo.toml b/hptp-recv/Cargo.toml new file mode 100644 index 0000000..35313af --- /dev/null +++ b/hptp-recv/Cargo.toml @@ -0,0 +1,11 @@ +[package] +name = "hptp-recv" +description = "Head Pat Transport Protocol, Receiving Program" +version = "0.1.0" +authors = ["iitalics", "haskal"] +edition = "2018" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] +hptp = { path = "../hptp" } \ No newline at end of file diff --git a/hptp-recv/src/main.rs b/hptp-recv/src/main.rs new file mode 100644 index 0000000..1d2e115 --- /dev/null +++ b/hptp-recv/src/main.rs @@ -0,0 +1,5 @@ +extern crate hptp; + +fn main() { + println!("{}", hptp::RECV_GREETING); +} diff --git a/hptp-send/Cargo.toml b/hptp-send/Cargo.toml new file mode 100644 index 0000000..128ccb3 --- /dev/null +++ b/hptp-send/Cargo.toml @@ -0,0 +1,11 @@ +[package] +name = "hptp-send" +description = "Head Pat Transport Protocol, Sending Program" +version = "0.1.0" +authors = ["iitalics", "haskal"] +edition = "2018" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] +hptp = { path = "../hptp" } \ No newline at end of file diff --git a/hptp-send/src/main.rs b/hptp-send/src/main.rs new file mode 100644 index 0000000..c6d4d76 --- /dev/null +++ b/hptp-send/src/main.rs @@ -0,0 +1,5 @@ +extern crate hptp; + +fn main() { + println!("{}", hptp::SEND_GREETING); +} diff --git a/hptp/Cargo.toml b/hptp/Cargo.toml new file mode 100644 index 0000000..957b676 --- /dev/null +++ b/hptp/Cargo.toml @@ -0,0 +1,10 @@ +[package] +name = "hptp" +description = "Head Pat Transport Protocol, Core Library" +version = "0.1.0" +authors = ["iitalics", "haskal"] +edition = "2018" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/hptp/src/lib.rs b/hptp/src/lib.rs new file mode 100644 index 0000000..c7021a4 --- /dev/null +++ b/hptp/src/lib.rs @@ -0,0 +1,2 @@ +pub const SEND_GREETING: &'static str = "*pat*"; +pub const RECV_GREETING: &'static str = "owo"; \ No newline at end of file