From 4481f2bdd356c9d34d31414dac1754424022e76e Mon Sep 17 00:00:00 2001 From: Mike Hommey Date: Wed, 20 Apr 2022 16:53:06 +0900 Subject: [PATCH] Update syn dependency to at least 1.0.88 While the Cargo.lock has 1.0.89, the current minimal version in Cargo.toml is 1.0.3, which cannot parse modern Rust code. This leads to some downstreams (*cough* Debian) inadvertently building cbindgen against older versions of syn and the resulting cbindgen, even if it is the last version, not being able to parse recent Rust code. Bumping the version in Cargo.toml alleviates this to some extent. A quick scan of the syn logs suggests 1.0.88 is the last version where parsing support relevant to stable Rust syntax was added. --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 4d8a7b110..3b45e041b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -33,7 +33,7 @@ quote = "1" heck = "0.4" [dependencies.syn] -version = "1.0.3" +version = "1.0.88" default-features = false features = ["clone-impls", "extra-traits", "full", "parsing", "printing"]