cbindgen icon indicating copy to clipboard operation
cbindgen copied to clipboard

Resolve fully-qualified associated types

Open orangeng opened this issue 1 year ago • 4 comments

In the parsing stage, the functionality of the syn::Impl parsing is extended to keep track of associated type implementations in trait Impls.

This info is kept in a hash-map, where the key is a combination of (self type, trait name, associated type name) and the value is the concrete type itself.

In the library/transformation stage, this populated hashmap is then referenced to resolve associated types found.

Closes #106

orangeng avatar Dec 07 '23 08:12 orangeng

@emilio can we move this to completion? it's a great feature? @orangeng can you fix the lints?

mversic avatar Mar 09 '24 08:03 mversic

@emilio is there something blocking the merge of this feature?

mversic avatar Apr 27 '24 05:04 mversic

@emilio do you think we can get this PR merged soon?

mversic avatar May 17 '24 20:05 mversic

We're currently using this in prod. Would love to get this merged in! Without this PR out entire cbindgen flow wouldn't work. Thanks @orangeng for your awesome contribution!

stegaBOB avatar Jun 27 '24 14:06 stegaBOB