Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add #![no_std] option? #2

Open
sparky8251 opened this issue Feb 26, 2021 · 2 comments
Open

Add #![no_std] option? #2

sparky8251 opened this issue Feb 26, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@sparky8251
Copy link

Not sure how possible this is, but a #![no_std] option seems potentially useful. Could allow you to make more accurate sensor readings in IoT networks by taking into account local variances to decide measurement tolerances (like reading pressure or temp to determine the accuracy of other readings the device could do).

That way your receiver that processes off the info doesn't have to do an educated guess on the tolerances per device (because you might have different sensors with different tolerances), it'd instead be encoded in the data stream for it to parse.

@dyedgreen
Copy link
Owner

That sounds like a really useful option to have, especially since this library will be most useful for applications on sensor data. I don't have a lot of experience with #![no_std] myself, but I think this should be possible (or mostly possible).

The only thing that currently requires std is BoxedUncertain (it uses a Rc under the hood), and possible rand (I think they have a no_std option, but that's something to check).

@dyedgreen dyedgreen added the enhancement New feature or request label Feb 26, 2021
@dyedgreen
Copy link
Owner

Once #3 can be merged, this should be possible without restricting features ☺️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants