Mercurial > public > mercurial-scm > hg
annotate rust/hg-pyo3/src/lib.rs @ 52403:b61c259c5457
hg-pyo3: bump pyo3 to 0.23
Comes with significant API changes.
author | Georges Racinet <georges.racinet@cloudcrane.io> |
---|---|
date | Wed, 20 Nov 2024 10:58:19 +0100 |
parents | 6673cec8605c |
children | c5128c541021 |
rev | line source |
---|---|
52402
6673cec8605c
rust: add PyO3 based Rust extension module
Rapha?l Gom?s <rgomes@octobus.net>
parents:
diff
changeset
|
1 use pyo3::prelude::*; |
6673cec8605c
rust: add PyO3 based Rust extension module
Rapha?l Gom?s <rgomes@octobus.net>
parents:
diff
changeset
|
2 |
6673cec8605c
rust: add PyO3 based Rust extension module
Rapha?l Gom?s <rgomes@octobus.net>
parents:
diff
changeset
|
3 #[pymodule] |
52403
b61c259c5457
hg-pyo3: bump pyo3 to 0.23
Georges Racinet <georges.racinet@cloudcrane.io>
parents:
52402
diff
changeset
|
4 fn pyo3_rustext(_py: Python<'_>, _m: &Bound<'_, PyModule>) -> PyResult<()> { |
52402
6673cec8605c
rust: add PyO3 based Rust extension module
Rapha?l Gom?s <rgomes@octobus.net>
parents:
diff
changeset
|
5 Ok(()) |
6673cec8605c
rust: add PyO3 based Rust extension module
Rapha?l Gom?s <rgomes@octobus.net>
parents:
diff
changeset
|
6 } |