Skip to content

Commit 849fd5a

Browse files
committed
fix: remove std requirement for signing, fmt
1 parent 002fc11 commit 849fd5a

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

mavlink-core/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,5 @@ sha2 = { version = "0.10", optional = true }
4141
"embedded-hal-02" = ["dep:nb", "dep:embedded-hal-02"]
4242
"serde" = ["dep:serde", "dep:serde_arrays"]
4343
"tokio-1" = ["dep:tokio"]
44-
"signing" = ["dep:sha2", "std"]
44+
"signing" = ["dep:sha2"]
4545
default = ["std", "tcp", "udp", "direct-serial", "serde"]

mavlink/tests/tcp_loopback_tests.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ mod test_tcp_connections {
99

1010
use crate::test_shared;
1111

12-
/// Test whether we can send a message via TCP and receive it OK. This also test signing as a property of a MavConnection if the signing feature is enabled.
12+
/// Test whether we can send a message via TCP and receive it OK. This also test signing as a property of a MavConnection if the signing feature is enabled.
1313
#[test]
1414
pub fn test_tcp_loopback() {
1515
const RECEIVE_CHECK_COUNT: i32 = 5;
@@ -21,7 +21,8 @@ mod test_tcp_connections {
2121

2222
let server_thread = thread::spawn(move || {
2323
//TODO consider using get_available_port to use a random port
24-
let mut server = mavlink::connect("tcpin:0.0.0.0:14550").expect("Couldn't create server");
24+
let mut server =
25+
mavlink::connect("tcpin:0.0.0.0:14550").expect("Couldn't create server");
2526

2627
#[cfg(feature = "signing")]
2728
server.setup_signing(Some(singing_cfg_server));

mavlink/tests/test_shared/mod.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@ pub const COMMON_MSG_HEADER: mavlink::MavHeader = mavlink::MavHeader {
88

99
#[cfg(feature = "signing")]
1010
pub const SECRET_KEY: [u8; 32] = [
11-
0x00, 0x01, 0xf2, 0xe3, 0xd4, 0xc5, 0xb6, 0xa7, 0x98, 0x00, 0x70, 0x76, 0x34, 0x32, 0x00,
12-
0x16, 0x22, 0x42, 0x00, 0xcc, 0xff, 0x7a, 0x00, 0x52, 0x75, 0x73, 0x74, 0x00, 0x4d, 0x41,
13-
0x56, 0xb3,
11+
0x00, 0x01, 0xf2, 0xe3, 0xd4, 0xc5, 0xb6, 0xa7, 0x98, 0x00, 0x70, 0x76, 0x34, 0x32, 0x00, 0x16,
12+
0x22, 0x42, 0x00, 0xcc, 0xff, 0x7a, 0x00, 0x52, 0x75, 0x73, 0x74, 0x00, 0x4d, 0x41, 0x56, 0xb3,
1413
];
1514

1615
#[cfg(feature = "common")]

0 commit comments

Comments
 (0)