mirror of
https://github.com/lifegpc/pixiv_downloader.git
synced 2026-06-06 05:49:01 +08:00
Remove unwanted build dependents for default build
This commit is contained in:
@@ -26,11 +26,11 @@ urlparse = "0.7"
|
||||
utf16string = { version= "0.2", optional = true }
|
||||
|
||||
[build-dependencies]
|
||||
cmake = "0.1"
|
||||
bindgen = "0.59"
|
||||
bindgen = { version = "0.59", optional = true }
|
||||
cmake = { version = "0.1", optional = true }
|
||||
|
||||
[features]
|
||||
exif = ["c_fixed_string", "link-cplusplus", "int-enum", "utf16string"]
|
||||
exif = ["bindgen", "c_fixed_string", "cmake", "link-cplusplus", "int-enum", "utf16string"]
|
||||
|
||||
[target.'cfg(windows)'.dependencies]
|
||||
winapi = { version = "0.3.9", features = ["winnls", "stringapiset"] }
|
||||
|
||||
7
build.rs
7
build.rs
@@ -1,10 +1,17 @@
|
||||
#[cfg(feature = "bindgen")]
|
||||
extern crate bindgen;
|
||||
#[cfg(feature = "cmake")]
|
||||
extern crate cmake;
|
||||
|
||||
#[cfg(any(feature = "exif"))]
|
||||
use std::env;
|
||||
#[cfg(any(feature = "exif"))]
|
||||
use std::fs::create_dir;
|
||||
#[cfg(any(feature = "exif"))]
|
||||
use std::fs::File;
|
||||
#[cfg(any(feature = "exif"))]
|
||||
use std::io::Read;
|
||||
#[cfg(any(feature = "exif"))]
|
||||
use std::path::PathBuf;
|
||||
|
||||
fn main() {
|
||||
|
||||
Reference in New Issue
Block a user