From 1ec9b64dfc88827a4fdcdb8f2042977ad7777659 Mon Sep 17 00:00:00 2001 From: messense Date: Fri, 16 Sep 2022 10:06:16 +0800 Subject: [PATCH] Fix `Cargo.toml` in new project template --- Changelog.md | 2 ++ src/templates/Cargo.toml.j2 | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Changelog.md b/Changelog.md index b5ce41ca0..1792e07b6 100644 --- a/Changelog.md +++ b/Changelog.md @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +* Fix `Cargo.toml` in new project template in [#1109](https://github.com/PyO3/maturin/pull/1109) + ## [0.13.3] - 2022-09-15 * Allow user to override default Emscripten settings in [#1059](https://github.com/PyO3/maturin/pull/1059) diff --git a/src/templates/Cargo.toml.j2 b/src/templates/Cargo.toml.j2 index dc8f272ff..4a9f0486d 100644 --- a/src/templates/Cargo.toml.j2 +++ b/src/templates/Cargo.toml.j2 @@ -4,8 +4,7 @@ version = "0.1.0" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - -{%- if bindings != "bin" -%} +{% if bindings != "bin" -%} [lib] name = "{{ crate_name }}" crate-type = ["cdylib"]