This doesn't quite work yet
This commit is contained in:
parent
cccb12ddba
commit
fac14c9449
4
build.rs
4
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");
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user