Error: unknown type name 'JA4'

Found out the solution : before I was including -I$(PKG_BUILD_DIR)/rust/dist which containing not fully complete rust_bindings.h?.

The solution is including -I$(PKG_BUILD_DIR)/rust/gen which containing full complete rust_bindings.h.

Thanks @satta for pointing out that compilation working in other platform.