From 5dfa28e8163665760705b70687000169957578f7 Mon Sep 17 00:00:00 2001 From: Guillaume Binet Date: Mon, 2 Dec 2024 08:31:03 -0600 Subject: [PATCH] quick fix on project generation. Added crate:: for cumsgs generation. --- templates/cu_full/copperconfig.ron | 4 ++-- templates/cu_full/src/logreader.rs | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/templates/cu_full/copperconfig.ron b/templates/cu_full/copperconfig.ron index 59e3b19c6..f936e25fe 100644 --- a/templates/cu_full/copperconfig.ron +++ b/templates/cu_full/copperconfig.ron @@ -16,7 +16,7 @@ ], // Makes a connection from the source to the task and from the task to the sink. cnx: [ - (src: "src", dst: "t-0", msg: "tasks::MyPayload"), - (src: "t-0", dst: "sink", msg: "tasks::MyPayload"), + (src: "src", dst: "t-0", msg: "crate::tasks::MyPayload"), + (src: "t-0", dst: "sink", msg: "crate::tasks::MyPayload"), ], ) diff --git a/templates/cu_full/src/logreader.rs b/templates/cu_full/src/logreader.rs index 678aa7b7b..eb81c71e4 100644 --- a/templates/cu_full/src/logreader.rs +++ b/templates/cu_full/src/logreader.rs @@ -1,11 +1,10 @@ pub mod tasks; -use cu29::cutask::CuMsg as _CuMsg; use cu29_derive::gen_cumsgs; use cu29_export::run_cli; -/// This will create the CuMsgs that is specific to your copper project. -/// It is used to instruct the log reader how to decode the logs. +// This will create the CuMsgs that is specific to your copper project. +// It is used to instruct the log reader how to decode the logs. gen_cumsgs!("copperconfig.ron"); fn main() {