aboutsummaryrefslogtreecommitdiff
path: root/examples/hello_world_zig
diff options
context:
space:
mode:
Diffstat (limited to 'examples/hello_world_zig')
-rw-r--r--examples/hello_world_zig/.gitignore5
-rw-r--r--examples/hello_world_zig/project.conf5
-rw-r--r--examples/hello_world_zig/src/main.zig6
3 files changed, 16 insertions, 0 deletions
diff --git a/examples/hello_world_zig/.gitignore b/examples/hello_world_zig/.gitignore
new file mode 100644
index 0000000..636c6b9
--- /dev/null
+++ b/examples/hello_world_zig/.gitignore
@@ -0,0 +1,5 @@
+# Compiled sibs files
+sibs-build/
+compile_commands.json
+tests/sibs-build/
+tests/compile_commands.json
diff --git a/examples/hello_world_zig/project.conf b/examples/hello_world_zig/project.conf
new file mode 100644
index 0000000..6ad2e1b
--- /dev/null
+++ b/examples/hello_world_zig/project.conf
@@ -0,0 +1,5 @@
+[package]
+name = "hello_world_zig"
+type = "executable"
+version = "0.1.0"
+platforms = ["any"]
diff --git a/examples/hello_world_zig/src/main.zig b/examples/hello_world_zig/src/main.zig
new file mode 100644
index 0000000..c74a3de
--- /dev/null
+++ b/examples/hello_world_zig/src/main.zig
@@ -0,0 +1,6 @@
+const warn = @import("std").debug.warn;
+
+pub fn main() void
+{
+ warn("Hello, world!\n");
+}