Added lua function to get the current hostname
All checks were successful
Build and deploy automation_rs / Build automation_rs (push) Successful in 7m47s
Build and deploy automation_rs / Build Docker image (push) Successful in 57s
Build and deploy automation_rs / Deploy Docker container (push) Has been skipped

This makes it possible to set options depending on what machine we are
running
This commit is contained in:
2024-05-03 19:37:16 +02:00
parent 631fac5061
commit d085e536ca
4 changed files with 62 additions and 12 deletions

33
Cargo.lock generated
View File

@@ -85,6 +85,7 @@ dependencies = [
"eui48",
"futures",
"google-home",
"hostname",
"impl_cast",
"indexmap 2.0.0",
"mlua",
@@ -689,6 +690,17 @@ dependencies = [
"windows-sys 0.52.0",
]
[[package]]
name = "hostname"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f9c7c7c8ac16c798734b8a24560c1362120597c40d5e1459f09498f8f6c8f2ba"
dependencies = [
"cfg-if",
"libc",
"windows 0.52.0",
]
[[package]]
name = "http"
version = "0.2.9"
@@ -790,7 +802,7 @@ dependencies = [
"iana-time-zone-haiku",
"js-sys",
"wasm-bindgen",
"windows",
"windows 0.48.0",
]
[[package]]
@@ -2304,6 +2316,25 @@ dependencies = [
"windows-targets 0.48.1",
]
[[package]]
name = "windows"
version = "0.52.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e48a53791691ab099e5e2ad123536d0fff50652600abaf43bbf952894110d0be"
dependencies = [
"windows-core",
"windows-targets 0.52.5",
]
[[package]]
name = "windows-core"
version = "0.52.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "33ab640c8d7e35bf8ba19b884ba838ceb4fba93a4e8c65a9059d08afcfc683d9"
dependencies = [
"windows-targets 0.52.5",
]
[[package]]
name = "windows-sys"
version = "0.48.0"