[package]
edition = "2024"
rust-version = "1.95"
name = "dlsym"
version = "0.1.0"
authors = ["Karpelès Lab Inc."]
build = false
exclude = [".github/"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Memory-safe bindings around the platform's dynamic library loading primitives"
readme = "README.md"
keywords = [
"dlopen",
"dlsym",
"ffi",
"dynamic",
"library",
]
categories = [
"api-bindings",
"external-ffi-bindings",
"os",
"development-tools::ffi",
]
license = "MIT"
repository = "https://github.com/KarpelesLab/dlsym"
[package.metadata.docs.rs]
all-features = true
[features]
codegen = []
[lib]
name = "dlsym"
path = "src/lib.rs"
[[bin]]
name = "dlsym-gen"
path = "src/bin/dlsym-gen.rs"
required-features = ["codegen"]
[[example]]
name = "bindings"
path = "examples/bindings.rs"
[[example]]
name = "symbols"
path = "examples/symbols.rs"
[[test]]
name = "codegen"
path = "tests/codegen.rs"
[[test]]
name = "core"
path = "tests/core.rs"
[[test]]
name = "libm"
path = "tests/libm.rs"
[[test]]
name = "macro"
path = "tests/macro.rs"
[target.'cfg(target_os = "fullrust")'.dependencies.dldota]
version = "0.1.1"
[target."cfg(unix)".dependencies.libc]
version = "0.2"
[target."cfg(windows)".dependencies.windows-sys]
version = "0.61"
features = [
"Win32_Foundation",
"Win32_System_LibraryLoader",
"Win32_System_Diagnostics_Debug",
]
[lints.clippy]
multiple_unsafe_ops_per_block = "warn"
undocumented_unsafe_blocks = "warn"
[lints.rust]
missing_docs = "warn"
unsafe_op_in_unsafe_fn = "deny"
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ['cfg(target_os, values("fullrust"))']