elf_loader 0.14.0

A high-performance, no_std compliant ELF loader and JIT linker for Rust.
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.93.0"
name = "elf_loader"
version = "0.14.0"
authors = ["wzhao <1207410841@qq.com>"]
build = "build.rs"
exclude = [
    ".gitignore",
    "ci",
    "tests",
    "examples",
    "docs",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A high-performance, no_std compliant ELF loader and JIT linker for Rust."
readme = "README.md"
keywords = [
    "elf",
    "loader",
    "jit",
    "linker",
    "no-std",
]
categories = [
    "no-std",
    "embedded",
    "os",
    "parsing",
    "development-tools",
]
license = "MIT/Apache-2.0"
repository = "https://github.com/weizhiao/elf_loader"

[features]
default = []
log = ["dep:log"]
portable-atomic = [
    "dep:portable-atomic",
    "dep:portable-atomic-util",
    "spin/portable_atomic",
]
use-syscall = ["dep:syscalls"]
version = []

[lib]
name = "elf_loader"
path = "src/lib.rs"

[[bench]]
name = "benchmark"
path = "benches/benchmark.rs"
harness = false

[dependencies.bitflags]
version = "2.9.0"

[dependencies.cfg-if]
version = "1.0"

[dependencies.elf]
version = "0.8"
default-features = false

[dependencies.foldhash]
version = "0.2.0"
default-features = false

[dependencies.hashbrown]
version = "0.16.0"
features = ["default-hasher"]
default-features = false

[dependencies.log]
version = "0.4.27"
optional = true
default-features = false

[dependencies.portable-atomic]
version = "1.13"
features = ["require-cas"]
optional = true
default-features = false

[dependencies.portable-atomic-util]
version = "0.2.5"
features = ["alloc"]
optional = true
default-features = false

[dependencies.spin]
version = "0.10"
features = [
    "mutex",
    "rwlock",
    "spin_mutex",
]
default-features = false

[dependencies.syscalls]
version = "0.8.1"
optional = true
default-features = false

[dev-dependencies.criterion]
version = "0.8.2"

[dev-dependencies.env_logger]
version = "0.11.6"

[dev-dependencies.gen-elf]
version = "0.1.0"

[dev-dependencies.libloading]
version = "0.9.0"

[dev-dependencies.object]
version = "0.38.1"

[build-dependencies.cc]
version = "1.2"

[target."cfg(unix)".dependencies.libc]
version = "0.2.180"
default-features = false

[target."cfg(windows)".dependencies.windows-sys]
version = "0.61"
features = [
    "Win32_Foundation",
    "Win32_System_Memory",
    "Win32_System_SystemInformation",
    "Win32_Security",
    "Win32_System_IO",
    "Win32_Storage",
    "Win32_Storage_FileSystem",
    "Win32_System_Threading",
]

[profile.release]
opt-level = "s"
lto = "thin"
codegen-units = 1
panic = "abort"