From 030cb4f753bec2041bf1358fcdc4c9f5a9222cb7 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Sun, 13 Dec 2020 01:23:29 -0600 Subject: [PATCH] initial commit --- .gitignore | 1 + Cargo.lock | 5 +++++ Cargo.toml | 12 ++++++++++++ makefile | 5 +++++ src/main.rs | 3 +++ 5 files changed, 26 insertions(+) create mode 100644 .gitignore create mode 100644 Cargo.lock create mode 100644 Cargo.toml create mode 100644 makefile create mode 100644 src/main.rs diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ea8c4bf --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/target diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 0000000..d51020d --- /dev/null +++ b/Cargo.lock @@ -0,0 +1,5 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +[[package]] +name = "hello-world" +version = "0.1.0" diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..ee95d3e --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,12 @@ +[package] +name = "hello-world" +version = "0.1.0" +authors = ["Daniel Flanagan "] +edition = "2018" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] + +[target.arm-unknown-linux-gnueabihf] +linker = "arm-linux-gnueabihf-gcc" diff --git a/makefile b/makefile new file mode 100644 index 0000000..dee96cd --- /dev/null +++ b/makefile @@ -0,0 +1,5 @@ +.PHONE: default +default: + # Make sure that `cross` is installed (`cargo install cross`) + # and that docker is running + cross build --target arm-unknown-linux-gnueabihf diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +}