Comments (10)
I would be sad to see that go, as it is the only "feature" keeping me here. I need the no-alloc for my application. That said, i can always just fork. In an idea world, i would just lie to see less fragmentation of ecosystem, not more.
I am also not in a position currently where i have time to look into solving the painpoints, especially as i have still not been presented with the actual pain points, more than "it's a lifetime thing"
from mqttrs.
It could be worth looking into how smoltcp handles their lifetimes using the managed crate.
They have extensive async support, allows alloc free nostd usage, and is also widely used in full-blown std applications.
from mqttrs.
@MathiasKoch @vincentdephily ^^
from mqttrs.
Is there any other way we can resolve this then ? where we can do no-alloc
without lifetimes?
from mqttrs.
@MathiasKoch can we use Pin instead of taking lifetime??
from mqttrs.
My familiarity with Pin is very limited, but i think the issue might be the inner type of said pin? String is not an option, and i don't think Pin<&str> removes the need for the lifetime?
from mqttrs.
Yeah, true. I tried that. Doesn't work. by the way, are you using this in prod? if yes, can i know what kind of prod environment this is being used?
from mqttrs.
Yeah, we are using it in prod ;)
It's an IIoT device based on STM32, sending data to AWS, with roughly a stack of
- https://github.com/BlackbirdHQ/ublox-cellular-rs
- https://github.com/BlackbirdHQ/mqttrust
- https://github.com/BlackbirdHQ/rustot
Most of it is still work in progress, while the lower level stuff is starting to settle in.
from mqttrs.
awesome. 👍🏽
from mqttrs.
Interesting. Sure I will check it out.
from mqttrs.
Related Issues (20)
- `Connect.password` should be `Option<Vec<u8>>` instead of `Option<String>`.
- Refactor using a combined `QosPid` struct. HOT 1
- PacketIdentifier should be NonZeroU16
- Support MQTT5 HOT 8
- Add builder APIs
- Zero-copy encoding and decoding HOT 4
- Write good documentation. HOT 4
- Usage in no_std environments HOT 9
- New release on crates.io? HOT 2
- Support alloc-free operation HOT 3
- Serde feature enabled by default (through `std` feature) HOT 2
- Add `mqttrs::decode::check()` method, to see if the packet is decodable? HOT 2
- Proper way to extract packet length? HOT 2
- make every packet clonable.
- Example in README file does not work, cannot find encode/decode in this scope HOT 2
- Fresh crates.io release HOT 2
- Unable to implement tokio_util::codec::{Decoder, Encoder} with mqttrs version 0.4 HOT 4
- Trouble Implementing Tokio-util Decoder for MQTT Broker
- Add integration examples with other libraries and runtimes.
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 mqttrs.