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

feat: BorshSerialize/BoshDeserialize/BorshSchema for Cell/RefCell #265

Merged
merged 5 commits into from
Feb 27, 2024

Conversation

Fuuzetsu
Copy link
Contributor

@Fuuzetsu Fuuzetsu commented Dec 7, 2023

It's basically the same as the serde implementations from 5 years ago serde-rs/serde#882 .

…ib types

It's basically the same as the serde implementations from 5 years ago
serde-rs/serde#882 .
borsh/src/ser/mod.rs Outdated Show resolved Hide resolved
borsh/src/de/mod.rs Outdated Show resolved Hide resolved
borsh/src/ser/mod.rs Outdated Show resolved Hide resolved
borsh/src/ser/mod.rs Outdated Show resolved Hide resolved
borsh/src/ser/mod.rs Outdated Show resolved Hide resolved
borsh/src/de/mod.rs Outdated Show resolved Hide resolved
borsh/src/ser/mod.rs Show resolved Hide resolved
borsh/src/de/mod.rs Outdated Show resolved Hide resolved
borsh/src/de/mod.rs Show resolved Hide resolved
borsh/src/de/mod.rs Show resolved Hide resolved
@dj8yfo
Copy link
Collaborator

dj8yfo commented Dec 7, 2023

@Fuuzetsu , btw, what is your motivation to add support for these types?

@dj8yfo dj8yfo changed the title Implement BorshSerialize/BoshDeserialize for interior mutability stdl… feat: BorshSerialize/BoshDeserialize/BorshSchema for Cell/RefCell Dec 7, 2023
@Fuuzetsu
Copy link
Contributor Author

Fuuzetsu commented Dec 8, 2023

@Fuuzetsu , btw, what is your motivation to add support for these types?

We have a RefCell<…> type in our code-base. We currently use serde but we're trying to give borsh a go because of massive compile time costs with serde.

I added Mutex/RwLock as a whole-sale "internal mutability" types though we don't currently serialise these ourselves.

I'll address the comments soon, removing Mutex/RwLock.

borsh/src/ser/mod.rs Outdated Show resolved Hide resolved
@dj8yfo dj8yfo self-requested a review February 27, 2024 22:32
@dj8yfo dj8yfo merged commit 882da07 into near:master Feb 27, 2024
7 checks passed
@frol frol mentioned this pull request Feb 27, 2024
@Fuuzetsu
Copy link
Contributor Author

Thank you for getting this through. Sorry, I didn't have the time allocation to finish it up...

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