Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,21 @@ rust-version = "1.82"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[features]
# Note that not enabling this feature does not make the package no_std or not use allocations at all;
# several of the dependencies (i.e. goblin) will always need to allocate memory.
alloc = []
# Callers must be able to provide the PE image as a span of bytes. Opening the file is not supported in no_std.
std = ["dep:memmap2"]
default = ["std"]

[dependencies]
goblin = {version="0.10", default-features = false, features=["pe32", "pe64"]}
thiserror = { version="2", default-features = false }
memmap2 = "0.9"
memmap2 = { version="0.9", optional = true }
either = { version="1.8", default-features = false }
zerocopy = "0.8"
zerocopy-derive = "0.8"

[[bin]]
required-features = ["std"]
name = "main"

[profile.release]
opt-level = "s"
debug = false
Expand Down
Loading
Loading