Remove all warnings

This commit is contained in:
greg 2019-12-06 02:01:59 -08:00
parent 8577adfdea
commit 70a0ccb0a9
2 changed files with 5 additions and 8 deletions

View File

@ -1,7 +1,7 @@
use cc::Build;
use std::path::{PathBuf, Path};
use std::fs::{ReadDir, read_dir};
use std::path::{Path, PathBuf};
use std::fs::read_dir;
fn main() {
println!("Running build script");
@ -28,7 +28,7 @@ fn main() {
}).collect();
for entry in c_files.iter() {
println!("C FILE: {}", entry.display());
println!("Including C source file: {}", entry.display());
}
Build::new()
@ -38,7 +38,5 @@ fn main() {
.flag("-lslang")
.compile("most");
//println!("rustc-cdylib-link-arg=--verbose");
//println!("cargo:rustc-link-search=/usr/lib");
println!("cargo:rustc-link-lib=dylib=slang");
}

View File

@ -1,9 +1,8 @@
#[allow(non_camel_case_types, non_snake_case)]
#[allow(non_camel_case_types, non_snake_case, dead_code)]
mod ffi;
use std::{env, ffi::CString};
fn main() {
println!("Hello, world!");
println!("Printing most usage:");
unsafe {
ffi::most_usage();
}