diff options
Diffstat (limited to 'bindgen/lib.rs')
-rw-r--r-- | bindgen/lib.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bindgen/lib.rs b/bindgen/lib.rs index 53bbd887..4b71fb97 100644 --- a/bindgen/lib.rs +++ b/bindgen/lib.rs @@ -731,6 +731,13 @@ impl Builder { /// /// The default is the latest stable Rust version pub fn rust_target(mut self, rust_target: RustTarget) -> Self { + #[allow(deprecated)] + if rust_target <= RustTarget::Stable_1_30 { + warn!( + "The {} rust target is deprecated. If you have a good reason to use this target please report it at https://github.com/rust-lang/rust-bindgen/issues", + String::from(rust_target) + ); + } self.options.set_rust_target(rust_target); self } |