From de7b926737b3134a5f3fb1548085dec562f77c26 Mon Sep 17 00:00:00 2001 From: zephyr Date: Tue, 19 Dec 2023 21:41:20 +0900 Subject: [PATCH] remove hook from default features --- Cargo.lock | 14 ++++++++++++-- Cargo.toml | 2 +- readme.md | 4 ++-- realm_hook/Cargo.toml | 2 +- 4 files changed, 16 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index c9bab136..158e017e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -707,6 +707,16 @@ dependencies = [ "winapi", ] +[[package]] +name = "libloading" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c571b676ddfc9a8c12f1f3d3085a7b163966a8fd8098a90640953ce5f6170161" +dependencies = [ + "cfg-if", + "windows-sys 0.48.0", +] + [[package]] name = "libm" version = "0.2.8" @@ -1069,7 +1079,7 @@ dependencies = [ name = "realm_hook" version = "0.1.4" dependencies = [ - "libloading", + "libloading 0.8.1", "once_cell", ] @@ -1079,7 +1089,7 @@ version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "649558d37699ce29b521830fc129da236ba65efe0117e05d7fda0380d301a004" dependencies = [ - "libloading", + "libloading 0.7.4", "once_cell", ] diff --git a/Cargo.toml b/Cargo.toml index fd7bb2fa..b296c5ad 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -60,7 +60,7 @@ tokio = { version = "1", features = ["macros"] } [features] -default = ["hook", "proxy", "balance", "multi-thread", "transport", "brutal-shutdown" ] +default = ["proxy", "balance", "multi-thread", "transport", "brutal-shutdown"] hook = ["realm_core/hook"] proxy = ["realm_core/proxy"] brutal-shutdown = ["realm_core/brutal-shutdown"] diff --git a/readme.md b/readme.md index ad4347a8..a281c65d 100644 --- a/readme.md +++ b/readme.md @@ -73,7 +73,7 @@ The `realm` binary will be available in `target/release`. - jemalloc: custom memory allocator. - page-alloc: custom memory allocator. -Default: hook + proxy + balance + transport + brutal-shutdown + multi-thread. +Default: proxy + balance + transport + brutal-shutdown + multi-thread. See also: [Cargo.toml](Cargo.toml). @@ -101,7 +101,7 @@ Or have a look at [Cross](https://github.com/cross-rs/cross), it makes things ea ## Usage ```shell -Realm 2.5.0 [hook][proxy][balance][brutal][transport][multi-thread] +Realm 2.5.0 [proxy][balance][brutal][transport][multi-thread] A high efficiency relay tool USAGE: diff --git a/realm_hook/Cargo.toml b/realm_hook/Cargo.toml index db429f2b..741b62ea 100644 --- a/realm_hook/Cargo.toml +++ b/realm_hook/Cargo.toml @@ -13,4 +13,4 @@ license = "MIT" [dependencies] once_cell = "1" -libloading = "0.7" +libloading = "0.8"