Skip to content

Commit

Permalink
add brutal-shutdown feature notice
Browse files Browse the repository at this point in the history
  • Loading branch information
zephyrchien committed May 10, 2022
1 parent f6b2d1e commit 416da59
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 11 deletions.
28 changes: 19 additions & 9 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "realm"
version = "2.3.0"
version = "2.3.1"
authors = ["zhboner <[email protected]>"]
edition = "2021"

Expand Down Expand Up @@ -31,7 +31,7 @@ path = "src/bin.rs"
realm_io = { path = "realm_io" }
realm_core = { path = "realm_core" }
realm_syscall = { path = "realm_syscall" }
kaminari = { version = "0.7.2", optional = true }
kaminari = { version = "0.8", optional = true }

# common
cfg-if = "1"
Expand Down
4 changes: 4 additions & 0 deletions src/consts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def_feat!(FEATURE_MIMALLOC, "mimalloc");
def_feat!(FEATURE_JEMALLOC, "jemalloc");
def_feat!(FEATURE_MULTI_THREAD, "multi-thread");
def_feat!(FEATURE_TRANSPORT, "transport");
def_feat!(FEATURE_BRUTAL_SHUTDOWN, "brutal-shutdown");

pub struct Features {
pub mimalloc: bool,
Expand All @@ -34,6 +35,7 @@ pub struct Features {
pub hook: bool,
pub proxy: bool,
pub transport: bool,
pub brutal_shutdown: bool,
}

pub const FEATURES: Features = Features {
Expand All @@ -43,6 +45,7 @@ pub const FEATURES: Features = Features {
hook: FEATURE_HOOK,
proxy: FEATURE_PROXY,
transport: FEATURE_TRANSPORT,
brutal_shutdown: FEATURE_BRUTAL_SHUTDOWN,
};

impl Display for Features {
Expand All @@ -55,6 +58,7 @@ impl Display for Features {
};
}

disp_feat!(brutal_shutdown, "brutal");
disp_feat!(hook, "hook");
disp_feat!(proxy, "proxy");
disp_feat!(transport, "transport");
Expand Down

0 comments on commit 416da59

Please sign in to comment.