Open ssrlive opened 6 months ago
The c header file cannot be generated correctly. This is my project. I entered the project root directory and entered the command cbindgen -l c, and got the following output. I did not see the expected function prototype socks_hub_run and so on.
cbindgen -l c
socks_hub_run
#include <stdarg.h> #include <stdbool.h> #include <stdint.h> #include <stdlib.h>
emm, I have found the reason, it's about cfg_if::cfg_if! macro. when I remove it, cbindgen works fine.
cfg_if::cfg_if!
can you fix it as a bug?
There's the cargo expand feature that should work, right?
mark
The c header file cannot be generated correctly. This is my project. I entered the project root directory and entered the command
cbindgen -l c
, and got the following output. I did not see the expected function prototypesocks_hub_run
and so on.