Skip to content

Commit b05baa8

Browse files
[Rust Server] Update rust-server cargo-config to generate .cargo/config.toml (#17876)
This is recommended by Rust 1.39: <https://doc.rust-lang.org/cargo/reference/config.html>
1 parent dcd89bf commit b05baa8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/RustServerCodegen.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ public RustServerCodegen() {
222222
*/
223223
supportingFiles.add(new SupportingFile("openapi.mustache", "api", "openapi.yaml"));
224224
supportingFiles.add(new SupportingFile("Cargo.mustache", "", "Cargo.toml"));
225-
supportingFiles.add(new SupportingFile("cargo-config", ".cargo", "config"));
225+
supportingFiles.add(new SupportingFile("cargo-config", ".cargo", "config.toml"));
226226
supportingFiles.add(new SupportingFile("gitignore", "", ".gitignore"));
227227
supportingFiles.add(new SupportingFile("lib.mustache", "src", "lib.rs"));
228228
supportingFiles.add(new SupportingFile("context.mustache", "src", "context.rs"));

0 commit comments

Comments
 (0)