mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2026-03-21 13:09:11 +00:00
Sync Cargo.toml project metadata attributes (#13824)
This commit is contained in:
@@ -1,11 +1,22 @@
|
||||
[package]
|
||||
name = "{{{packageName}}}"
|
||||
version = "{{{packageVersion}}}"
|
||||
authors = [{{#infoEmail}}"{{{.}}}"{{/infoEmail}}]
|
||||
{{#infoEmail}}
|
||||
authors = ["{{{.}}}"]
|
||||
{{/infoEmail}}
|
||||
{{^infoEmail}}
|
||||
authors = ["OpenAPI Generator team and contributors"]
|
||||
{{/infoEmail}}
|
||||
{{#appDescription}}
|
||||
description = "{{{.}}}"
|
||||
{{/appDescription}}
|
||||
{{#licenseInfo}}
|
||||
license = "{{.}}"
|
||||
{{/licenseInfo}}
|
||||
{{^licenseInfo}}
|
||||
# Override this license by providing a License Object in the OpenAPI.
|
||||
license = "Unlicense"
|
||||
{{/licenseInfo}}
|
||||
edition = "2018"
|
||||
{{#publishRustRegistry}}
|
||||
publish = ["{{.}}"]
|
||||
|
||||
@@ -1,8 +1,35 @@
|
||||
[package]
|
||||
name = "{{{packageName}}}"
|
||||
version = "{{#lambdaVersion}}{{{packageVersion}}}{{/lambdaVersion}}"
|
||||
{{#infoEmail}}
|
||||
authors = ["{{{.}}}"]
|
||||
{{/infoEmail}}
|
||||
{{^infoEmail}}
|
||||
authors = ["OpenAPI Generator team and contributors"]
|
||||
{{/infoEmail}}
|
||||
{{#appDescription}}
|
||||
description = "{{{.}}}"
|
||||
{{/appDescription}}
|
||||
{{#licenseInfo}}
|
||||
license = "{{.}}"
|
||||
{{/licenseInfo}}
|
||||
{{^licenseInfo}}
|
||||
# Override this license by providing a License Object in the OpenAPI.
|
||||
license = "Unlicense"
|
||||
{{/licenseInfo}}
|
||||
edition = "2018"
|
||||
{{#publishRustRegistry}}
|
||||
publish = ["{{.}}"]
|
||||
{{/publishRustRegistry}}
|
||||
{{#repositoryUrl}}
|
||||
repository = "{{.}}"
|
||||
{{/repositoryUrl}}
|
||||
{{#documentationUrl}}
|
||||
documentation = "{{.}}"
|
||||
{{/documentationUrl}}
|
||||
{{#homePageUrl}}
|
||||
homepage = "{{.}}
|
||||
{{/homePageUrl}}
|
||||
|
||||
[dependencies]
|
||||
serde = "^1.0"
|
||||
|
||||
Reference in New Issue
Block a user