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 cc::Build;
|
||||||
use std::path::{PathBuf, Path};
|
use std::path::{Path, PathBuf};
|
||||||
use std::fs::{ReadDir, read_dir};
|
use std::fs::read_dir;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
println!("Running build script");
|
println!("Running build script");
|
||||||
@ -28,7 +28,7 @@ fn main() {
|
|||||||
}).collect();
|
}).collect();
|
||||||
|
|
||||||
for entry in c_files.iter() {
|
for entry in c_files.iter() {
|
||||||
println!("C FILE: {}", entry.display());
|
println!("Including C source file: {}", entry.display());
|
||||||
}
|
}
|
||||||
|
|
||||||
Build::new()
|
Build::new()
|
||||||
@ -38,7 +38,5 @@ fn main() {
|
|||||||
.flag("-lslang")
|
.flag("-lslang")
|
||||||
.compile("most");
|
.compile("most");
|
||||||
|
|
||||||
//println!("rustc-cdylib-link-arg=--verbose");
|
|
||||||
//println!("cargo:rustc-link-search=/usr/lib");
|
|
||||||
println!("cargo:rustc-link-lib=dylib=slang");
|
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;
|
mod ffi;
|
||||||
use std::{env, ffi::CString};
|
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
println!("Hello, world!");
|
println!("Printing most usage:");
|
||||||
unsafe {
|
unsafe {
|
||||||
ffi::most_usage();
|
ffi::most_usage();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user