Remove all warnings
This commit is contained in:
parent
8577adfdea
commit
70a0ccb0a9
8
build.rs
8
build.rs
@ -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");
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user