Skip to content

Commit 15a1851

Browse files
committed
feat: implement zlib.__version__
1 parent ce5524d commit 15a1851

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

stdlib/src/zlib.rs

+3
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ mod zlib {
3131
Z_NO_COMPRESSION, Z_NO_FLUSH, Z_PARTIAL_FLUSH, Z_RLE, Z_SYNC_FLUSH, Z_TREES,
3232
};
3333

34+
#[pyattr(name = "__version__")]
35+
const __VERSION__: &str = "1.0";
36+
3437
// we're statically linking libz-rs, so the compile-time and runtime
3538
// versions will always be the same
3639
#[pyattr(name = "ZLIB_RUNTIME_VERSION")]

0 commit comments

Comments
 (0)