Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Issues
  • #3331
Closed
Open
Issue created Jul 10, 2019 by Administrator@rootContributor

[REQ] [Rust client] Generated code should be compatible with Rust 2018 edition

Created by: bcourtine

Is your feature request related to a problem? Please describe.

Generated code is not compatible with Rust 2018+ edition. If edition = "2018" is added in Cargo.toml, code fails to compile.

Describe the solution you'd like

Compilation errors are related to imports. Imports starting with :: (::models, ::apis) prefix must be prefixed with "crate::" (crate::models, crate::apis).

Note : this replacement is backward compatible.

Describe alternatives you've considered

Additional context

Assignee
Assign to
Time tracking