forked from loafle/openapi-generator-original
[Rust Server] Cargo Metadata Configuration (#8519)
* [Rust Server] Support Cargo Metadata Configuration This adds support for publish, repository, documentation and homepage metadata. * [Rust Server] Test Cargo Metadata configuration
This commit is contained in:
parent
328cadb070
commit
c15a4375e2
@ -6,3 +6,4 @@ generateAliasAsModel: true
|
||||
additionalProperties:
|
||||
hideGenerationTimestamp: "true"
|
||||
packageName: petstore-with-fake-endpoints-models-for-testing
|
||||
publishRustRegistry: crates-io
|
||||
|
@ -7,6 +7,18 @@ description = "{{{appDescription}}}"
|
||||
{{/appDescription}}
|
||||
license = "Unlicense"
|
||||
edition = "2018"
|
||||
{{#publishRustRegistry}}
|
||||
publish = ["{{publishRustRegistry}}"]
|
||||
{{/publishRustRegistry}}
|
||||
{{#repositoryUrl}}
|
||||
repository = "{{repositoryUrl}}"
|
||||
{{/repositoryUrl}}
|
||||
{{#documentationUrl}}
|
||||
documentation = "{{documentationUrl}}"
|
||||
{{/documentationUrl}}
|
||||
{{#homePageUrl}}
|
||||
homepage = "{{homePageUrl}}
|
||||
{{/homePageUrl}}
|
||||
|
||||
[features]
|
||||
default = ["client", "server"]
|
||||
|
@ -5,6 +5,7 @@ authors = []
|
||||
description = "This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\"
|
||||
license = "Unlicense"
|
||||
edition = "2018"
|
||||
publish = ["crates-io"]
|
||||
|
||||
[features]
|
||||
default = ["client", "server"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user