[package] name = "object-rewrite" version = "0.1.1" edition = "2021" license = "Apache-2.0 OR MIT" repository = "https://github.com/gimli-rs/object/tree/master/crates/rewrite" description = "Rewrite object files with modifications" include = [ "/Cargo.lock", "/Cargo.toml", "/src", ] [package.metadata.docs.rs] features = ['doc'] [dependencies] object = { version = "0.35.0", default-features = false, features = ["build", "elf"], path = "../.." } # Dependencies for the cli anyhow = { version = "1.0.79", optional = true } clap = { version = "4.3.24", features = ["cargo"], optional = true } env_logger = { version = "0.11.2", default-features = false, optional = true } log = { version = "0.4.20", optional = true } memmap2 = { version = "0.9.4", optional = true } [dev-dependencies] object-examples = { path = "../examples" } [features] logging = ["dep:log"] cli = ["logging", "dep:anyhow", "dep:clap", "dep:env_logger", "dep:memmap2"] default = [] all = ["cli", "logging"] doc = [] [[bin]] name = "object-rewrite" path = "src/main.rs" required-features = ["cli"]