[yew-devel] [PATCH yew-comp 03/20] rrd: move into own module
Dominik Csapak
d.csapak at proxmox.com
Fri May 30 14:21:45 CEST 2025
we'll further divide this to make it more maintainable
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
src/lib.rs | 4 ++--
src/{rrd_graph_new.rs => rrd/graph.rs} | 0
src/rrd/mod.rs | 2 ++
3 files changed, 4 insertions(+), 2 deletions(-)
rename src/{rrd_graph_new.rs => rrd/graph.rs} (100%)
create mode 100644 src/rrd/mod.rs
diff --git a/src/lib.rs b/src/lib.rs
index ff3044a..ba3dac0 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -95,9 +95,9 @@ mod role_selector;
pub use role_selector::RoleSelector;
#[cfg(feature = "rrd")]
-mod rrd_graph_new;
+mod rrd;
#[cfg(feature = "rrd")]
-pub use rrd_graph_new::{RRDGraph, Series};
+pub use rrd::{RRDGraph, Series};
#[cfg(feature = "rrd")]
mod rrd_grid;
diff --git a/src/rrd_graph_new.rs b/src/rrd/graph.rs
similarity index 100%
rename from src/rrd_graph_new.rs
rename to src/rrd/graph.rs
diff --git a/src/rrd/mod.rs b/src/rrd/mod.rs
new file mode 100644
index 0000000..87bc07f
--- /dev/null
+++ b/src/rrd/mod.rs
@@ -0,0 +1,2 @@
+mod graph;
+pub use graph::*;
--
2.39.5
More information about the yew-devel
mailing list