Skip to content

Commit

Permalink
Fixed nightly pipeline and updated workspace resolver version
Browse files Browse the repository at this point in the history
  • Loading branch information
ko1N committed Dec 16, 2023
1 parent 7d71bb4 commit e02226c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 37 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/nightly-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ jobs:
target: ["x86_64-unknown-linux-gnu", "i686-unknown-linux-gnu", "aarch64-unknown-linux-gnu", "armv7-unknown-linux-gnueabihf", "x86_64-pc-windows-gnu"]
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- name: Install rust 1.70.0
uses: actions-rs/toolchain@v1
with:
toolchain: stable
toolchain: 1.70.0
override: true
- name: Download renamer
run: curl -sSf https://raw.githubusercontent.com/memflow/memflowup/master/target_rename.sh > target_rename.sh
- name: Build artifacts
Expand Down
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
debug = true

[workspace]
resolver = "2"

members = [
"memflow-win32",
"memflow-win32-defs",
Expand Down
36 changes: 1 addition & 35 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,38 +7,4 @@

This crate provides integration for win32 targets for [memflow](https://github.com/memflow/memflow). This library can be used in addition to the memflow core itself read processes, modules, drivers, etc.

Example initializing a win32 target:
```rust
use std::fs::File;
use std::io::Write;

use log::{error, Level};

use memflow::connector::*;
use memflow_win32::win32::{Kernel, Win32OffsetFile};

pub fn main() {
let connector_name = std::env::args().nth(1).unwrap();
let connector_args = std::env::args().nth(2).unwrap_or_default();

// create inventory + connector
let inventory = unsafe { ConnectorInventory::try_new() }.unwrap();
let connector = unsafe {
inventory.create_connector(
&connector_name,
&ConnectorArgs::parse(&connector_args).unwrap(),
)
}
.unwrap();

// initialize kernel
let kernel = Kernel::builder(connector)
.build_default_caches()
.build()
.unwrap();

println!("{:?}", kernel);
}
```

Additional examples can be found in the `examples` subdirectory.
Examples can be found in the `memflow-win32/examples` subdirectory.

0 comments on commit e02226c

Please sign in to comment.