8000 ndarray deserialization for any DataOwned by kylecarow · Pull Request #2 · RReverser/serde-ndim · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@kylecarow
Copy link
Contributor
@kylecarow kylecarow commented May 5, 2025

This allows deserialization on more types, using the same bound as in ndarray:

https://github.com/rust-ndarray/ndarray/blob/8bd70b0c51e6ff3a6b6c2df94b4bcf9547dc9128/src/array_serde.rs#L144-L150

@kylecarow
Copy link
Contributor Author

Also, is this bound on the NDim impl necessary?

where
S::Elem: Copy,

It forces me to add bounds on my types downstream. Removing it does not make any tests fail in this crate or in mine.

@RReverser
Copy link
Owner

Thanks for the PR!

Also, is this bound on the NDim impl necessary?

I can only assume I added it because it used to be required, but if tests pass without it as well, I'm happy for it to be removed as well.

@kylecarow
Copy link
Contributor Author

I've added that change to this branch. Running cargo +nightly test --all-features locally doesn't find anything wrong with it, and my downstream code no longer needs to propagate Copy bounds.

Thanks for the quick review!

@kylecarow
Copy link
Contributor Author

Hey there! Any chance this PR could get a look over? Thanks!

@RReverser
Copy link
Owner

Sorry, fell off my radar. I just added CI rule, let's see if it passes and I'll merge.

@RReverser RReverser merged commit b9847f4 into RReverser:main Jun 7, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0