-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
First trying with rust in weechat #30
Comments
You need to create a new crate, docs for this can be found in the official Rust docs: https://doc.rust-lang.org/cargo/guide/creating-a-new-project.html#creating-a-new-package. Make sure that the type will be The examples in this repo are a good starting point, e.g. https://github.com/poljar/rust-weechat/blob/master/weechat/examples/sample/Cargo.toml. You'll need to replace the weechat dependency line to depend on a released version of this crate, that is replace the |
Okay, let me see if I'm doing it right. These are the steps. |
Are you trying to build |
I'm trying to build weechat-matrix-rs but I got stuck here. |
In that case you need to point the env variable $ WEECHAT_PLUGIN_FILE="/home/whatever/weechat-plugin.h" make install |
I've tried with and without quotes. Same result: WeeChat 3.0 [compiled on Nov 11 2020 11:12:13] Shouldn't "Rust" appear in the list of plugins? |
The environment variable is a build time option, not a install time option. $ WEECHAT_PLUGIN_FILE="/thepathIfound/weechat-plugin.h" cargo build && make install We're using cargo directly since make will think there's nothing to do but cargo will correctly notice that the environment variable got changed.
No, the name of the plugin is |
Hello Guys, please don't kill me.
I cloned the repo and cargo build it to create those compiled files.
Should I mkdir /usr/share/weechat/rust than moving those compiled from weechat/src/*rs to there?
I've used some scripts with python and lua plugin, but I never added such a thing as a new language plugin before the scripts.
Everything else I've I got from apt, for instance, apt install weechat-python. So how to do it in manual?
Sorry for asking it here.
The text was updated successfully, but these errors were encountered: