You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Jens Geyer (Jira)" <ji...@apache.org> on 2021/09/11 12:31:02 UTC
[jira] [Closed] (THRIFT-4098) Support user-defined output
namespaces in generated Rust modules
[ https://issues.apache.org/jira/browse/THRIFT-4098?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jens Geyer closed THRIFT-4098.
------------------------------
> Support user-defined output namespaces in generated Rust modules
> ----------------------------------------------------------------
>
> Key: THRIFT-4098
> URL: https://issues.apache.org/jira/browse/THRIFT-4098
> Project: Thrift
> Issue Type: Improvement
> Components: Rust - Compiler
> Reporter: Allen George
> Assignee: Allen George
> Priority: Major
> Fix For: 0.15.0
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> Currently the Rust compiler assumes that all generated modules are rooted at the top-level of your crate (i.e. at {{lib.rs}}). There are many useful cases where you want to control exactly where the generated code lives (for example - you may want it to be inside another sub-module you control); typically this is done via thrift {{namespace}} definitions. The compiler currently ignores these declarations. It should be changed to:
> # recognize them if they exist, and generate code with the proper module paths
> # default to the current behavior if no {{namespace}} declarations exist
> # work properly in both cases with service inheritance.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)