crabtw/rust-bindgen — pull request #7 by grahame (2012-04-15 15:40:17+00:00)
Title: Recursive type support

This patch adds recursive type support, with one notable exception; it can't cope with this sort of problem:

type xmlSchemaAttributePtr = *xmlSchemaAttribute;

type struct__xmlSchemaAttribute = {
blah: xmlSchemaAttributePtr
};

I think we need to ask clang in conv_decl_ty what the underlying type of the typedef'd thing is, and then perhaps just emit that and skip the typedef. Otherwise though this patch allows me to bind libxml2 (skipping one problematic header) with no known issues.