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

Fix compiler warnings (requires rustc 1.36.0). #34

Merged
merged 2 commits into from
Aug 2, 2020

Conversation

mgottschlag
Copy link
Contributor

mem::unitialized() is deprecated, use mem::MaybeUninit instead which exists
since rustc 1.36.0.

The documentation needed to be pulled into the macro, I verified that locally the correct documentation is generated.

I don't know what your policy regarding the minimum rustc version is (or if you have one).

mem::unitialized() is deprecated, use mem::MaybeUninit instead which exists
since rustc 1.36.0.
@mgottschlag
Copy link
Contributor Author

Okay, so apparently there is a minimum rust version specified. Should the corresponding change just be dropped?

@mgottschlag
Copy link
Contributor Author

Wouldn't it be better to have a moving compatibility policy where major releases support the N most recent rust versions?

@mgottschlag
Copy link
Contributor Author

Apparently, the dependencies of the examples already require rustc 1.40 or newer - or at least that is how I'd interpret that CI failure.

bors bot added a commit that referenced this pull request Aug 2, 2020
35: RFC: Line event stream support for Tokio r=posborne a=mgottschlag

The second commit (on top of #34 for my convenience, but completely independent) adds support for asynchronous handling of line events/interrupts based on Tokio. This patch probably fixes #18 .

This probably needs some further discussion:

* I set the Rust edition to 2018 to be able to use `async`/`await` in the example.
* The API is just a light wrapper around `LineEventHandle`. I implemented `AsRef<LineEventHandle>` instead of adding a separate `get_value()` function. Do we want a function to destroy an `AsyncLineEventHandle` and get the original `LineEventHandle` back?
* I placed the type in an `async_tokio` module and behind an `async_tokio` feature flag, under the expectation that one day there might be wrapper types for other async I/O frameworks (async_std?) as well.

Co-authored-by: Mathias Gottschlag <mgottschlag@gmail.com>
Co-authored-by: Paul Osborne <osbpau@gmail.com>
@bors bors bot merged commit e2ae6cf into rust-embedded:master Aug 2, 2020
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.

1 participant