[][src]Crate fbinit

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

Structs

FacebookInit

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

assume_init

Produces a proof that initFacebook has been called, without actually calling initFacebook.

expect_init

Produces proof that initFacebook has been called, or panics otherwise.

Attribute Macros

compat_test
main
test