Skip to content

Commit

Permalink
rename edcode-macros to edcode-derive
Browse files Browse the repository at this point in the history
  • Loading branch information
0123456789-jpg committed Mar 20, 2024
1 parent cdc38ad commit b7dfef3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "rimecraft-edcode-macros"
name = "rimecraft-edcode-derive"
version = "0.1.0"
edition = "2021"
authors = ["C191239 <[email protected]>"]
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions crates/util/edcode/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ maintenance = { status = "passively-maintained" }
[dependencies]
bytes = "1.5"
serde = { version = "1.0", optional = true }
rimecraft-edcode-macros = { path = "../edcode-macros", optional = true }
rimecraft-edcode-derive = { path = "../edcode-derive", optional = true }
# custom formats
fastnbt = { version = "2.4", optional = true }
serde_json = { version = "1.0", optional = true }
Expand All @@ -25,7 +25,7 @@ glam = { version = "0.25", optional = true }
[features]
# default = ["serde", "nbt", "json", "uuid", "glam"]
serde = ["dep:serde"]
macros = ["dep:rimecraft-edcode-macros"]
derive = ["dep:rimecraft-edcode-derive"]
# custom formats
fastnbt = ["serde", "dep:fastnbt"]
json = ["serde", "dep:serde_json"]
Expand Down
4 changes: 2 additions & 2 deletions crates/util/edcode/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ use std::io;

pub use bytes;

#[cfg(feature = "macros")]
pub use rimecraft_edcode_macros::Encode;
#[cfg(feature = "derive")]
pub use rimecraft_edcode_derive::Encode;

/// Describes types that can be encoded into a packet buffer.
pub trait Encode {
Expand Down

0 comments on commit b7dfef3

Please sign in to comment.