Comments (5)
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.
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.
You might want to refrain from advertising this feature in the docs if it is not supported yet.
from hjson-rust.
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.
@dqsully Any update on the situation? Unfortunately i cannot lower serde versions in my case
from hjson-rust.
Related Issues (17)
- Parse error on deserialization of enum value HOT 8
- Strips leading slashes from key names and string fields
- from_str method failing with integer types.
- Depends on outdated linked-hash-map
- serde_hjson::from_slice panics on decoding invalid utf8
- Update to serde 0.9 HOT 1
- serde_hjson::from_slice panics on subtract with overflow
- serde_hjson::from_slice panics at 'removal index (is 0) should be < len (is 0)'
- serde_hjson::from_slice panics on ParseIntError
- hjson-rust fails with Rust 1.48 HOT 4
- Is this crate maintained? HOT 4
- Update to Serde 1.0 HOT 3
- Support for single quoted strings
- tests fail to compile due to quasi HOT 1
- Upgrade to Serde 1.0.x using Serde's JSON implementation HOT 19
- Numbers are always be parsed to Value::F64
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hjson-rust.