@@ -158,6 +158,9 @@ options! {
158
158
methods: {
159
159
regex_option! {
160
160
/// Do not generate any bindings for the given type.
161
+ ///
162
+ /// This option is not recursive, meaning that it will only block types whose names
163
+ /// explicitly match the argument of this method.
161
164
pub fn blocklist_type<T : AsRef <str >>( mut self , arg: T ) -> Builder {
162
165
self . options. blocklisted_types. insert( arg) ;
163
166
self
@@ -171,6 +174,9 @@ options! {
171
174
methods: {
172
175
regex_option! {
173
176
/// Do not generate any bindings for the given function.
177
+ ///
178
+ /// This option is not recursive, meaning that it will only block functions whose
179
+ /// names explicitly match the argument of this method.
174
180
pub fn blocklist_function<T : AsRef <str >>( mut self , arg: T ) -> Builder {
175
181
self . options. blocklisted_functions. insert( arg) ;
176
182
self
@@ -185,6 +191,9 @@ options! {
185
191
regex_option! {
186
192
/// Do not generate any bindings for the given item, regardless of whether it is a
187
193
/// type, function, module, etc.
194
+ ///
195
+ /// This option is not recursive, meaning that it will only block items whose names
196
+ /// explicitly match the argument of this method.
188
197
pub fn blocklist_item<T : AsRef <str >>( mut self , arg: T ) -> Builder {
189
198
self . options. blocklisted_items. insert( arg) ;
190
199
self
@@ -199,6 +208,12 @@ options! {
199
208
regex_option! {
200
209
/// Do not generate any bindings for the contents of the given file, regardless of
201
210
/// whether the contents of the file are types, functions, modules, etc.
211
+ ///
212
+ /// This option is not recursive, meaning that it will only block files whose names
213
+ /// explicitly match the argument of this method.
214
+ ///
215
+ /// This method will use the argument to match the complete path of the file
216
+ /// instead of a section of it.
202
217
pub fn blocklist_file<T : AsRef <str >>( mut self , arg: T ) -> Builder {
203
218
self . options. blocklisted_files. insert( arg) ;
204
219
self
@@ -319,6 +334,9 @@ options! {
319
334
///
320
335
/// This option is transitive by default. Check the documentation of the
321
336
/// [`Builder::allowlist_recursively`] method for further information.
337
+ ///
338
+ /// This method will use the argument to match the complete path of the file
339
+ /// instead of a section of it.
322
340
pub fn allowlist_file<T : AsRef <str >>( mut self , arg: T ) -> Builder {
323
341
self . options. allowlisted_files. insert( arg) ;
324
342
self
0 commit comments