feat: initial commit with build system

This commit is contained in:
Andrew Rioux
2025-01-19 20:46:46 -05:00
parent 8c4c6674a1
commit 6b33f1a5ba
12 changed files with 277 additions and 101 deletions

4
sparse-beacon/Cargo.toml Normal file
View File

@@ -0,0 +1,4 @@
[package]
name = "sparse-beacon"
version = "0.7.0"
edition = "2021"

8
sparse-beacon/build.rs Normal file
View File

@@ -0,0 +1,8 @@
fn main() {
if std::env::var("CARGO_CFG_TARGET_OS").unwrap() == "freebsd" {
let freebsd_libs = std::env::var("FREEBSD_LIBS").unwrap();
println!("cargo:rustc-link-arg=--sysroot={freebsd_libs}");
println!("cargo:rustc-link-arg=-L{freebsd_libs}/lib");
println!("cargo:rustc-link-arg=-L{freebsd_libs}/usr/lib");
}
}

View File

@@ -0,0 +1,3 @@
fn main() {
println!("hi there");
}