Crate fbinit

source ·
Expand description

Provides FacebookInit structure that must be used in Facebook code that requires pre-initialization, e.g. like C++’s logging.

Structs

  • This type is a token that allows code to prove initFacebook has been called. A function can require this proof by taking _fb: FacebookInit as an argument.

Functions

  • Produces a proof that initFacebook has been called, without actually calling initFacebook.
  • Produces proof that initFacebook has been called, or panics otherwise.
  • Initializes fbinit, returning proof that initFacebook was called.
  • Returns if facebookInit has been performed.

Attribute Macros