- Notifications
You must be signed in to change notification settings - Fork93
Releases: socketcan-rs/socketcan-rs
Version 3.5.0
A major update to thedump module, with some usability improvements to frames and sockets.
CanAnyFrameimplementsFromtrait forCanDataFrame,CanRemoteFrame, andCanErrorFrame.CanFdSocketimplementaTryFromtrait forCanSocket- Added FdFlags::FDF bit mask for CANFD_FDF
- The FDF flag is forced on when creating a CanFdFrame.
- Updates to
dumpmodule:- Re-implemented with text parsing
ParseErrornow implements stdErrortrait viathiserror::Error- Parses FdFlags field properly
- CANFD_FDF bit flag recognized on input
- Fixed reading remote frames
- Now reads remote length
CanDumpRecordchanges:- Removed lifetime and made
devicefield an ownedString
- Removed lifetime and made
- Implemented
CloneandDisplaytraits.Displaytrait is compatible with the candump log record format
dump::Readeris now an Iterator itself, returning fullCanDumpRecorditems- New unit tests
- #59 Embedded Hal for CanFdSocket
Assets2
Uh oh!
There was an error while loading.Please reload this page.
Version 3.4.0
This is a service release to publish a number of pull requests that have accumulated in the repository, including a number of bug fixes and improvements on existing implementations.
- Re-implemented CAN raw sockets usingsocket2
- Added a 'CanId' type with more flexibility than embedded_can::Id
- Moved from UD utility functions and types from frame module to id
- Added a CAN FD example,echo_fd
- Split out
CanAddrand related code into a newaddrmodule. - New
CanRawFrameencapsulatea either type of libc, raw, CAN frame (Classic or FD) - Raw frame reads for CanSocket and CanFdSocket.
- Implemented
ReadandWritetraits forCanSocket - InterfaceCanParams now has all items as Option<>. Can be used to get or set multiple options.
- #58 Add new API to enumerate available SocketCAN interfaces
- #60 Make
CanStatepublic - #61
CanFdSocketread_frame crash fix - #64 Make termination u16 and add
set_termination - #65 Dump parsing also optionally trims off CR at the line end
- #66
CanInterface: addset_can_params()method to set multiple parameters - #67 Improved tokio async implementation
- #68 remove unnecessary qualifications
- #73 Update some dependencies
itertoolsto v0.13,nixto v0.29,bitflagsto v2.6,mioto v1
- #74 CanFDFrames with ExtendedID are not correctly parsed by socketcan::dump::Reader
- #75 Fix DLC and add padding for CANFD frames
- #76 Add CanCtrlModes::has_mode(mode: CanCtrlMode)
- #80 Friendly non-Linux compilation error
- Remove unused byte_conv dependency
Assets2
Uh oh!
There was an error while loading.Please reload this page.
Version 3.3.1
- #78 Fix memory error receiving CAN FD frames.
Assets2
Uh oh!
There was an error while loading.Please reload this page.
Version 3.3.0
CanFD support for Tokio
- #53 Added CanFD support for tokio
- Serialized tokio unit tests and put them behind the "vcan_tests" feature
Assets2
Uh oh!
There was an error while loading.Please reload this page.
Version 3.2.0
Expanded Netlink functionality to configure and query the CAN interface.
- #32 Further expanded netlink functionality:
- Added setters for most additional interface CAN parameters
- Ability to query back interface CAN parameters
- Expanded
InterfaceDetailsto include CAN-specific parameters - Better integration of low-level types with
neli - Significant cleanup of the
nlmodule - Split the
nlmodule into separate sources for higher and lower-level code
Assets2
Uh oh!
There was an error while loading.Please reload this page.
Version 3.1.0
Additional netlink implementation
- Added a number of netlink commands to modify the CAN interface parameters. including: setting the bitrate and (for FD) setting the data bitrate, setting control modes, manually restarting the interface, and setting the automatic restart delay time.
- PR #50 Add set_bitrate method
- PR #45 Dump handles extended IDs
- PR #44 Fix clippy warnings
- PR #43 Implement AsPtr for CanAnyFrame
Assets2
Uh oh!
There was an error while loading.Please reload this page.
Version 3.0.0
Support for Rust async/await
- All oftokio-socketcan has been merged into this crate and will be available with an
async-tokiobuild feature. - #41 Added initial support for
async-iofor use withasync-stdandsmol - Split
SocketOptionstrait out ofSockettrait for use with async (breaking) - Added cargo build features for
tokioorasync-io. - Also created specific build features for
async-stdandsmolwhich just bring in theasync-iomodule and alias the module name toasync-stdorsmol, respectively, and build examples for each.
Assets2
Uh oh!
There was an error while loading.Please reload this page.
Version 2.1.0
Some usability improvements.
- Made
CanAddrpulic and added functions to help interact with low-level sockaddr types. Sockets can now be opened with an address. - Can create an
Errordirectly from aCanErrorFrameorstd::io::ErrorKind. - #46 Applications can create error frames:
CanErrorFrame::new()now works.CanErrorFrame::new_error()is similar but more intuitive using a raw ID word.From<CanError> for CanErrorFrameto create an error frame from aCanError.
- Added
Frame::from_raw_id()andFrame::remote_from_raw_id() - Bumped MSRV to 1.65.0
Assets2
Uh oh!
There was an error while loading.Please reload this page.
Version 2.0.0
Extensive rework of the crate to cleanup, refactor, and modernize the library and add some new features like CAN FD support.
- Moved to Rust Edition 2021 w/ MSRV 1.64
- Refactored frames into differnt types: Data, Remote, Error (and now FD), that can be managed through enumeraed wraper types
CanFrameand/orCanFdFrame - Pushed some implementation upsream to thelibc andnix crates, and/or adapted upstream types.
- CAN 2.0 frames based on
libc::can_frame - CAN FD frames based on
libc::canfd_frame
- CAN 2.0 frames based on
- #33 Netlink extensions
- Creating and deleting interfaces
- Setting MTU (to/from FD)
- #21 New CI using GitHub Actions
- #20 Composite PR with some modernization
- Pulls in#13, and updates to the latest
neliv0.6 - Updates
nixdependency to latest v0.23 - Moves to Rust 2018 w/ MSRV 1.54
- Errors conform to std::error::Error
- Pulls in#13, and updates to the latest
- #16 Add CAN FD support
- #24 Embedded HAL Traits
- Plus some source refactoring into more coherent modules
Assets2
Uh oh!
There was an error while loading.Please reload this page.