Coder Social home page Coder Social logo

Comments (5)

LittleHuba avatar LittleHuba commented on May 23, 2024 2

I tried it with both Serde 0.9 and 1.0, with the derive feature activated but get always the error that the serde::de::Deserialize Trait is not implemented for my structs (which makes sense as serde-hjson depends on 0.8).
I can get it to run when I explicitly link to the 0.8 version of serde_derive but then it is nearly unusable as most of the stuff required to work with this feature is still missing.

In other words for you to advertise this feature you would need to update to a newer version of serde - preferably 1.0.

from hjson-rust.

dqsully avatar dqsully commented on May 23, 2024

This may be due to the fact that we are not updated to serde 1.0 yet. There is an active issue for it here: #6

from hjson-rust.

LittleHuba avatar LittleHuba commented on May 23, 2024

You might want to refrain from advertising this feature in the docs if it is not supported yet.

from hjson-rust.

dqsully avatar dqsully commented on May 23, 2024

It should work, just not with the latest version of Serde. Before the derive feature was a thing on the main Serde crate, you had to use this crate instead: https://crates.io/crates/serde_derive

from hjson-rust.

MillieSilva avatar MillieSilva commented on May 23, 2024

@dqsully Any update on the situation? Unfortunately i cannot lower serde versions in my case

from hjson-rust.

Related Issues (17)

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.