From 17d5bd90ab0562e942d6e237ffb62a5d3193fde3 Mon Sep 17 00:00:00 2001 From: Dandaedre Date: Tue, 23 Apr 2024 15:49:34 +0200 Subject: [PATCH] Initial Setup --- .cargo/config.toml | 2 ++ .gitignore | 5 +++++ Cargo.toml | 18 ++++++++++++++++++ src/main.rs | 3 +++ 4 files changed, 28 insertions(+) create mode 100644 .cargo/config.toml create mode 100644 Cargo.toml create mode 100644 src/main.rs diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000..5db3158 --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,2 @@ +[build] +rustflags = ["-Clink-arg=-fuse-ld=mold", "-Ctarget-cpu=native"] diff --git a/.gitignore b/.gitignore index 3ca43ae..193d30e 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,8 @@ Cargo.lock # MSVC Windows builds of rustc generate these, which store debugging information *.pdb + + +# Added by cargo + +/target diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..271858c --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,18 @@ +cargo-features = ["codegen-backend"] +[package] +name = "ravenous-tools" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] + +[profile.dev] +debug = 0 +codegen-backend = "cranelift" + +[profile.release] +lto = true +codegen-units = 1 +panic = "abort" 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!"); +}