Git Product home page Git Product logo

Comments (9)

vincentdephily avatar vincentdephily commented on May 26, 2024 1

Looking forward to a no-std mqttrs :) I think it might even be possible without a feature flag, which would be great.

NonZeroU16 should be nostd-safe.

I don't quite recall what std::fmt is used for; if it's used for error handing then the best thing to do might be to tweak the error types a bit.

Concerning bytes, I'd like to loosen the dependency on it anyway, accepting an Into<Buf> or something even more generic. The bytes crate has changed its API since the async.await release, we should probably update to that, unless we want to keep our MSRV low. https://seanmonstar.com/post/189439210962/http-v02 mentions that they managed to keep using Bytes but don't expose it in the API anymore, we should have a look at how they did it.

The bytes work could probably be a PR on its own, separate of the no-std work. I'd get to it eventually, but not before end of 2020Q1.

from mqttrs.

00imvj00 avatar 00imvj00 commented on May 26, 2024

Sure i would like to explore in that. The primary use case was to build broker just for fun for me.

But, if there is a use case, which there will be, i think this is a good opportunity to get started with it.

from mqttrs.

00imvj00 avatar 00imvj00 commented on May 26, 2024

I will surely look into that. and you are welcome opening PR also. :)

from mqttrs.

MathiasKoch avatar MathiasKoch commented on May 26, 2024

That sound great! I can do an initial PR, but i currently don't have the means to actually test the implementation any more than checking it will compile..
I am still just sweeping github for libraries that might be handy for my IoT application development, to get an idea of how much i have left to implement myself.

from mqttrs.

00imvj00 avatar 00imvj00 commented on May 26, 2024

ok. just open an initial PR, then we can take it from where it needs to be by testing and building on top of initial PR.

from mqttrs.

MathiasKoch avatar MathiasKoch commented on May 26, 2024

Sounds good! I will give it a go, as soon as i get some time.

from mqttrs.

00imvj00 avatar 00imvj00 commented on May 26, 2024

awesome. thank you.

from mqttrs.

MathiasKoch avatar MathiasKoch commented on May 26, 2024

Sounds great! @vincentdephily if you have the time before me, feel free to open an initial PR :)

from mqttrs.

vincentdephily avatar vincentdephily commented on May 26, 2024

https://github.com/vincentdephily/mqttrs/tree/serde_and_bytes contains an update to bytes, and the changelog for bytes's new version mentions no_std support. I'll make a PR for that branch once I manage to change encode()/decode() signatures to use something like impl BufMut instead of &mut BytesMut.

From there I guess it'll be pretty easy to support no_std, but I won't tackle that myself as I don't have a usecase for or experience with no_std.

from mqttrs.

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.