Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ndarray-npy"
version = "0.9.1"
version = "0.10.0"
authors = ["Jim Turner <ndarray-npy@turner.link>"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/jturner314/ndarray-npy"
Expand Down
2 changes: 1 addition & 1 deletion LICENSE-MIT
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright 2018–2024 Jim Turner and ndarray-npy developers
Copyright 2018–2025 Jim Turner and ndarray-npy developers

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
Expand Down
12 changes: 5 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
[![Dependencies status](https://deps.rs/repo/github/jturner314/ndarray-npy/status.svg)](https://deps.rs/repo/github/jturner314/ndarray-npy)
[![ndarray-npy at crates.io](https://img.shields.io/crates/v/ndarray-npy.svg)](https://crates.io/crates/ndarray-npy)
[![Documentation](https://docs.rs/ndarray-npy/badge.svg)](https://docs.rs/ndarray-npy)
[![Matrix chat at #rust-sci:matrix.org](https://img.shields.io/badge/Matrix-%23rust--sci%3Amatrix.org-lightgrey)](https://matrix.to/#/#rust-sci:matrix.org)
[![IRC at #rust-sci on OFTC](https://img.shields.io/badge/IRC-%23rust--sci%20on%20OFTC-lightgrey)](https://webchat.oftc.net/?channels=rust-sci)

This crate provides support for reading/writing [`ndarray`]'s `ArrayBase` type
from/to [`.npy`] and [`.npz`] files. See the
Expand Down Expand Up @@ -36,7 +34,7 @@ To use with the default features:

```toml
[dependencies]
ndarray-npy = "0.9.1"
ndarray-npy = "0.10.0"
```

The `default` feature set includes the `compressed_npz` feature, which enables
Expand All @@ -52,7 +50,7 @@ To use without the default features:

```toml
[dependencies]
ndarray-npy = { version = "0.9.1", default-features = false }
ndarray-npy = { version = "0.10.0", default-features = false }
```

With `default-features = false`, `ndarray-npy` provides support only for `.npy`
Expand All @@ -72,7 +70,7 @@ For example, you can use just the `npz` feature:

```toml
[dependencies.ndarray-npy]
version = "0.9.1"
version = "0.10.0"
default-features = false
features = ["npz"]
```
Expand All @@ -85,7 +83,7 @@ Library authors should specify their dependency on `ndarray-npy` like this:

```toml
[dependencies.ndarray-npy]
version = "0.9.1"
version = "0.10.0"
default-features = false
features = [FEATURES_LIST_HERE]
```
Expand Down Expand Up @@ -113,7 +111,7 @@ be especially appreciated.

## License

Copyright 2018–2024 Jim Turner and `ndarray-npy` developers
Copyright 2018–2025 Jim Turner and `ndarray-npy` developers

Licensed under the [Apache License, Version 2.0](LICENSE-APACHE), or the [MIT
license](LICENSE-MIT), at your option. You may not use this project except in
Expand Down
27 changes: 27 additions & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,30 @@
# 0.10.0

## Breaking Changes

* Updated to `ndarray` 0.17.1.
* Updated to `zip` 6.
* Updated minimum Rust version to 1.84.
* Changed the `array` parameter of `NpzWriter::add_array` from
`&ArrayBase<S, D>` to `T: WriteNpyExt + ?Sized` to support the new
`ArrayRef` type in `ndarray` 0.17.1.

## New Features

* Added new `create_new_npy` convenience function which uses
`File::create_new`. (In contrast, the existing `write_npy` function
uses `File::create`.)
* Added `NpzWriter::add_array_with_options`, which overrides the
options for that specific array.
* Publicly exposed the `npy` module to provide access to
header-related functionality in the `npy::header` module. In most
cases, users do not need this functionality, but some users have
requested access to it for specific use cases.
* Implemented `WriteNpyExt` for the new `ArrayRef` type in `ndarray`
0.17.1.
* Removed the implicit `Sized` bound from `write_npy` to support the
new `ArrayRef` type in `ndarray` 0.17.1.

# 0.9.1

* Removed broken links from docs.
Expand Down