match new API of serialport-rs 2.0.0 #1
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Prepare the changes to be made to use the next release of
serialport-rs
:termios
crate was replaced bynix
, so replacing it here as welllibc
is taken fromnix
crate, it avoid to use a different version than whatnix
is using.available_baud_rates
is removed in favor ofBaudRate::platform_rates()
so removing thepub use
Result
andError
type (just reexporting the ones fromserialport-rs
), it's for having some conversion trait fornix::Error
since we're usingnix
now and termios functions returns this kind of error instead ofio::Error
The downside is that
Cargo.toml
is now referencing git repositories instead of published versions.Maybe you'll want to wait for the release of
serialport-rs
before merging.