Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up python bindings generator, and add support for sequences. #214

Merged
merged 1 commit into from
Sep 29, 2020

Commits on Sep 29, 2020

  1. Clean up python bindings generator, add support for remaining data ty…

    …pes.
    
    This is a significant refactor of the python bindings generator, with
    the aim of making the generated code a bit cleaner and of better hiding
    many of our implementation details from the public API. To help prove
    out the approach, it adds previously-missing support for data types like
    sequences and maps.
    
    We use the new `TypeUniverse` structure to iterate over all types used
    in the interface, and generate various internal helper functions as
    methods on our utility classes. This keeps them out of the public API
    as seen by consumers.
    
    For example, for each type that lowers into a `RustBuffer`, there is
    a corresponding `RustBuffer.allocFrom{{ type_name }}` staticmethod for
    lowering it and a `RustBuffer.consumeInto{{ type_name }}` for lifting it.
    rfk committed Sep 29, 2020
    Configuration menu
    Copy the full SHA
    4d662d5 View commit details
    Browse the repository at this point in the history