clamav-sys: Build errors with ClamAV 0.102, bumped requirement to 0.103

pull/1152/head^2
Jonas Zaddach 4 years ago committed by Jonas Zaddach
parent 2fad71fe94
commit 038a870645
  1. 8
      Cargo.toml
  2. 6
      build.rs

@ -1,7 +1,7 @@
[package]
name = "clamav-sys"
description = "ClamAV low level bindings for Rust"
version = "0.0.2"
version = "0.0.3"
authors = ["Jonas Zaddach <jonas.zaddach@gmail.com>"]
edition = "2018"
license = "GPL-2.0"
@ -10,6 +10,10 @@ homepage = "https://github.com/zaddach/clamav-sys/"
repository = "https://github.com/zaddach/clamav-sys/"
[build-dependencies]
bindgen = "0.56.0"
[target.'cfg(unix)'.build-dependencies]
pkg-config = "0.3"
bindgen = "0.53.1"
[target.'cfg(windows)'.build-dependencies]
vcpkg = "0.2.10"

@ -15,7 +15,7 @@
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
// MA 02110-1301, USA.
use std::path::{PathBuf, Path};
use std::path::PathBuf;
use std::env;
@ -40,12 +40,14 @@ fn generate_bindings(customize_bindings: &dyn Fn(bindgen::Builder) -> bindgen::B
.whitelist_function("cl_load")
.whitelist_function("cl_scanfile")
.whitelist_function("cl_retdbdir")
//Whitelist wanted types
.rustified_enum("cl_error_t")
//Whitelist wanted constants
.whitelist_var("CL_SCAN_.*")
.whitelist_var("CL_INIT_DEFAULT")
.whitelist_var("CL_DB_.*")
.header("wrapper.h")
// Tell cargo to invalidate the built crate whenever any of the
@ -105,7 +107,7 @@ fn main() {
#[cfg(unix)]
fn main() {
pkg_config::Config::new()
.atleast_version("0.102")
.atleast_version("0.103")
.probe("libclamav")
.unwrap();

Loading…
Cancel
Save