Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc6ee691

Browse files
committed
Bumped version to v3.2.0 and updated README and CHANGELOG in preparation for release
1 parent93e6f8b commitc6ee691

File tree

4 files changed

+30
-18
lines changed

4 files changed

+30
-18
lines changed

‎CHANGELOG.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,20 @@
22

33
The change log for the Rust[socketcan](https://crates.io/crates/socketcan) library.
44

5+
##[Version 3.2.0](https://github.com/socketcan-rs/socketcan-rs/compare/v3.1.0..v3.2.0) (2023-10-16)
6+
7+
-[#32](https://github.com/socketcan-rs/socketcan-rs/issues/32) Further expanded netlink functionality:
8+
- Added setters for most additional interface CAN parameters
9+
- Ability to query back interface CAN parameters
10+
- Expanded`InterfaceDetails` to include CAN-specific parameters
11+
- Better integration of low-level types with`neli`
12+
- Significant cleanup of the`nl` module
13+
- Split the`nl` module into separate sources for higher and lower-level code
14+
515

616
##[Version 3.1.0](https://github.com/socketcan-rs/socketcan-rs/compare/v3.0.0..v3.1.0) (2023-10-12)
717

8-
- 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.
18+
-[#32](https://github.com/socketcan-rs/socketcan-rs/issues/32)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.
919
-[PR#50](https://github.com/socketcan-rs/socketcan-rs/pull/50) Add set_bitrate method
1020
-[PR#45](https://github.com/socketcan-rs/socketcan-rs/pull/45) Dump handles extended IDs
1121
-[PR#44](https://github.com/socketcan-rs/socketcan-rs/pull/44) Fix clippy warnings

‎Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name ="socketcan"
3-
version ="3.2.0-pre.0"
3+
version ="3.2.0"
44
edition ="2021"
55
rust-version ="1.65"
66
authors = [

‎README.md

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Rust SocketCAN
22
==============
33

4-
This library implements Controller Area Network (CAN) communications on Linux using the SocketCANinterfaces. This provides a network socket interface to the CAN bus.
4+
This library implements Controller Area Network (CAN) communications on Linux using the SocketCANsubsystem. This provides a network socket interface to the CAN bus.
55

66
[Linux SocketCAN](https://docs.kernel.org/networking/can.html)
77

@@ -10,19 +10,31 @@ Please see the [documentation](https://docs.rs/socketcan) for details about the
1010

1111
##Latest News
1212

13-
###Version 3.x adds integrated async/await and more!
13+
###Version 3.x adds integrated async/await, improved Netlink coverage, and more!
1414

15-
Version 3.0 adds integrated support for async/await, with the most popular runtimes,_tokio, async-std_, and_smol_.To get started wehave already merged the[tokio-socketcan](https://github.com/oefd/tokio-socketcan) crate into this one and implemented`async-io`.
15+
Version 3.0 adds integrated support for async/await, with the most popular runtimes,_tokio, async-std_, and_smol_.Wehave merged the[tokio-socketcan](https://github.com/oefd/tokio-socketcan) crate into this one and implemented`async-io`.
1616

1717
Unfortunaly this required a minor breaking change to the existing API, so we bumped the version to 3.0.
1818

1919
The async support is optional, and can be enabled with a feature for the target runtime:`tokio`,`async-std`, or`smol`.
2020

21-
Additional implementation of the netlink control of the CAN interface was added in v3.1 allws an application to do things like set the bitrate on the interface, set control modes, restart the inteface, etc.
21+
Additional implementation of the netlink control of the CAN interface was added in v3.1 allowing an application to do things like set the bitrate on the interface, set control modes, restart the inteface, etc.
22+
23+
v3.2 increased the interface configuration coverage with Netlink, allowing an application to set most interface CAN parameters and query them all back.
24+
25+
###What's New in Version 3.2
26+
27+
-[#32](https://github.com/socketcan-rs/socketcan-rs/issues/32) Further expanded netlink functionality:
28+
- Added setters for most additional interface CAN parameters
29+
- Ability to query back interface CAN parameters
30+
- Expanded`InterfaceDetails` to include CAN-specific parameters
31+
- Better integration of low-level types with`neli`
32+
- Significant cleanup of the`nl` module
33+
- Split the`nl` module into separate sources for higher and lower-level code
2234

2335
###What's New in Version 3.1
2436

25-
- Added netlink functionality:
37+
-[#32](https://github.com/socketcan-rs/socketcan-rs/issues/32)Added netlink functionality:
2638
- Set the bitrate[PR#50](https://github.com/socketcan-rs/socketcan-rs/pull/50), and the FD data bitrate
2739
- Set the control modes (Loopback, Listen-Only, etc)
2840
- Set automatic restart delay time
@@ -31,21 +43,11 @@ Additional implementation of the netlink control of the CAN interface was added
3143
-[PR#44](https://github.com/socketcan-rs/socketcan-rs/pull/44) Fix clippy warnings
3244
-[PR#43](https://github.com/socketcan-rs/socketcan-rs/pull/43) Implement AsPtr for CanAnyFrame
3345

34-
###What's New in Version 3.0
35-
36-
- Support for Rust async/await
37-
- All of[tokio-socketcan](https://github.com/oefd/tokio-socketcan) has been merged into this crate and will be available with an`async-tokio` build feature.
38-
-[#41](https://github.com/socketcan-rs/socketcan-rs/pull/41) Added initial support for`async-io` for use with`async-std` and`smol`
39-
- Split`SocketOptions` trait out of`Socket` trait for use with async (breaking)
40-
- Added cargo build features for`tokio` or`async-io`.
41-
- Also created specific build features for`async-std` and`smol` which just bring in the`async-io` module and alias the module name to`async-std` or`smol`, respectively, and build examples for each.
42-
4346
##Next Steps
4447

4548
A number of items still did not make it into a release. These will be added in v3.x, coming soon.
4649

4750
- Issue[#22](https://github.com/socketcan-rs/socketcan-rs/issues/22) Timestamps, including optional hardware timestamps
48-
- Issue[#32](https://github.com/socketcan-rs/socketcan-rs/issues/32) A number of important netlink commands were added in v3.1, particularly the ability to set bitrates, reset the interface, and set control modes. But the implementation is still incomplete, particularly in regard to retrieving parameters and status from the interface.
4951
- Better documentation. This README will be expanded with basic usage information, along with better doc comments, and perhaps creation of the wiki
5052

5153

‎src/nl/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -838,8 +838,8 @@ impl CanInterface {
838838
#[cfg(test)]
839839
pubmod tests{
840840
usesuper::*;
841-
use std::ops::Deref;
842841
use serial_test::serial;
842+
use std::ops::Deref;
843843

844844
/// RAII-style helper to create and clean-up a specific vcan interface for a single test.
845845
/// Using drop here ensures that the interface always gets cleaned up

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp