Add build script

This commit is contained in:
greg 2019-12-04 10:17:05 -08:00
parent 30e61fe409
commit 79726fdf64
3 changed files with 31 additions and 1 deletions

16
Cargo.lock generated Normal file
View File

@ -0,0 +1,16 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
[[package]]
name = "cc"
version = "1.0.47"
source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "rust-most"
version = "0.1.0"
dependencies = [
"cc 1.0.47 (registry+https://github.com/rust-lang/crates.io-index)",
]
[metadata]
"checksum cc 1.0.47 (registry+https://github.com/rust-lang/crates.io-index)" = "aa87058dce70a3ff5621797f1506cb837edd02ac4c0ae642b4542dce802908b8"

View File

@ -6,4 +6,5 @@ edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
[build-dependencies]
cc = "1.0.47"

13
build.rs Normal file
View File

@ -0,0 +1,13 @@
use cc::Build;
use std::path::Path;
fn main() {
println!("Running build script");
let most_src = Path::new("vendor/most-5.1.0");
Build::new()
.include(most_src)
.compile("most");
}