thrift-dev mailing list archives

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

    [ https://issues.apache.org/jira/browse/THRIFT-2945?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15798207#comment-15798207
] 

ASF GitHub Bot commented on THRIFT-2945:
----------------------------------------

Github user allengeorge commented on the issue:

    https://github.com/apache/thrift/pull/1147
  
    @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: https://issues.apache.org/jira/browse/THRIFT-2945
>             Project: Thrift
>          Issue Type: New Feature
>          Components: Wish List
>            Reporter: Maksim Golov
>            Assignee: Jeremy Fitzhardinge
>
> Work on implementing support for Rust is in progress: https://github.com/maximg/thrift
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
(v6.3.4#6332)

Mime
View raw message