diff --git a/examples/decorator/.template/Cargo.toml b/examples/decorator/.template/Cargo.toml index 9b9a0ca2..4ff81390 100644 --- a/examples/decorator/.template/Cargo.toml +++ b/examples/decorator/.template/Cargo.toml @@ -2,12 +2,11 @@ authors = ["{{authors}}"] name = "{{project-name}}" version = "0.1.0" -description = "An example project to get started using PyO3 with maturin" edition = "2018" +[lib] +name = "decorator" +crate-type = ["cdylib"] + [dependencies] pyo3 = { version = "{{PYO3_VERSION}}", features = ["extension-module"] } - -[lib] -name = "maturin_starter" -crate-type = ["cdylib"] diff --git a/examples/decorator/Cargo.toml b/examples/decorator/Cargo.toml index 32545733..702f6a1f 100644 --- a/examples/decorator/Cargo.toml +++ b/examples/decorator/Cargo.toml @@ -3,17 +3,11 @@ name = "decorator" version = "0.1.0" edition = "2018" -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [lib] name = "decorator" crate-type = ["cdylib"] -[dependencies.pyo3] -# If you copy this example, you should uncomment this... -# version = "0.15.1" - -# ...and delete this path -path = "../.." -features = ["extension-module"] +[dependencies] +pyo3 = { path = "../../", features = ["extension-module"] } [workspace] diff --git a/examples/maturin-starter/.template/Cargo.toml b/examples/maturin-starter/.template/Cargo.toml index 9b9a0ca2..37695d29 100644 --- a/examples/maturin-starter/.template/Cargo.toml +++ b/examples/maturin-starter/.template/Cargo.toml @@ -2,12 +2,11 @@ authors = ["{{authors}}"] name = "{{project-name}}" version = "0.1.0" -description = "An example project to get started using PyO3 with maturin" edition = "2018" -[dependencies] -pyo3 = { version = "{{PYO3_VERSION}}", features = ["extension-module"] } - [lib] name = "maturin_starter" crate-type = ["cdylib"] + +[dependencies] +pyo3 = { version = "{{PYO3_VERSION}}", features = ["extension-module"] } diff --git a/examples/maturin-starter/Cargo.toml b/examples/maturin-starter/Cargo.toml index fb299a9d..94045488 100644 --- a/examples/maturin-starter/Cargo.toml +++ b/examples/maturin-starter/Cargo.toml @@ -1,18 +1,13 @@ [package] -authors = ["PyO3 Authors"] name = "maturin-starter" version = "0.1.0" -description = "An example project to get started using PyO3 with maturin" edition = "2018" -[dependencies] - -[dependencies.pyo3] -path = "../../" -features = ["extension-module"] - -[workspace] - [lib] name = "maturin_starter" crate-type = ["cdylib"] + +[dependencies] +pyo3 = { path = "../../", features = ["extension-module"] } + +[workspace] diff --git a/examples/setuptools-rust-starter/.template/Cargo.toml b/examples/setuptools-rust-starter/.template/Cargo.toml index 1c720d8f..6f77ff80 100644 --- a/examples/setuptools-rust-starter/.template/Cargo.toml +++ b/examples/setuptools-rust-starter/.template/Cargo.toml @@ -2,12 +2,11 @@ authors = ["{{authors}}"] name = "{{project-name}}" version = "0.1.0" -description = "An example project to get started using PyO3 with setuptools_rust" edition = "2018" -[dependencies] -pyo3 = { version = "{{PYO3_VERSION}}", features = ["extension-module"] } - [lib] name = "setuptools_rust_starter" crate-type = ["cdylib"] + +[dependencies] +pyo3 = { version = "{{PYO3_VERSION}}", features = ["extension-module"] } diff --git a/examples/setuptools-rust-starter/Cargo.toml b/examples/setuptools-rust-starter/Cargo.toml index ad6ba2f1..d07c29d7 100644 --- a/examples/setuptools-rust-starter/Cargo.toml +++ b/examples/setuptools-rust-starter/Cargo.toml @@ -1,18 +1,13 @@ [package] -authors = ["PyO3 Authors"] name = "setuptools-rust-starter" version = "0.1.0" -description = "An example project to get started using PyO3 with maturin" edition = "2018" -[dependencies] - -[dependencies.pyo3] -path = "../../" -features = ["extension-module"] - -[workspace] - [lib] name = "setuptools_rust_starter" crate-type = ["cdylib"] + +[dependencies] +pyo3 = { path = "../../", features = ["extension-module"] } + +[workspace] diff --git a/examples/word-count/.template/Cargo.toml b/examples/word-count/.template/Cargo.toml index dcc78d1d..14db5476 100644 --- a/examples/word-count/.template/Cargo.toml +++ b/examples/word-count/.template/Cargo.toml @@ -4,10 +4,10 @@ name = "{{project-name}}" version = "0.1.0" edition = "2018" -[dependencies] -rayon = "1.0.2" -pyo3 = { version = "{{PYO3_VERSION}}", features = ["extension-module"] } - [lib] name = "word_count" crate-type = ["cdylib"] + +[dependencies] +pyo3 = { version = "{{PYO3_VERSION}}", features = ["extension-module"] } +rayon = "1.0.2" diff --git a/examples/word-count/Cargo.toml b/examples/word-count/Cargo.toml index 42aee9e2..a351cf75 100644 --- a/examples/word-count/Cargo.toml +++ b/examples/word-count/Cargo.toml @@ -1,15 +1,14 @@ [package] -authors = ["Messense Lv "] name = "word-count" version = "0.1.0" edition = "2018" -[dependencies] -rayon = "1.0.2" -pyo3 = { path = "../..", features = ["extension-module"] } - -[workspace] - [lib] name = "word_count" crate-type = ["cdylib"] + +[dependencies] +pyo3 = { path = "../..", features = ["extension-module"] } +rayon = "1.0.2" + +[workspace]