Alien-YARA
view release on metacpan or search on metacpan
lib/Alien/YARA.pm view on Meta::CPAN
$ffi->lib( Alien::YARA->dynamic_libs );
# Now attach your C functions
$ffi->attach( 'yr_initialize' => [] => 'int' );
=head1 DESCRIPTION
This module acts as an encapsulation layer for the YARA C library (C<libyara>).
It checks your host system to see if YARA is already installed via native package
management (like C<apt>, C<homebrew>, or C<pkgconf>). If it cannot find a suitable
global version, it automatically downloads the official YARA source code,
compiles it, and isolates the binaries locally within your Perl library tree.
This makes bundling dependencies for FFI-based modules like L<YaraFFI> perfectly
cross-platform across Linux, macOS, and Windows.
=head1 METHODS
This class inherits all methods from L<Alien::Base>. The most critical ones for FFI usage are:
=head2 dist_dir
( run in 0.754 second using v1.01-cache-2.11-cpan-df04353d9ac )