electron-hook

Crates.ioelectron-hook
lib.rselectron-hook
version
sourcesrc
created_at2025-01-27 23:24:43.438228
updated_at2025-02-06 17:21:45.891664
descriptionIn-memory Electron mod loader.
homepagehttps://github.com/meguminsama/electron-hook
repositoryhttps://github.com/meguminsama/electron-hook
max_upload_size
id1533051
Cargo.toml error:TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
megumin (MeguminSama)

documentation

README

electron-hook

A Rust library for loading mods into Electron applications without patching any files.

This project was designed to ease some pain points with modding Discord, but it can be used for most Electron applications.

For some real-life uses of electron-hook, check out:

Installation

Add this to your Cargo.toml:

[dependencies]
electron-hook = "0.2.0"

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

And in your lib.rs:

pub use electron_hook::*;

When you build your project with --lib it will generate a .dll or .so, which you can pass the path of into electron_hook::launch

Usage

For a better example, check out the Documentation

electron_hook::launch(&electron_executable, &library_path, &asar_path, vec![], true);
Commit count: 23

cargo fmt