Giter Site home page Giter Site logo

no_std support about futures-rs HOT 4 CLOSED

rust-lang avatar rust-lang commented on June 12, 2024
no_std support

from futures-rs.

Comments (4)

alexcrichton avatar alexcrichton commented on June 12, 2024

Oh whoa, awesome! I'm surprised you were able to get that far :)

Currently LIMITED isn't a "fundamental requirement" so it'd be easy to remove I think. I've debated in the past jettisoning it as it doesn't seem too useful any more anyway.

That being said I'm still worried about the Arc in Task for #![no_std] support. This ends up requiring nightly Rust for the alloc crate, as well as perhaps having inappropriate OOM behavior where the whole process would be aborted.

I'd be totally on board with pushing as far as we can towards no_std, though, so long as it doesn't end up hamstringing the std users!

from futures-rs.

alexcrichton avatar alexcrichton commented on June 12, 2024

I have good news on this front, we've got an upcoming PR which should make the Future trait itself trivially #![no_std] compatible, so I'll post back here when that happens :)

from futures-rs.

phil-opp avatar phil-opp commented on June 12, 2024

That's great! I'm looking forward to it :)

from futures-rs.

alexcrichton avatar alexcrichton commented on June 12, 2024

Ok, PR is here

from futures-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.