Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Schema for nalgebra matrix type #175

Closed
wants to merge 3 commits into from

Conversation

avsaase
Copy link

@avsaase avsaase commented Sep 29, 2024

I want to send some nalgebra types over the wire using postcard-rpc so I needed to implement the Schema trait. Initially I used a newtype to get around the orphan rule but in this case that's quite annoying because it requires copying a huge API into my own project.

I figured nalgebra is a somewhat foundational crate in the Rust ecosystem to I think it is acceptable to add it an an optional dependency here.

Copy link

netlify bot commented Sep 29, 2024

Deploy Preview for cute-starship-2d9c9b canceled.

Name Link
🔨 Latest commit da9c078
🔍 Latest deploy log https://app.netlify.com/sites/cute-starship-2d9c9b/deploys/67044a912eb27e0008d24b30

jamesmunns added a commit that referenced this pull request Oct 15, 2024
jamesmunns added a commit that referenced this pull request Oct 15, 2024
* Start introducing postcard-schema crate

* Break out impls, remove Varint

* Switch up enum variants, cargo fmt

* Take nalgebra changes from #175

* More cleanup of the schema crate

* Correct some CI checks

* Restore the rest of CI

* Rev versions, prepare for partial release
@avsaase avsaase closed this Oct 28, 2024
@avsaase avsaase deleted the nalgebra branch October 28, 2024 21:25
@jamesmunns
Copy link
Owner

By the way, thank you @avsaase for reporting this, it was a perfect reference for a well contained and versioned schema impl, and I used it as the basis of the new setup in #176 - I'm hoping to lower the barrier for adding arbitrary type impls.

It was something I had to port over to the new crate so this PR didn't get merged, but it was definitely appreciated.

@avsaase
Copy link
Author

avsaase commented Oct 28, 2024

Thanks for including this. And nice work on the update!

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