make rust analyzer's "go to definition" on C loaned, owned, etc. types go to corresponding decl_c_type!(...)
#785
Labels
internal
Changes not included in the changelog
Describe the feature
Working on zenoh-c it's frequently necessary to know how rust and c-wrapper types are related.
For example:
z_owned_bytes_t
in the codeThis may be disappointing to anyone who is trying to understand how zenoh-c works. This will slowdown our own performance, making learning curve for zenoh-c internals too steep for new developers and especially for ones who occasionally need to fix something.
The proposal is to declare some internal types in opaque_types instead of the final ones. And declare real API types
z_owned_bytes_t
,z_loaned_bytes_t
, etc. insidedecl_c_type!
macro. In this case "go to definition" will go directly to this macro call with all necessary informationThe text was updated successfully, but these errors were encountered: