Skip to content

Commit

Permalink
Fixed --no-default-features build with latest memflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ko1N committed Mar 28, 2024
1 parent 1ae7155 commit 65e2e78
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
runs-on: ubuntu-latest
needs: [build_linux_x86_64]
steps:
- run: cargo install https://github.com/memflow/memflowup
- run: cargo install --git https://github.com/memflow/memflowup
- run: echo "${{ secrets.MEMFLOW_REGISTRY_SIGNING_KEY}}" > ec-secp256k1-priv-key.pem

- uses: actions/download-artifact@v4
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "memflow-coredump"
version = "0.2.0"
version = "0.2.1"
authors = ["ko1N <[email protected]>", "Aurimas Blažulionis <[email protected]>"]
edition = "2021"
description = "win32 coredump connector for the memflow physical memory introspection framework"
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ if let Ok(mut mem) = create_connector(&str::parse(path.to_str().unwrap()).expect
#[cfg(feature = "filemap")]
pub type CoreDump<'a> = ReadMappedFilePhysicalMemory<'a>;
#[cfg(not(feature = "filemap"))]
pub type CoreDump<'a> = FileIoMemory<File>;
pub type CoreDump<'a> = FileIoMemory<CloneFile>;

/// Opens a Microsoft Windows Coredump
///
Expand Down Expand Up @@ -71,7 +71,7 @@ pub fn create_connector<'a>(args: &ConnectorArgs) -> Result<CoreDump<'a>> {
}
#[cfg(not(feature = "filemap"))]
{
Ok(CoreDump::try_with_reader(file, map)?.into_connector())
Ok(CoreDump::with_mem_map(file.into(), map)?)
}
}

Expand Down

0 comments on commit 65e2e78

Please sign in to comment.