We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb792fd commit eb2eba5Copy full SHA for eb2eba5
example_tomlgen/hello/english/lib.rs
@@ -3,11 +3,10 @@
3
extern crate pyo3;
4
5
use pyo3::prelude::*;
6
-use pyo3::py::modinit;
7
8
/// Module documentation string
9
-#[modinit(english)]
10
-fn init(py: Python, m: &PyModule) -> PyResult<()> {
+#[pymodinit]
+fn english(py: Python, m: &PyModule) -> PyResult<()> {
11
12
#[pyfn(m, "hello")]
13
fn hello(_py: Python) -> PyResult<()> {
example_tomlgen/hello/french/lib.rs
-#[modinit(french)]
+fn french(py: Python, m: &PyModule) -> PyResult<()> {
0 commit comments