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 feature gate for embassy-time for edge-dhcp #53

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

JuanCouste
Copy link

Hi, I appreciate the effort invested in the creation of edge-net crates, they been a great help with no_std.
That said I had some issues with forced embassy dependencies for targets that are not reliant on embassy,
And since I've seen that edge-dhcp had a TODO for this, I'll PR the "solution" I use.
Its just a feature gate for edge-dhcp::server module, separate from io in case someone wants to use it manually.

@ivmarkov
Copy link
Owner

Hi, I appreciate the effort invested in the creation of edge-net crates, they been a great help with no_std. That said I had some issues with forced embassy dependencies for targets that are not reliant on embassy, And since I've seen that edge-dhcp had a TODO for this, I'll PR the "solution" I use. Its just a feature gate for edge-dhcp::server module, separate from io in case someone wants to use it manually.

How about replacing this with a fn() -> core::time::Duration (or something) which abstracts the notion of "now" that the server needs?

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

Successfully merging this pull request may close these issues.

2 participants