Skip to content

Commit 3d57816

Browse files
authored
Sync Cargo.toml project metadata attributes (#13824)
1 parent cd5c658 commit 3d57816

File tree

13 files changed

+61
-9
lines changed

13 files changed

+61
-9
lines changed

modules/openapi-generator/src/main/resources/rust-server/Cargo.mustache

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,22 @@
11
[package]
22
name = "{{{packageName}}}"
33
version = "{{{packageVersion}}}"
4-
authors = [{{#infoEmail}}"{{{.}}}"{{/infoEmail}}]
4+
{{#infoEmail}}
5+
authors = ["{{{.}}}"]
6+
{{/infoEmail}}
7+
{{^infoEmail}}
8+
authors = ["OpenAPI Generator team and contributors"]
9+
{{/infoEmail}}
510
{{#appDescription}}
611
description = "{{{.}}}"
712
{{/appDescription}}
13+
{{#licenseInfo}}
14+
license = "{{.}}"
15+
{{/licenseInfo}}
16+
{{^licenseInfo}}
17+
# Override this license by providing a License Object in the OpenAPI.
818
license = "Unlicense"
19+
{{/licenseInfo}}
920
edition = "2018"
1021
{{#publishRustRegistry}}
1122
publish = ["{{.}}"]

modules/openapi-generator/src/main/resources/rust/Cargo.mustache

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,35 @@
11
[package]
22
name = "{{{packageName}}}"
33
version = "{{#lambdaVersion}}{{{packageVersion}}}{{/lambdaVersion}}"
4+
{{#infoEmail}}
5+
authors = ["{{{.}}}"]
6+
{{/infoEmail}}
7+
{{^infoEmail}}
48
authors = ["OpenAPI Generator team and contributors"]
9+
{{/infoEmail}}
10+
{{#appDescription}}
11+
description = "{{{.}}}"
12+
{{/appDescription}}
13+
{{#licenseInfo}}
14+
license = "{{.}}"
15+
{{/licenseInfo}}
16+
{{^licenseInfo}}
17+
# Override this license by providing a License Object in the OpenAPI.
18+
license = "Unlicense"
19+
{{/licenseInfo}}
520
edition = "2018"
21+
{{#publishRustRegistry}}
22+
publish = ["{{.}}"]
23+
{{/publishRustRegistry}}
24+
{{#repositoryUrl}}
25+
repository = "{{.}}"
26+
{{/repositoryUrl}}
27+
{{#documentationUrl}}
28+
documentation = "{{.}}"
29+
{{/documentationUrl}}
30+
{{#homePageUrl}}
31+
homepage = "{{.}}
32+
{{/homePageUrl}}
633

734
[dependencies]
835
serde = "^1.0"

samples/client/petstore/rust/hyper/petstore/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
name = "petstore-hyper"
33
version = "1.0.0"
44
authors = ["OpenAPI Generator team and contributors"]
5+
description = "This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters."
6+
license = "Apache-2.0"
57
edition = "2018"
68

79
[dependencies]

samples/client/petstore/rust/reqwest/petstore-async/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
name = "petstore-reqwest-async"
33
version = "1.0.0"
44
authors = ["OpenAPI Generator team and contributors"]
5+
description = "This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters."
6+
license = "Apache-2.0"
57
edition = "2018"
68

79
[dependencies]

samples/client/petstore/rust/reqwest/petstore-awsv4signature/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
name = "petstore-reqwest-awsv4signature"
33
version = "1.0.0"
44
authors = ["OpenAPI Generator team and contributors"]
5+
description = "This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters."
6+
license = "Apache-2.0"
57
edition = "2018"
68

79
[dependencies]

samples/client/petstore/rust/reqwest/petstore/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
name = "petstore-reqwest"
33
version = "1.0.0"
44
authors = ["OpenAPI Generator team and contributors"]
5+
description = "This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters."
6+
license = "Apache-2.0"
57
edition = "2018"
68

79
[dependencies]

samples/server/petstore/rust-server/output/multipart-v3/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
[package]
22
name = "multipart-v3"
33
version = "1.0.7"
4-
authors = []
4+
authors = ["OpenAPI Generator team and contributors"]
55
description = "API under test"
6+
# Override this license by providing a License Object in the OpenAPI.
67
license = "Unlicense"
78
edition = "2018"
89

samples/server/petstore/rust-server/output/no-example-v3/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
[package]
22
name = "no-example-v3"
33
version = "0.0.1"
4-
authors = []
4+
authors = ["OpenAPI Generator team and contributors"]
55
description = "No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)"
6+
# Override this license by providing a License Object in the OpenAPI.
67
license = "Unlicense"
78
edition = "2018"
89

samples/server/petstore/rust-server/output/openapi-v3/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
[package]
22
name = "openapi-v3"
33
version = "1.0.7"
4-
authors = []
4+
authors = ["OpenAPI Generator team and contributors"]
55
description = "API under test"
6+
# Override this license by providing a License Object in the OpenAPI.
67
license = "Unlicense"
78
edition = "2018"
89

samples/server/petstore/rust-server/output/ops-v3/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
[package]
22
name = "ops-v3"
33
version = "0.0.1"
4-
authors = []
4+
authors = ["OpenAPI Generator team and contributors"]
55
description = "No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)"
6+
# Override this license by providing a License Object in the OpenAPI.
67
license = "Unlicense"
78
edition = "2018"
89

0 commit comments

Comments
 (0)