Cargo Features

[dependencies]
hexchat-api = { version = "0.3.2", default-features = false, features = ["threadsafe"] }
default = threadsafe

The "threadsafe" flag is enabled by default.

threadsafe default

Enabled by default, the threadsafe features are enabled. This gives plugin authors access to ThreadSafeContext, ThreadSafeListIterator, ThreadSafeHexchat and the main_thread() function for ensuring code is executed on the main thread.