[package]
edition = "2024"
rust-version = "1.85"
name = "object-lang"
version = "0.2.0"
authors = ["James Gober <me@jamesgober.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Writes and reads object files and executables: ELF64 for x86-64 and AArch64 from a format-neutral model, with no linker or assembler involved."
homepage = "https://github.com/jamesgober/object-lang"
documentation = "https://docs.rs/object-lang"
readme = "README.md"
keywords = [
"elf",
"object-file",
"executable",
"relocation",
"compiler",
]
categories = [
"compilers",
"encoding",
"no-std",
]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/jamesgober/object-lang"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
default = ["std"]
std = []
[lib]
name = "object_lang"
path = "src/lib.rs"
[[example]]
name = "exit42"
path = "examples/exit42.rs"
[[example]]
name = "inspect"
path = "examples/inspect.rs"
[[example]]
name = "relocatable"
path = "examples/relocatable.rs"
[[test]]
name = "compiler_output"
path = "tests/compiler_output.rs"
[[test]]
name = "elf_read"
path = "tests/elf_read.rs"
[[test]]
name = "elf_write"
path = "tests/elf_write.rs"
[[test]]
name = "executable"
path = "tests/executable.rs"
[[test]]
name = "llvm_oracle"
path = "tests/llvm_oracle.rs"
[[test]]
name = "properties"
path = "tests/properties.rs"
[[bench]]
name = "bench"
path = "benches/bench.rs"
harness = false
[dependencies]
[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]
[dev-dependencies.proptest]
version = "1"
[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
panic = "abort"
strip = "symbols"