Giter Club home page Giter Club logo

Comments (7)

ryan-summers avatar ryan-summers commented on May 20, 2024 2

I suspect this may be related to MSRV (minimum supported Rust version). What rustc version are you using? Currently, I believe we only support 1.51 and above.

Edit:

You need to enable the std feature for serde-json-core to implement std::error:Error for the type. Check your Cargo.toml file.

from serde-json-core.

netzdoktor avatar netzdoktor commented on May 20, 2024

Similar issue here for the latest version "0.2.0".

from serde-json-core.

zicklag avatar zicklag commented on May 20, 2024

I'm getting the same thing for version 0.4.0.

from serde-json-core.

zicklag avatar zicklag commented on May 20, 2024

Oh, OK, that would be it, I was trying to build without std. 👍

from serde-json-core.

eldruin avatar eldruin commented on May 20, 2024

Closing then. I adapted the title for better discoverability.
For future reference: per default this crate is no_std-compatible, which per definition excludes implementing std::error::Error.
If you need std::error::Error, activate the std feature for this crate in your Cargo.toml file.

from serde-json-core.

TomzBench avatar TomzBench commented on May 20, 2024

I dont want the std::error. im trying to use no-std. and i still get this error.

serde = { version = "1", default-features = false, features = ["derive"] }
serde-json-core = { version = "0.4", default-features = false, features = ["heapless"] }

is in my cargo.toml ... is there something missing?

from serde-json-core.

ryan-summers avatar ryan-summers commented on May 20, 2024

This can be a result of some of your other dependencies if you're using an older version of Cargo. Cargo's original feature resolver had a bug where dev-dependencies and such could enable features on other crates. Check out https://doc.rust-lang.org/edition-guide/rust-2021/default-cargo-resolver.html

Also, check out cargo tree -e features to look at what features are actually enabled.

from serde-json-core.

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.