From 870cf531a62579140561b1c162b428f32c2ea6e0 Mon Sep 17 00:00:00 2001 From: chrysn Date: Tue, 30 Jan 2024 15:55:29 +0100 Subject: [PATCH] build: Move away from deprecated shlex function --- Cargo.toml | 2 +- build.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index aca4f7e..48ccb92 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,7 +25,7 @@ riot-rs-core = { version = "< 0.2.0", optional = true } [build-dependencies] bindgen = "^0.64" -shlex = "^1" +shlex = "^1.3" serde_json = "1" serde = { version = "1", features = [ "derive" ] } regex = "1" diff --git a/build.rs b/build.rs index 77ac271..d057245 100644 --- a/build.rs +++ b/build.rs @@ -119,7 +119,8 @@ fn main() { cc = consensus_cc .expect("Entries are present in compile_commands.json") .to_string(); - cflags = shlex::join(consensus_cflag_groups.unwrap().iter().flatten().map(|s| *s)); + cflags = shlex::try_join(consensus_cflag_groups.unwrap().iter().flatten().map(|s| *s)) + .expect("Input is not expected to contain NUL characters"); let usemodule = { #[cfg(not(feature = "riot-rs"))]