feat: initial commit with build system
This commit is contained in:
4
sparse-beacon/Cargo.toml
Normal file
4
sparse-beacon/Cargo.toml
Normal file
@@ -0,0 +1,4 @@
|
||||
[package]
|
||||
name = "sparse-beacon"
|
||||
version = "0.7.0"
|
||||
edition = "2021"
|
||||
8
sparse-beacon/build.rs
Normal file
8
sparse-beacon/build.rs
Normal 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");
|
||||
}
|
||||
}
|
||||
3
sparse-beacon/src/main.rs
Normal file
3
sparse-beacon/src/main.rs
Normal file
@@ -0,0 +1,3 @@
|
||||
fn main() {
|
||||
println!("hi there");
|
||||
}
|
||||
Reference in New Issue
Block a user