fix names
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user