feat: 新增测试 runtime

This commit is contained in:
Del Wang
2025-12-28 18:25:13 +08:00
parent 0f75a10b9f
commit 9bcea79443
9 changed files with 193 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
fn main() {
println!("Hello from OpenWrt (ARMhf)!");
println!("System information (via /proc/version):");
if let Ok(version) = std::fs::read_to_string("/proc/version") {
println!("{}", version);
} else {
println!("Could not read /proc/version (running in simulation?)");
}
}