Skip to content

Commit

Permalink
examples: update PyO3 & edition, remove explicit extension-module f…
Browse files Browse the repository at this point in the history
…eature
  • Loading branch information
davidhewitt committed Feb 24, 2024
1 parent 5dd65e2 commit 9fa089a
Show file tree
Hide file tree
Showing 13 changed files with 117 additions and 81 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ Each extension module should map directly into the corresponding `[lib]` table o
[package]
name = "hello-world"
version = "0.1.0"
edition = "2018"
edition = "2021"

[dependencies]
pyo3 = { version = "0.20.0", features = ["extension-module"] }
pyo3 = "0.20.3"

[lib]
name = "_lib" # private module to be nested into Python package,
Expand Down
2 changes: 1 addition & 1 deletion examples/hello-world-script/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "hello-world-script"
version = "0.1.0"
edition = "2018"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down
50 changes: 32 additions & 18 deletions examples/hello-world-setuppy/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 2 additions & 5 deletions examples/hello-world-setuppy/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
[package]
name = "hello-world-setuppy"
version = "0.1.0"
edition = "2018"
edition = "2021"

[dependencies]
pyo3 = { version = "0.20.0", features = ["extension-module"] }

[build-dependencies]
pyo3-build-config = "0.20.0"
pyo3 = "0.20.3"

[lib]
# See https://github.com/PyO3/pyo3 for details
Expand Down
29 changes: 18 additions & 11 deletions examples/hello-world/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 2 additions & 5 deletions examples/hello-world/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[package]
name = "hello-world"
version = "0.1.0"
edition = "2018"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
pyo3 = { version = "0.20.2", features = ["extension-module"] }
pyo3 = "0.20.3"

[profile.release-lto]
inherits = "release"
Expand All @@ -21,6 +21,3 @@ path = "rust/lib.rs"
[[bin]]
name = "print-hello"
path = "rust/print_hello.rs"

[build-dependencies]
pyo3-build-config = "0.20.0"
3 changes: 0 additions & 3 deletions examples/hello-world/build.rs

This file was deleted.

28 changes: 18 additions & 10 deletions examples/html-py-ever/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions examples/html-py-ever/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
name = "html-py-ever"
version = "0.1.0"
authors = ["konstin <[email protected]>"]
edition = "2018"
edition = "2021"

[dependencies]
kuchiki = "0.8.0"
pyo3 = { version = "0.20.2", features = ["extension-module"] }
pyo3 = "0.20.3"
tendril = "0.4.3"

[lib]
Expand Down
Loading

0 comments on commit 9fa089a

Please sign in to comment.