Skip to content

Commit

Permalink
Re-introduce whitelist_recursively (with deprecation notice)
Browse files Browse the repository at this point in the history
Seems like an oversight from rust-lang#1990.

Fixes rust-lang#2022.
  • Loading branch information
emilio authored and LoganBarnett committed Dec 2, 2023
1 parent 3297730 commit f8c6381
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lib.rs
Expand Up @@ -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 {
Expand Down

0 comments on commit f8c6381

Please sign in to comment.