summaryrefslogtreecommitdiffstats
path: root/samples/rust/hostprogs/single.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--samples/rust/hostprogs/single.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/samples/rust/hostprogs/single.rs b/samples/rust/hostprogs/single.rs
new file mode 100644
index 000000000..8c48a1193
--- /dev/null
+++ b/samples/rust/hostprogs/single.rs
@@ -0,0 +1,12 @@
+// SPDX-License-Identifier: GPL-2.0
+
+//! Rust single host program sample.
+
+mod a;
+mod b;
+
+fn main() {
+ println!("Hello world!");
+
+ a::f(b::CONSTANT);
+}