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 support #551

Open
Stupremee opened this issue May 10, 2022 · 6 comments
Open

Add no_std support #551

Stupremee opened this issue May 10, 2022 · 6 comments
Labels
E-medium Effort: medium. S-feature Severity: feature. This adds something new.

Comments

@Stupremee
Copy link

Hello,

I'm currently in need of a correct Uri parser, and I believe the best URI implementation is the one in this crate.
However, I don't want to add the whole http crate as a dependency.
So, it would be very helpful if there was an additional crate just for URI parsing.

@LucioFranco
Copy link
Member

Is there a reason you don't want to just bring in the whole http crate? The dependency is already quite light. I don't think moving things to their own crate makes anyone's life easier.

@Stupremee
Copy link
Author

The reason is that http does not have support for no_std environments.

@LucioFranco
Copy link
Member

Maybe a better goal would be to allow http to support no_std similar to how bytes has no_std support. I don't think the correct solution is to create another crate.

@Stupremee
Copy link
Author

Sure, that would work as well!

@LucioFranco LucioFranco changed the title Move uri module into extra crate Add no_std support Jun 23, 2022
@LucioFranco LucioFranco added S-feature Severity: feature. This adds something new. E-medium Effort: medium. labels Jun 23, 2022
@Erik1000
Copy link

Erik1000 commented Jul 9, 2022

+1 for this

@olanod
Copy link

olanod commented Aug 11, 2022

My use case is an HTTP client running in embedded hardware, hope this PR(#563) can get some feedback :) Ideally it would be nice if http works without alloc but that seemed like a mayor refactor and possibly breaking change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
E-medium Effort: medium. S-feature Severity: feature. This adds something new.
Projects
None yet
Development

No branches or pull requests

4 participants