Move project library crates to git submodules to make life a bit easier

This commit is contained in:
Nobody 2022-05-28 18:20:50 +05:00
parent 7215fbbd92
commit 88657e7d11
8 changed files with 22 additions and 6 deletions

12
.gitmodules vendored Normal file
View File

@ -0,0 +1,12 @@
[submodule "proto"]
path = proto
url = ../proto
[submodule "mhycrypt"]
path = mhycrypt
url = ../mhycrypt
[submodule "kcp"]
path = kcp
url = ../kcp
[submodule "lua_serde"]
path = lua_serde
url = ../lua_serde

View File

@ -9,10 +9,10 @@ edition = "2018"
raw_packet_dump = [] raw_packet_dump = []
[dependencies] [dependencies]
kcp = { path = "../kcp" } kcp = { path = "kcp" }
mhycrypt = { path = "../mhycrypt" } mhycrypt = { path = "mhycrypt" }
proto = { path = "../proto" } proto = { path = "proto" }
lua_serde = { path = "../lua_serde" } lua_serde = { path = "lua_serde" }
packet-processor-macro = { path = "packet-processor-macro" } packet-processor-macro = { path = "packet-processor-macro" }
packet-processor = { path = "packet-processor" } packet-processor = { path = "packet-processor" }

View File

@ -23,7 +23,7 @@ Also you'll need to install Rust.
## Preparing the workplace ## Preparing the workplace
Clone / download and unzip all project repositories (`proto`, `mhycrypt`, `RustySamovar`, `kcp`, `lua_serde`) into the same directory. Clone repository with `git clone --recurse-submodules <repo_url>`. This is required to initialize all submodules.
## Retrieving protocol definitions ## Retrieving protocol definitions

1
kcp Submodule

@ -0,0 +1 @@
Subproject commit 1b8ded3cac58db18f8459298e1fbf7d55d5310ef

1
lua_serde Submodule

@ -0,0 +1 @@
Subproject commit ab1544174d96ac0fbd4a78e7fa3af488b563b97a

1
mhycrypt Submodule

@ -0,0 +1 @@
Subproject commit 230a4e03e60c6d20c31f873911e285ca0222c49f

View File

@ -6,5 +6,5 @@ edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies] [dependencies]
proto = { path = "../../proto" } proto = { path = "../proto" }
prost = "0.8" prost = "0.8"

1
proto Submodule

@ -0,0 +1 @@
Subproject commit 2c10e95978ad7c291bbc919044870f7e627f35ff