hello world

This commit is contained in:
Milo Turner 2020-02-21 16:51:19 -05:00
commit 577b7b0084
10 changed files with 86 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
target

19
Cargo.lock generated Normal file
View File

@ -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",
]

7
Cargo.toml Normal file
View File

@ -0,0 +1,7 @@
[workspace]
members = [
"hptp",
"hptp-send",
"hptp-recv",
]

15
Makefile Normal file
View File

@ -0,0 +1,15 @@
all:
cargo build
clean:
cargo clean
test:
cargo test
c: clean
t: test
.PHONY: all clean test c t

11
hptp-recv/Cargo.toml Normal file
View File

@ -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" }

5
hptp-recv/src/main.rs Normal file
View File

@ -0,0 +1,5 @@
extern crate hptp;
fn main() {
println!("{}", hptp::RECV_GREETING);
}

11
hptp-send/Cargo.toml Normal file
View File

@ -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" }

5
hptp-send/src/main.rs Normal file
View File

@ -0,0 +1,5 @@
extern crate hptp;
fn main() {
println!("{}", hptp::SEND_GREETING);
}

10
hptp/Cargo.toml Normal file
View File

@ -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]

2
hptp/src/lib.rs Normal file
View File

@ -0,0 +1,2 @@
pub const SEND_GREETING: &'static str = "*pat*";
pub const RECV_GREETING: &'static str = "owo";