summaryrefslogtreecommitdiffhomepage
path: root/tools/unitctl/unit-openapi/openapi-templates/Cargo.mustache
diff options
context:
space:
mode:
authoroxpa <iippolitov@gmail.com>2024-09-17 14:21:10 +0100
committeroxpa <iippolitov@gmail.com>2024-09-17 14:21:10 +0100
commit2417826d8bebf921ee1be102ef8ce702f0683d66 (patch)
tree76d29a1705415ed7368870826dbb2f04942ee794 /tools/unitctl/unit-openapi/openapi-templates/Cargo.mustache
parent0e79d961bb1ea68674961da1703ffedb1ddf6e43 (diff)
parent24ed91f40634372d99f67f0e4e3c2ac0abde81bd (diff)
downloadunit-2417826d8bebf921ee1be102ef8ce702f0683d66.tar.gz
unit-2417826d8bebf921ee1be102ef8ce702f0683d66.tar.bz2
Merge tag '1.33.0' into packaging.
Unit 1.33.0 release.
Diffstat (limited to 'tools/unitctl/unit-openapi/openapi-templates/Cargo.mustache')
-rw-r--r--tools/unitctl/unit-openapi/openapi-templates/Cargo.mustache65
1 files changed, 65 insertions, 0 deletions
diff --git a/tools/unitctl/unit-openapi/openapi-templates/Cargo.mustache b/tools/unitctl/unit-openapi/openapi-templates/Cargo.mustache
new file mode 100644
index 00000000..feca05ee
--- /dev/null
+++ b/tools/unitctl/unit-openapi/openapi-templates/Cargo.mustache
@@ -0,0 +1,65 @@
+[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"
+serde_derive = "1.0"
+{{#serdeWith}}
+serde_with = "^2.0"
+{{/serdeWith}}
+serde_json = "1.0"
+url = "2.2"
+{{#hyper}}
+hyper = { version = "0.14" }
+http = "0.2"
+base64 = "0.21"
+futures = "0.3"
+{{/hyper}}
+{{#withAWSV4Signature}}
+aws-sigv4 = "0.3.0"
+http = "0.2.5"
+secrecy = "0.8.0"
+{{/withAWSV4Signature}}
+{{#reqwest}}
+{{^supportAsync}}
+reqwest = "~0.9"
+{{/supportAsync}}
+{{#supportAsync}}
+{{#supportMiddleware}}
+reqwest-middleware = "0.2.0"
+{{/supportMiddleware}}
+[dependencies.reqwest]
+version = "^0.11"
+features = ["json", "multipart"]
+{{/supportAsync}}
+{{/reqwest}}