no field `tail` on type `&YR_MATCHES`
jiabochao opened this issue · comments
error[E0609]: no field `head` on type `&YR_MATCHES`
--> /home/bochao/.cargo/registry/src/mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd/yara-sys-0.6.0/src/lib.rs:41:14
|
41 | self.head
| ^^^^ unknown field
|
= note: available fields are: `count`, `__bindgen_anon_1`, `__bindgen_anon_2`
Hello, thanks for submitting an issue.
Which Yara version are you using?
@Hugal31 thanks, i just solved this proplem by setting the environment variable YARA_INCLUDE_DIR to the directory containing the yara.h file. 15#issuecomment-802657077
and i found that a }
missing in the example code of the README.md
Thanks, I've fixed it.
I also added an error if you are trying to build with the (default) bindgen feature with an old version of Yara.