From c9c15a80c208edbfd296aaedfae027a93d8889c8 Mon Sep 17 00:00:00 2001 From: 191220029 <522023330025@smail.nju.edu.cn> Date: Tue, 24 Dec 2024 18:31:55 +0800 Subject: [PATCH] rename "derive" to "dagrs-derive" --- Cargo.toml | 19 ++++++++++++++++--- {derive => dagrs-derive}/Cargo.toml | 2 +- {derive => dagrs-derive}/src/auto_node.rs | 0 {derive => dagrs-derive}/src/lib.rs | 0 {derive => dagrs-derive}/src/relay.rs | 0 src/lib.rs | 2 +- 6 files changed, 18 insertions(+), 5 deletions(-) rename {derive => dagrs-derive}/Cargo.toml (91%) rename {derive => dagrs-derive}/src/auto_node.rs (100%) rename {derive => dagrs-derive}/src/lib.rs (100%) rename {derive => dagrs-derive}/src/relay.rs (100%) diff --git a/Cargo.toml b/Cargo.toml index f022583..d39c51d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,14 +22,14 @@ keywords = [ ] [workspace] -members = [".", "derive"] +members = [".", "dagrs-derive"] [dependencies] tokio = { version = "1.28", features = ["rt", "sync", "rt-multi-thread"] } log = "0.4" env_logger = "0.10.1" async-trait = "0.1.83" -derive = { path = "derive", optional = true } +dagrs-derive = { path = "dagrs-derive", optional = true } proc-macro2 = "1.0" futures = "0.3.31" @@ -41,8 +41,21 @@ criterion = { version = "0.5.1", features = ["html_reports"] } [features] default = ["derive"] -derive = ["derive/derive"] +derive = ["dagrs-derive/derive"] [[example]] name = "auto_node" required-features = ["derive"] + +[[example]] +name = "auto_relay" +required-features = ["derive"] + +[[example]] +name = "compute_dag" + +[[example]] +name = "custom_node" + +[[example]] +name = "hello_dagrs" \ No newline at end of file diff --git a/derive/Cargo.toml b/dagrs-derive/Cargo.toml similarity index 91% rename from derive/Cargo.toml rename to dagrs-derive/Cargo.toml index c5feb40..cdd0727 100644 --- a/derive/Cargo.toml +++ b/dagrs-derive/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "derive" +name = "dagrs-derive" version = "0.1.0" edition = "2021" license = "MIT OR Apache-2.0" diff --git a/derive/src/auto_node.rs b/dagrs-derive/src/auto_node.rs similarity index 100% rename from derive/src/auto_node.rs rename to dagrs-derive/src/auto_node.rs diff --git a/derive/src/lib.rs b/dagrs-derive/src/lib.rs similarity index 100% rename from derive/src/lib.rs rename to dagrs-derive/src/lib.rs diff --git a/derive/src/relay.rs b/dagrs-derive/src/relay.rs similarity index 100% rename from derive/src/relay.rs rename to dagrs-derive/src/relay.rs diff --git a/src/lib.rs b/src/lib.rs index e2a2051..c5b316c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -20,4 +20,4 @@ pub use tokio; pub use utils::{env::EnvVar, output::Output}; #[cfg(feature = "derive")] -pub use derive::*; +pub use dagrs_derive::*;