summaryrefslogtreecommitdiffstats
path: root/samples/rust/hostprogs/single.rs
diff options
context:
space:
mode:
Diffstat (limited to 'samples/rust/hostprogs/single.rs')
-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 0000000000..8c48a11933
--- /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);
+}