diff --git a/pyproject.toml b/pyproject.toml index a60667a..7d9b3db 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,6 @@ build-backend = "maturin" [project] name = "y-py" -version = "0.6.0" description = "Python bindings for the Y-CRDT built from yrs (Rust)" license = { file = "LICENSE" } authors = [ diff --git a/src/lib.rs b/src/lib.rs index 9a65239..d07a362 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -14,6 +14,8 @@ use crate::y_doc::*; /// Python bindings for Y.rs #[pymodule] pub fn y_py(_py: Python, m: &PyModule) -> PyResult<()> { + m.add("__version__", env!("CARGO_PKG_VERSION"))?; + // Data Types m.add_class::()?; m.add_class::()?;