thrift-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (THRIFT-2945) Implement support for Rust language
Date Wed, 04 Jan 2017 12:59:58 GMT


ASF GitHub Bot commented on THRIFT-2945:

Github user allengeorge commented on the issue:
    @jsgf For structs it's more involved than it appears - perhaps because of the way I've
chosen to represent them. Here are some factors that cause issues:
    1. I represent `required` fields as bare types (i.e. no `Option` wrapper). This means
that if the user doesn't specify them in the IDL const declaration then `rustc` will fail.
    2. I'm not sure how to handle a case where a user specifies a single struct field in the
IDL const declaration but ignores the others. I *could* conceivably use ".." but (see below)
    3. I currently don't implement a `Defaults` trait for structs. Even if I did generate
one, I'd only do it for structs with all optional or opt-in-req-out fields

> Implement support for Rust language
> -----------------------------------
>                 Key: THRIFT-2945
>                 URL:
>             Project: Thrift
>          Issue Type: New Feature
>          Components: Wish List
>            Reporter: Maksim Golov
>            Assignee: Jeremy Fitzhardinge
> Work on implementing support for Rust is in progress:
by Simon GĂ©nier and myself.
> It will probably take quite some time to complete. Please keep us updated if there are
changes related to our work.

This message was sent by Atlassian JIRA

View raw message