diff --git a/Cargo.toml b/Cargo.toml index 4f81ab8..45d0ce0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,5 +12,5 @@ default-members = [ "memflow-win32-defs", ] -#[patch.crates-io] +# [patch.crates-io] # memflow = { path = "../memflow/memflow" } diff --git a/install.sh b/install.sh index a22fd08..2f7e506 100755 --- a/install.sh +++ b/install.sh @@ -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 diff --git a/memflow-win32/Cargo.toml b/memflow-win32/Cargo.toml index 2f62307..f6d0368 100644 --- a/memflow-win32/Cargo.toml +++ b/memflow-win32/Cargo.toml @@ -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"]