Skip to content

Commit

Permalink
refactor: use single crate with features
Browse files Browse the repository at this point in the history
  • Loading branch information
darfink committed Oct 30, 2018
1 parent 30860ff commit f869ce5
Show file tree
Hide file tree
Showing 26 changed files with 221 additions and 564 deletions.
27 changes: 20 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
[workspace]
members = [
"muonline-packet",
"muonline-packet_codec",
"muonline-packet_derive",
"muonline-packet_serialize",
]
[package]
authors = ["Elliott Linder <[email protected]>"]
name = "muonline-packet"
version = "0.1.0"
edition = "2018"

[dependencies]
bincode = { version = "1.0", optional = true }
byteorder = "1.2"
lazy_static = "1.0"
serde = { version = "1.0", optional = true }
smallvec = "0.6"
bytes = { version = "0.4", optional = true }
log = { version = "0.4", optional = true }
tokio-io = { version = "0.1", optional = true }
packet-derive = { version = "0.1", optional = true, path = "./packet-derive" }

[features]
serialize = ["serde", "bincode", "packet-derive"]
codec = ["bytes", "log", "tokio-io"]
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
This is an implementation of the network packet used in the MMORPG Mu Online.
It supports C1/C2 XOR encryption as well as the symmetric-key algorithm used in C3/C4 packets.

## Crates
## Features

- *Packet*: Implementation of the packet itself
- *Codec*: Implementation of a Tokio codec using *Packet*.
- *Derive*: Macro for defining custom *Packet* structures.
- *Serialize*: Utilities for serializing *Packet* data.
- *serialize*: Includes derive, serialization and deserializaition.
- *codec*: Includes a Tokio IO codec ready for use.
20 changes: 0 additions & 20 deletions muonline-packet/Cargo.toml

This file was deleted.

2 changes: 0 additions & 2 deletions muonline-packet_codec/.gitignore

This file was deleted.

12 changes: 0 additions & 12 deletions muonline-packet_codec/Cargo.toml

This file was deleted.

1 change: 0 additions & 1 deletion muonline-packet_serialize/.gitignore

This file was deleted.

14 changes: 0 additions & 14 deletions muonline-packet_serialize/Cargo.toml

This file was deleted.

33 changes: 0 additions & 33 deletions muonline-packet_serialize/src/integer.rs

This file was deleted.

87 changes: 0 additions & 87 deletions muonline-packet_serialize/src/lib.rs

This file was deleted.

60 changes: 0 additions & 60 deletions muonline-packet_serialize/src/macros.rs

This file was deleted.

94 changes: 0 additions & 94 deletions muonline-packet_serialize/src/string.rs

This file was deleted.

Loading

0 comments on commit f869ce5

Please sign in to comment.