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
+7
View File
@@ -0,0 +1,7 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 4
[[package]]
name = "hello"
version = "0.1.0"
+6
View File
@@ -0,0 +1,6 @@
[package]
name = "hello"
version = "0.1.0"
edition = "2024"
[dependencies]
+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?)");
}
}