Crates.io | hexchat-unsafe-plugin |
lib.rs | hexchat-unsafe-plugin |
version | 2.4.0-pre1 |
source | src |
created_at | 2022-04-12 01:51:13.033044 |
updated_at | 2024-12-07 10:58:15.34122 |
description | Lets you write native HexChat plugins in mostly-safe Rust |
homepage | https://ganarchy.autistic.space/project/207026ae5e35da096b8110afe1ba2973a0e54fdb |
repository | https://soniex2.autistic.space/git-repos/hexchat-unsafe-plugin.git |
max_upload_size | |
id | 566192 |
size | 149,205 |
hexchat-unsafe-plugin
provides rusty API bindings for developing native
HexChat plugins.
To get started, implement hexchat_plugin::Plugin
on a struct and use the
hexchat_plugin!('a, impl Plugin<'a>)
macro in your lib.rs
. Do not provide a
main
, as it will not work. Make sure to use the cdylib
crate-type, or it
will also not work.
Also note that plugins may be loaded multiple times. It's recommended to avoid using global state (statics, thread locals) so as to not cause issues with it.
For a production-grade plugin using this crate, take a look at [TODO].
Hexchat Plugin API Bindings for Rust
Copyright (C) 2018, 2021, 2022 Soni L.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.