Skip to content

Commit

Permalink
[rust] fix incorrect Cargo.toml generated when supportAsync & withAWS…
Browse files Browse the repository at this point in the history
…V4Signature are both enabled. (#13015)
  • Loading branch information
fluxxu authored Aug 3, 2022
1 parent 13d34b9 commit 6d1c51c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions modules/openapi-generator/src/main/resources/rust/Cargo.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ serde_yaml = "0.7"
base64 = "~0.7.0"
futures = "^0.3"
{{/hyper}}
{{#withAWSV4Signature}}
aws-sigv4 = "0.3.0"
http = "0.2.5"
secrecy = "0.8.0"
{{/withAWSV4Signature}}
{{#reqwest}}
{{^supportAsync}}
reqwest = "~0.9"
Expand All @@ -28,11 +33,6 @@ version = "^0.11"
features = ["json", "multipart"]
{{/supportAsync}}
{{/reqwest}}
{{#withAWSV4Signature}}
aws-sigv4 = "0.3.0"
http = "0.2.5"
secrecy = "0.8.0"
{{/withAWSV4Signature}}

[dev-dependencies]
{{#hyper}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ serde_derive = "^1.0"
serde_json = "^1.0"
url = "^2.2"
uuid = { version = "^1.0", features = ["serde"] }
reqwest = "~0.9"
aws-sigv4 = "0.3.0"
http = "0.2.5"
secrecy = "0.8.0"
reqwest = "~0.9"

[dev-dependencies]

0 comments on commit 6d1c51c

Please sign in to comment.