How to make plugins? 1 0
It's still pretty underbaked but you can check out my recent project based around a plugin system (dynamic loading). https://github.com/CerulanLumina/feed-plumber
It relies on the c abi and a whole lot of raw /ffi constructs but contains a helper crate to allow defining plugins in a somewhat rusty manner.
Hopefully it'll be of some use to you!
Reply
cmp::Ordering vs comparison symbols 4 0
I'm guessing you're asking because you got a clippy lint. Using Ordering
allows you to match
the output therefore only calling partial_ord
once, compared to using an if-else chain which might call it several times. In many/most cases this would probably be compiler optimized anyway but this makes it explicit.
Reply
Next
luminasapphira @beehaw.org
Rust dev (@ 1Password) and game modder. I like Factorio, FFXIV, (modded) Minecraft, and similar!
Posts 0
Comments 2