Sync Cargo.toml project metadata attributes (#13824)

This commit is contained in:
John Vandenberg
2022-10-28 18:00:02 +08:00
committed by GitHub
parent cd5c6586a4
commit 3d578164e8
13 changed files with 61 additions and 9 deletions

View File

@@ -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 = ["{{.}}"]

View File

@@ -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"

View File

@@ -2,6 +2,8 @@
name = "petstore-hyper"
version = "1.0.0"
authors = ["OpenAPI Generator team and contributors"]
description = "This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters."
license = "Apache-2.0"
edition = "2018"
[dependencies]

View File

@@ -2,6 +2,8 @@
name = "petstore-reqwest-async"
version = "1.0.0"
authors = ["OpenAPI Generator team and contributors"]
description = "This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters."
license = "Apache-2.0"
edition = "2018"
[dependencies]

View File

@@ -2,6 +2,8 @@
name = "petstore-reqwest-awsv4signature"
version = "1.0.0"
authors = ["OpenAPI Generator team and contributors"]
description = "This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters."
license = "Apache-2.0"
edition = "2018"
[dependencies]

View File

@@ -2,6 +2,8 @@
name = "petstore-reqwest"
version = "1.0.0"
authors = ["OpenAPI Generator team and contributors"]
description = "This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters."
license = "Apache-2.0"
edition = "2018"
[dependencies]

View File

@@ -1,8 +1,9 @@
[package]
name = "multipart-v3"
version = "1.0.7"
authors = []
authors = ["OpenAPI Generator team and contributors"]
description = "API under test"
# Override this license by providing a License Object in the OpenAPI.
license = "Unlicense"
edition = "2018"

View File

@@ -1,8 +1,9 @@
[package]
name = "no-example-v3"
version = "0.0.1"
authors = []
authors = ["OpenAPI Generator team and contributors"]
description = "No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)"
# Override this license by providing a License Object in the OpenAPI.
license = "Unlicense"
edition = "2018"

View File

@@ -1,8 +1,9 @@
[package]
name = "openapi-v3"
version = "1.0.7"
authors = []
authors = ["OpenAPI Generator team and contributors"]
description = "API under test"
# Override this license by providing a License Object in the OpenAPI.
license = "Unlicense"
edition = "2018"

View File

@@ -1,8 +1,9 @@
[package]
name = "ops-v3"
version = "0.0.1"
authors = []
authors = ["OpenAPI Generator team and contributors"]
description = "No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)"
# Override this license by providing a License Object in the OpenAPI.
license = "Unlicense"
edition = "2018"

View File

@@ -1,9 +1,9 @@
[package]
name = "petstore-with-fake-endpoints-models-for-testing"
version = "1.0.0"
authors = []
authors = ["OpenAPI Generator team and contributors"]
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"
license = "Apache-2.0"
edition = "2018"
publish = ["crates-io"]

View File

@@ -1,8 +1,9 @@
[package]
name = "ping-bearer-auth"
version = "1.0.0"
authors = []
authors = ["OpenAPI Generator team and contributors"]
description = "No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)"
# Override this license by providing a License Object in the OpenAPI.
license = "Unlicense"
edition = "2018"

View File

@@ -1,8 +1,9 @@
[package]
name = "rust-server-test"
version = "2.3.4"
authors = []
authors = ["OpenAPI Generator team and contributors"]
description = "This spec is for testing rust-server-specific things"
# Override this license by providing a License Object in the OpenAPI.
license = "Unlicense"
edition = "2018"