aboutsummaryrefslogtreecommitdiff
path: root/hittekaart-py
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2026-05-02 14:02:47 +0200
committerDaniel Schadt <kingdread@gmx.de>2026-05-02 14:02:47 +0200
commit9a576a8d3a8cb1d143be0ade0310f71b490cacb9 (patch)
tree6264c793c5e5661d7f42c4a3c5e1427d42725a56 /hittekaart-py
parent445c51cbb38849086db79b6364e7105551d5a7cf (diff)
downloadhittekaart-9a576a8d3a8cb1d143be0ade0310f71b490cacb9.tar.gz
hittekaart-9a576a8d3a8cb1d143be0ade0310f71b490cacb9.tar.bz2
hittekaart-9a576a8d3a8cb1d143be0ade0310f71b490cacb9.zip
update dependenciesHEADv0.2.0master
Diffstat (limited to 'hittekaart-py')
-rw-r--r--hittekaart-py/Cargo.toml2
-rw-r--r--hittekaart-py/src/lib.rs4
2 files changed, 3 insertions, 3 deletions
diff --git a/hittekaart-py/Cargo.toml b/hittekaart-py/Cargo.toml
index ea0e2fb..ebe9902 100644
--- a/hittekaart-py/Cargo.toml
+++ b/hittekaart-py/Cargo.toml
@@ -9,6 +9,6 @@ name = "hittekaart_py"
crate-type = ["cdylib"]
[dependencies]
-pyo3 = "0.27.1"
+pyo3 = "0.28.1"
hittekaart = { path = "../hittekaart" }
rayon = "1.10.0"
diff --git a/hittekaart-py/src/lib.rs b/hittekaart-py/src/lib.rs
index 7a88bab..b93d9d6 100644
--- a/hittekaart-py/src/lib.rs
+++ b/hittekaart-py/src/lib.rs
@@ -38,7 +38,7 @@ fn err_to_py(mut error: &dyn Error) -> PyErr {
/// Tracks can be loaded from GPX files (see Track.from_file()) or from in-memory coordinates
/// (Track.from_coordinates()). Otherwise, tracks should be treated as opaque objects, whose only
/// purpose is to be passed to generate().
-#[pyclass]
+#[pyclass(from_py_object)]
#[derive(Debug, Clone)]
struct Track {
inner: Vec<Coordinates>,
@@ -97,7 +97,7 @@ enum StorageType {
/// database (more space-efficient).
///
/// See hittekaart's README for more detailed information.
-#[pyclass]
+#[pyclass(from_py_object)]
#[derive(Debug, Clone, PartialEq, Eq)]
struct Storage(StorageType);