commit 030cb4f753bec2041bf1358fcdc4c9f5a9222cb7 Author: Daniel Flanagan Date: Sun Dec 13 01:23:29 2020 -0600 initial commit 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!"); +}