fix names

This commit is contained in:
2024-06-20 12:06:18 +03:00
parent 8693e10979
commit 43a07debde
9 changed files with 18 additions and 20 deletions

View File

@@ -11,3 +11,4 @@ crate-type=["cdylib"]
chrono = "0.4.38"
dim_sdk = {path="../../sdk/rust/"}
lazy_static = "1.4.0"
log = "0.4.21"

View File

@@ -1,7 +1,7 @@
# Must match package name in Cargo.toml
PLUGIN_NAME=clock
# `target` or `debug`
TYPE=target
# `release` or `debug`
TYPE=release
build: $(PLUGIN_DIR)/$(PLUGIN_NAME).dim

View File

@@ -4,7 +4,7 @@ use dim_sdk::{plugin_info, DimPlugin};
plugin_info!(
Plug, // Your main global structs name that implements `DimPlugin`
"Clock", // Plugin name
"clock", // Plugin name
"0.0.0", // Plugin Version (leave empty for none)
"GPLv3" // Plugin license (leave empty for none)
);
@@ -26,7 +26,7 @@ impl DimPlugin for Plug {
fn poll(&mut self, f: &mut dim_sdk::CBuffer) -> dim_sdk::Result<()> {
let local: DateTime<Local> = Local::now();
let formatted_time = local.format("%H:%M (%Y-%m-%d)").to_string();
log::info!("Hello from clocky :3");
write!(f, "Time: {}", formatted_time)?;
Ok(())
}