Skip to content

Commit

Permalink
Fixed example feature requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
ko1N committed Dec 16, 2023
1 parent e0954a9 commit 00ec0da
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ default-members = [
"memflow-win32-defs",
]

#[patch.crates-io]
# [patch.crates-io]
# memflow = { path = "../memflow/memflow" }
8 changes: 4 additions & 4 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ cargo build --release --all-features

# install connector to system dir
if [ ! -z "$1" ] && [ $1 = "--system" ]; then
echo "installing connector system-wide in /usr/lib/memflow"
if [[ ! -d /usr/lib/memflow ]]; then
sudo mkdir /usr/lib/memflow
echo "installing connector system-wide in /usr/local/lib/memflow"
if [[ ! -d /usr/local/lib/memflow ]]; then
sudo mkdir /usr/local/lib/memflow
fi
sudo cp target/release/libmemflow_win32.so /usr/lib/memflow/libmemflow_win32.7.so
sudo cp target/release/libmemflow_win32.so /usr/local/lib/memflow/libmemflow_win32.7.so
fi

# install connector in user dir
Expand Down
10 changes: 10 additions & 0 deletions memflow-win32/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,13 @@ download_progress = ["memflow-win32-defs/download_progress"]
name = "dump_offsets"
path = "examples/dump_offsets.rs"
required-features = ["memflow/serde_derive"]

[[example]]
name = "open_process"
path = "examples/open_process.rs"
required-features = ["memflow/plugins"]

[[example]]
name = "process_list"
path = "examples/process_list.rs"
required-features = ["memflow/plugins"]

0 comments on commit 00ec0da

Please sign in to comment.