diff --git a/build.rs b/build.rs index c35693b..a620682 100644 --- a/build.rs +++ b/build.rs @@ -5,9 +5,11 @@ use std::path::Path; fn main() { println!("Running build script"); - let most_src = Path::new("vendor/most-5.1.0"); + let most_src = Path::new("vendor/most-5.1.0/src"); + println!("Most src path: {}", most_src.display()); Build::new() + .files(most_src) .include(most_src) .compile("most"); } diff --git a/src/main.rs b/src/main.rs index e7a11a9..1bc91d5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,10 @@ +#[allow(non_camel_case_types, non_snake_case)] +mod ffi; +use std::{env, ffi::CString}; + fn main() { println!("Hello, world!"); + unsafe { + ffi::most_usage(); + } }