From d188a5f5ea0b6498eecd6a9c8239cb2d55341f81 Mon Sep 17 00:00:00 2001 From: open-trade Date: Wed, 4 Mar 2020 14:10:58 +0800 Subject: [PATCH] initialize --- .gitignore | 2 ++ .gitmodules | 3 +++ Cargo.toml | 13 +++++++++++++ libs/p2p | 1 + src/main.rs | 3 +++ 5 files changed, 22 insertions(+) create mode 100644 .gitignore create mode 100644 .gitmodules create mode 100644 Cargo.toml create mode 160000 libs/p2p create mode 100644 src/main.rs diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..53eaa21 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/target +**/*.rs.bk diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..0f84600 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "libs/p2p"] + path = libs/p2p + url = https://github.com/open-trade/p2p diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..7103c82 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,13 @@ +[package] +name = "hbbs" +version = "0.1.0" +authors = ["open-trade "] +edition = "2018" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] +p2p = { path = "libs/p2p" } + +[workspace] +members = ["libs/p2p"] diff --git a/libs/p2p b/libs/p2p new file mode 160000 index 0000000..24cffa9 --- /dev/null +++ b/libs/p2p @@ -0,0 +1 @@ +Subproject commit 24cffa9777c7984a4e78e933e78507e63e5527d2 diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +}