examples: make Cargo.toml files more uniform

This commit is contained in:
David Hewitt 2021-12-15 08:28:25 +00:00
parent 888b10c373
commit bd3c3adf46
8 changed files with 32 additions and 52 deletions

View File

@ -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"]

View File

@ -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]

View File

@ -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"] }

View File

@ -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]

View File

@ -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"] }

View File

@ -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]

View File

@ -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"

View File

@ -1,15 +1,14 @@
[package]
authors = ["Messense Lv <messense@icloud.com>"]
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]