A simple ClamAV client to send files, in-memory data, and data streams to clamd
for antivirus scanning.
It provides a synchronous API as well as asynchronous functions for both Tokio and async-std.
Check out the examples below, the integration tests, or the API docs for more information on how to use this library.
Add this to your Cargo.toml
:
[dependencies]
clamav-client = "0.5.1"
To use the async
functions in clamav_client::tokio
, add this to your Cargo.toml
:
[dependencies]
clamav-client = { version = "0.5.1", features = ["tokio"] }
To scan Tokio streams, enable the tokio-stream
feature instead and add this to your Cargo.toml
:
[dependencies]
clamav-client = { version = "0.5.1", features = ["tokio-stream"] }
Support for async-std
is also available by enabling the async-std
feature:
[dependencies]
clamav-client = { version = "0.5.1", features = ["async-std"] }
The *_socket
and *_tcp
functions have been deprecated in