#Problems while building Plugin

1 messages · Page 1 of 1 (latest)

lunar phoenix
#
[package]
name = "essentials-pumpkin"
version = "0.1.0"
edition = "2024"

[lib]
crate-type = ["cdylib"]

[dependencies]
pumpkin = { git = "https://github.com/Pumpkin-MC/Pumpkin.git", branch = "master", package = "pumpkin" } 
pumpkin-util = { git = "https://github.com/Pumpkin-MC/Pumpkin.git", branch = "master", package = "pumpkin-util" }
pumpkin-api-macros = { git = "https://github.com/Pumpkin-MC/Pumpkin.git", branch = "master", package = "pumpkin-api-macros" }
tokio = "1.48"
log = "0.4"

[profile.release]
lto = true
use pumpkin_api_macros::plugin_impl;

#[plugin_impl]
pub struct MyPlugin {}

impl MyPlugin {
    pub fn new() -> Self {
        MyPlugin {}
    }
}

impl Default for MyPlugin {
    fn default() -> Self {
        Self::new()
    }
}
#

Tried also using Cargo.toml and Cargo.lock from PatchBukkit but did not work

heady pelican
#

One message removed from a suspended account.

final current
#

Maybe try running cargo clean and then cargo build -r, sometimes the build process just gets messed up

heady pelican
final current
#

Hmm, maybe try cargo update as well, but otherwise I'm out of ideas. I've had this happen a couple times, but it usually fixed itself with one of these commands

heady pelican
#

One message removed from a suspended account.

final current
#

Well, that's an issue with some other crates that aren't ours. Idk at this point