Files
clamav/libclamav_rust
Micah Snyder 6814f71448 CMake+Rust: Don't rebuild Rust dependencies
Right now, each Rust-based target added in CMake is being built in its
own directory under the build path. This causes Rust to build each
module from scratch, meaning any dependencies they have in common are
built twice.

The solution in this commit is to specify the top level build directory
as the target directory for every Rust build and test.

Note this also changes where the `clamav_rust.h` file is generated.  It
is now also placed in the top-level build directory, instead of under the
`build/libclamav_rust` directory. That's a bit of a side-effect, and
could be rectified if needed, but it appears to have no ill-effects.
It's the same location that we drop the clamav-types.h file, so I think
it's fine, for now. Note that `clamav_rust.h` is not a public header,
it's just so libclamav functions can call into libclamav_rust functions.
2022-09-16 13:05:48 -07:00
..
2022-09-07 21:39:46 -07:00