Skip to content

pyo3-utils

Unreleased

0.4.0

BREAKING

  • #265 - feat(pytauri): add WebviewWindowBuilder bindings.

    The #[default] attribute in crate::from_py_dict::derive_from_py_dict! has been renamed to #[pyo3(default)]:

    derive_from_py_dict!(Foo {
    -   #[default]
    +   #[pyo3(default)]
        foo,
    });
    
  • #259 - feat(pytauri): more WebviewWindow and AppHandle bindings.

    Removed impl IntoPyObject for from_py_dict::NotRequired<T> in favor of #[pyo3(into_py_with)] and NotRequired::{into_py_with, into_py_with_none, into_py_with_default, into_py_with_err}.

Added

  • #265 - feat(pytauri): add WebviewWindowBuilder bindings.

    crate::from_py_dict::derive_from_py_dict! now supports optional #[cfg(...)] attribute on fields, but must be before #[pyo3(default)]:

    derive_from_py_dict!(Foo {
        #[cfg(all())] // 👈
        #[pyo3(default)]
        foo,
    });
    
  • #262 - feat: support json str | bytes or dict as input for tauri::Config.

    • Added features unstable-from-py-dict
    • Added new features unstable-serde for new mod pyo3_utils::serde
  • #220 - feat: support registering plugin from python.

    from_py_dict::derive_from_py_dict! can now accept struct with no fields:

    derive_from_py_dict!(Foo {});
    

0.3.0

Added

0.2.0

Added

  • #141 - chore: bump pyo3 to 0.24.1.

0.1.0

Docs

  • #57 - add documentation to mod py_match indicating it should only be used for state-machine-like enum, not for Union-like enum.

Internal

  • #79 - refactor: use rust v1.82 feature Omitting empty types in pattern matching in place of Result<T, Infallible>::unwrap.

0.1.0-beta.0