Giter Club home page Giter Club logo

clamav-rs's People

Contributors

zaddach avatar zsims avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

clamav-rs's Issues

build fails

Hi,

A simple cargo build or cargo test fails, I'm probably missing something.

Compiling clamav-rs v0.5.2 (/home/stefek/github/clamav-rs)
error[E0432]: unresolved import `clamav_sys::cl_error_t`
 --> src/engine.rs:8:5
  |
8 |     cl_error_t,
  |     ^^^^^^^^^^ no `cl_error_t` in the root

error[E0432]: unresolved import `clamav_sys::cl_error_t`
 --> src/error.rs:5:5
  |
5 | use clamav_sys::cl_error_t;
  |     ^^^^^^^^^^^^^^^^^^^^^^ no `cl_error_t` in the root

error[E0432]: unresolved import `clamav_sys::CL_SCAN_HEURISTIC_STRUCTURED_CC`
  --> src/scan_settings.rs:31:5
   |
31 |     CL_SCAN_HEURISTIC_STRUCTURED_CC,
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |     |
   |     no `CL_SCAN_HEURISTIC_STRUCTURED_CC` in the root
   |     help: a similar name exists in the module: `CL_SCAN_HEURISTIC_STRUCTURED`

error[E0432]: unresolved import `clamav_sys::cl_error_t`
  --> src/lib.rs:13:5
   |
13 |     cl_error_t,
   |     ^^^^^^^^^^ no `cl_error_t` in the root

error[E0061]: this function takes 3 arguments but 2 arguments were supplied
   --> src/engine.rs:230:14
    |
230 |         self.scan_descriptor(file.as_raw_fd(), settings)
    |              ^^^^^^^^^^^^^^^ ----------------  -------- supplied 2 arguments
    |              |
    |              expected 3 arguments
    |
note: associated function defined here
   --> src/engine.rs:210:12
    |
210 |     pub fn scan_descriptor(&self, descriptor: i32, settings: &mut ScanSettings, filename: Option< &str >) -> Result<ScanResult, ClamError> {
    |            ^^^^^^^^^^^^^^^ -----  ---------------  ---------------------------  ------------------------

error: aborting due to 5 previous errors

Adopting the crate

hi!

today I ended up porting my fork to the latest clamav 1.2.

I currently pull directly from git in my downstream project, are you interested in adding me as a maintainer on crates.io so I can publish my compatibility fixes there? If you grant me access to this repository I would keep maintaining it on github.com/zaddach/clamav-rs, else I would also be fine to maintain it in my github repo.

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.