summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2024-06-26 09:00:43 +0200
committerGitHub <noreply@github.com>2024-06-26 09:00:43 +0200
commit7dc9a7b9107b2607e9870d7fc92fb2d40505f7ef (patch)
tree3b1bfe9958b324b5bd0768b48bfa76aaaa3eecc7 /src
parentafcdb1184799526f20954e475af990254d772cd4 (diff)
parente65cf1d265210738a9b3c0b811fbfeffa0741c39 (diff)
downloadhello-nix-7dc9a7b9107b2607e9870d7fc92fb2d40505f7ef.tar.gz
Merge pull request #2 from aehlig/import-rules
Import rust rules and add a minimal example
Diffstat (limited to 'src')
-rw-r--r--src/rust/hello/TARGETS6
-rw-r--r--src/rust/hello/main.rs3
2 files changed, 9 insertions, 0 deletions
diff --git a/src/rust/hello/TARGETS b/src/rust/hello/TARGETS
new file mode 100644
index 0000000..348e7fe
--- /dev/null
+++ b/src/rust/hello/TARGETS
@@ -0,0 +1,6 @@
+{ "":
+ { "type": ["@", "rust", "rust", "binary"]
+ , "name": ["hello"]
+ , "crate_root": ["main.rs"]
+ }
+}
diff --git a/src/rust/hello/main.rs b/src/rust/hello/main.rs
new file mode 100644
index 0000000..21e1c4e
--- /dev/null
+++ b/src/rust/hello/main.rs
@@ -0,0 +1,3 @@
+fn main() {
+ println!("Hello, World!");
+}