rust-dlopen icon indicating copy to clipboard operation
rust-dlopen copied to clipboard

Copy documentation to functions generated by #[derive(WrapperApi)]

Open OpenByteDev opened this issue 4 years ago • 1 comments

If possible #[derive(WrapperApi)] should copy the documentation from the corresponding field to the generated method. An example of this not happening can be seen here:

  • Documentation: https://docs.rs/netcorehost/0.2.2/netcorehost/bindings/hostfxr/struct.HostfxrLib.html
  • Source: https://docs.rs/netcorehost/0.2.2/src/netcorehost/bindings/hostfxr.rs.html#47-322

OpenByteDev avatar Jul 07 '21 00:07 OpenByteDev

I implemented this in a fork for anyone that needs it.

OpenByteDev avatar Jul 07 '22 20:07 OpenByteDev