From f8c6381046f87b897710686bd70063ed692e4563 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Tue, 6 Apr 2021 11:15:08 +0200 Subject: [PATCH] Re-introduce whitelist_recursively (with deprecation notice) Seems like an oversight from #1990. Fixes #2022. --- src/lib.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 0c207a2f0d..85d555992e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -696,6 +696,12 @@ impl Builder { self } + /// Deprecated alias for allowlist_recursively. + #[deprecated(note = "Use allowlist_recursively instead")] + pub fn whitelist_recursively(self, doit: bool) -> Self { + self.allowlist_recursively(doit) + } + /// Generate `#[macro_use] extern crate objc;` instead of `use objc;` /// in the prologue of the files generated from objective-c files pub fn objc_extern_crate(mut self, doit: bool) -> Self {