asmkit-rs 0.5.0

Portable assembler toolkit for encoding x86/x64, AArch64, and RISC-V
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.85"
name = "asmkit-rs"
version = "0.5.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Portable assembler toolkit for encoding x86/x64, AArch64, and RISC-V"
readme = "README.md"
keywords = [
    "assembler",
    "asm",
    "jit",
    "riscv",
    "x86",
]
license = "MIT OR Apache-2.0"
repository = "https://codeberg.org/playXE/asmkit"

[features]
aarch64 = []
default = [
    "x86",
    "riscv",
    "aarch64",
]
jit = [
    "wasmtime-jit-icache-coherence",
    "libc",
    "errno",
]
riscv = []
validation = []
x86 = []

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

[[example]]
name = "a64"
path = "examples/a64.rs"
required-features = ["aarch64"]

[[example]]
name = "factorial"
path = "examples/factorial.rs"
required-features = [
    "x86",
    "riscv",
    "aarch64",
    "jit",
]

[[example]]
name = "patch"
path = "examples/patch.rs"
required-features = [
    "x86",
    "jit",
]

[[example]]
name = "reloc"
path = "examples/reloc.rs"

[[test]]
name = "aarch64_selfcheck"
path = "tests/aarch64_selfcheck.rs"

[[test]]
name = "aarch64_vectors"
path = "tests/aarch64_vectors.rs"

[[test]]
name = "abi_execution"
path = "tests/abi_execution.rs"

[[test]]
name = "independent_oracles"
path = "tests/independent_oracles.rs"

[[test]]
name = "properties"
path = "tests/properties.rs"

[[test]]
name = "riscv_coverage"
path = "tests/riscv_coverage.rs"

[[test]]
name = "x86_coverage"
path = "tests/x86_coverage.rs"

[[test]]
name = "x86_differential"
path = "tests/x86_differential.rs"

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

[dependencies.bitflags]
version = "2.11.0"

[dependencies.cfgenius]
version = "0.1"

[dependencies.errno]
version = "0.3.9"
optional = true
default-features = false

[dependencies.intrusive-collections]
version = "0.9"

[dependencies.libc]
version = "0.2.162"
optional = true
default-features = false

[dependencies.num-traits]
version = "0.2.19"
default-features = false

[dependencies.paste]
version = "1.0"

[dependencies.smallvec]
version = "1.13"

[dev-dependencies.capstone]
version = "0.14.0"

[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]

[dev-dependencies.iced-x86]
version = "1.21"
features = ["code_asm"]

[target.'cfg(target_arch="riscv64")'.dependencies.wasmtime-jit-icache-coherence]
version = "26.0.1"
optional = true

[target."cfg(windows)".dependencies.windows]
version = "0.62"
features = [
    "Win32_Foundation",
    "Win32_System_SystemInformation",
    "Win32_System_Memory",
    "Win32_Security",
]

[profile.release]
panic = "abort"