Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 848 Bytes

blacklisting.md

File metadata and controls

30 lines (22 loc) · 848 Bytes

Blacklisting

If you need to provide your own custom translation of some type (for example, because you need to wrap one of its fields in an UnsafeCell), you can explicitly blacklist generation of its definition. Uses of the blacklisted type will still appear in other types' definitions. (If you don't want the type to appear in the bindings at all, make it opaque instead of blacklisting it.)

Blacklisted types are pessimistically assumed not to be able to derive any traits, which can transitively affect other types' ability to derive traits or not.

Library

Command Line

  • --blacklist-type <type>

Annotations

/// <div rustbindgen hide></div>
class Foo {
    // ...
};