Git Product home page Git Product logo

Comments (5)

dj8yfo avatar dj8yfo commented on July 18, 2024

current issue is great detail on #51 's sub-issue

from borsh-rs.

dj8yfo avatar dj8yfo commented on July 18, 2024

@frol
Taking into account container ser/de guarantee https://github.com/dj8yfo/borsh-rs/blob/tmp_link_container_guarantee/borsh/tests/test_schema_enums.rs#L164,
the below link is a straightforward approach, which compiles, how this could be done, taking the above into account.

https://gist.github.com/dj8yfo/da468206a03feca6d08698cbfc868ea0

from borsh-rs.

frol avatar frol commented on July 18, 2024

@dj8yfo Do you mean canonicity enforcement (#160) when say "container ser/de guarantee"? Can you shed some light on why it matters here?

https://gist.github.com/dj8yfo/da468206a03feca6d08698cbfc868ea0#file-f_p_schema_api-rs-L139-L174 - This interface looks good to me (I would only ask not to shorten the names to "*_def", instead, use a full word get_definition)

from borsh-rs.

dj8yfo avatar dj8yfo commented on July 18, 2024

@frol No, i mean, that the container BorshSchemaContainer has some format of ser/de, which has been committed to in insta test.
It also has some BorshSchema implementation which is supposed to describe the format.

In gist i've removed derived implementations of BorshSerialize, BorshDeserialize for BorshSchemaContainer, as they depend on internal BorshSchemaContainer struct representation and replaced them with versions, that depend on declared public methods declaration() and definitions(), which are supposed to allow not changing the ser/de format, which has been committed to.

I missed to do the same for impl BorshSchema for BorshSchemaContainer in the gist at first, updated it now.

from borsh-rs.

dj8yfo avatar dj8yfo commented on July 18, 2024

taking this issue

from borsh-rs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.