1 // Copyright 2024, Linaro Limited 2 // Author(s): Manos Pitsidianakis <manos.pitsidianakis@linaro.org> 3 // SPDX-License-Identifier: GPL-2.0-or-later 4 5 use std::path::Path; 6 7 fn main() { 8 if !Path::new("src/bindings.rs").exists() { 9 panic!( 10 "No generated C bindings found! Either build them manually with bindgen or with meson \ 11 (`ninja bindings.rs`) and copy them to src/bindings.rs, or build through meson." 12 ); 13 } 14 } 15