setup cargo run to use containerized build tools that are not rust tools
This commit is contained in:
@@ -23,6 +23,7 @@ runner = "espflash flash --monitor --chip esp32c6 --baud 921600 --partition-tabl
|
||||
CHRONO_TZ_TIMEZONE_FILTER = "UTC|America/New_York|America/Chicago|America/Los_Angeles|Europe/London|Europe/Berlin|Europe/Paris|Asia/Tokyo|Asia/Shanghai|Asia/Kolkata|Australia/Sydney|America/Sao_Paulo|Africa/Johannesburg|Asia/Dubai|Pacific/Auckland"
|
||||
CARGO_WORKSPACE_DIR = { value = "", relative = true }
|
||||
ESP_LOG = "info"
|
||||
PATH = { value = "../bin:/usr/bin:/usr/local/bin", force = true, relative = true }
|
||||
|
||||
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
use std::process::Command;
|
||||
use std::{collections::VecDeque, env, process::Command};
|
||||
|
||||
use vergen::EmitBuilder;
|
||||
|
||||
@@ -50,6 +50,9 @@ fn linker_be_nice() {
|
||||
}
|
||||
|
||||
fn main() {
|
||||
if Command::new("podman").arg("--version").output().is_err() {
|
||||
println!("Could not find `podman` installation, assuming the developer has setup all required tool for build manually! … ")
|
||||
}
|
||||
webpack();
|
||||
linker_be_nice();
|
||||
let _ = EmitBuilder::builder().all_git().all_build().emit();
|
||||
|
2
rust/src/webserver/.gitignore
vendored
Normal file
2
rust/src/webserver/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
index.html.gz
|
||||
bundle.js.gz
|
2
rust/src_webpack/.gitignore
vendored
Normal file
2
rust/src_webpack/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
bundle.js
|
||||
index.html
|
Reference in New Issue
Block a user