[package]
edition = "2024"
rust-version = "1.94"
name = "mapsample"
version = "0.1.0"
build = false
include = [
"/src",
"/tests",
"/README.md",
"/LICENSE-MIT",
"/LICENSE-APACHE",
"/CHANGELOG.md",
"/clippy.toml",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "In-process Windows x64 stack sampler with a rolling stall recorder, P/E-core placement readings, and an MSVC /MAP symbolizer"
documentation = "https://docs.rs/mapsample"
readme = "README.md"
keywords = [
"profiler",
"sampling",
"windows",
"stack",
"flamegraph",
]
categories = [
"development-tools::profiling",
"os::windows-apis",
"command-line-utilities",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/peakoshi/mapsample"
[package.metadata.docs.rs]
default-target = "x86_64-pc-windows-msvc"
targets = [
"x86_64-pc-windows-msvc",
"x86_64-unknown-linux-gnu",
]
[lib]
name = "mapsample"
path = "src/lib.rs"
[[bin]]
name = "mapsample"
path = "src/main.rs"
[[test]]
name = "live_windows"
path = "tests/live_windows.rs"
[dependencies.rustc-demangle]
version = "0.1.24"
[target.'cfg(all(windows, target_arch = "x86_64"))'.dependencies.windows-sys]
version = "0.61"
features = [
"Wdk_System_Threading",
"Win32_Foundation",
"Win32_Security",
"Win32_System_Diagnostics_Debug",
"Win32_System_Diagnostics_ToolHelp",
"Win32_System_Kernel",
"Win32_System_LibraryLoader",
"Win32_System_SystemInformation",
"Win32_System_Threading",
"Win32_System_WindowsProgramming",
]
[target.'cfg(all(windows, target_arch = "x86_64"))'.dev-dependencies.windows-sys]
version = "0.61"
features = [
"Win32_Foundation",
"Win32_System_LibraryLoader",
"Win32_System_Threading",
]
[lints.clippy]
cast_precision_loss = "allow"
expect_used = "deny"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
panic = "deny"
too_many_lines = "allow"
undocumented_unsafe_blocks = "deny"
unwrap_used = "deny"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_debug_implementations = "warn"
missing_docs = "warn"
unsafe_code = "deny"
unsafe_op_in_unsafe_fn = "deny"
unused_must_use = "deny"