| Crates.io | embree3-arm |
| lib.rs | embree3-arm |
| version | 0.3.10 |
| created_at | 2024-10-30 13:47:32.98659+00 |
| updated_at | 2024-10-30 16:08:01.889008+00 |
| description | A wrapper for the Embree ray tracing kernels. |
| homepage | https://github.com/Twinklebear/embree-rs |
| repository | https://github.com/Twinklebear/embree-rs |
| max_upload_size | |
| id | 1428544 |
| size | 205,772 |
Rust bindings to Embree. Forked from embree-rs, and relinked by dynamical lib generated from Embree on MacOS with arm architecture. Only apply for using the embree-rs in v0.3.8 edition on MacOS arm.
When trying to extern crate embree3_arm as embree, follow these steps:
build.rs in the workspace of the rust program:use std::env;
use std::path::PathBuf;
fn main() {
println!("{:?}", env::var("EMBREE_DIR"));
if let Ok(e) = env::var("EMBREE_DIR") {
let mut embree_dir = PathBuf::from(e);
embree_dir.push("lib");
println!("cargo:rustc-link-search=native={}", embree_dir.display());
println!("cargo:rerun-if-env-changed=EMBREE_DIR");
}
println!("cargo:rustc-link-lib=embree3");
}
export EMBREE_DIR=`pwd`
lib folder to the root dir of rust program.
cargo build && cargo run, then copy libembree3.3.13.4.dylib, libembree3.3.dylib and libembree3.dylib to ./target/debug or ./target/release
try cargo run again.