Skip to content

[Rust] Generated code produces warnings about snake case / camel case #5053

@andygrove

Description

@andygrove

Language: Rust
OS: Ubuntu 16.04
GCC: 5.4.0

Because flatbuffers files are intended for use across multiple languages, there is no guarantee that the generated code will use Rust style snake case etc, leading to compiler warnings.

It would be good to have the option of either generating idiomatic Rust code, or generating these directives to disable the warnings:

#![allow(non_snake_case)]
#![allow(non_camel_case_types)]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions