[package]
name = "mapsample"
version = "0.1.0"
edition = "2024"
rust-version = "1.94"
description = "In-process Windows x64 stack sampler with a rolling stall recorder, P/E-core placement readings, and an MSVC /MAP symbolizer"
license = "MIT OR Apache-2.0"
repository = "https://github.com/peakoshi/mapsample"
documentation = "https://docs.rs/mapsample"
readme = "README.md"
keywords = ["profiler", "sampling", "windows", "stack", "flamegraph"]
categories = ["development-tools::profiling", "os::windows-apis", "command-line-utilities"]
include = [
"/src",
"/tests",
"/README.md",
"/LICENSE-MIT",
"/LICENSE-APACHE",
"/CHANGELOG.md",
"/clippy.toml",
]
[dependencies]
rustc-demangle = "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",
] }
[package.metadata.docs.rs]
default-target = "x86_64-pc-windows-msvc"
targets = ["x86_64-pc-windows-msvc", "x86_64-unknown-linux-gnu"]
[lints.rust]
unsafe_code = "deny"
unsafe_op_in_unsafe_fn = "deny"
unused_must_use = "deny"
missing_docs = "warn"
missing_debug_implementations = "warn"
[lints.clippy]
all = { level = "warn", priority = -1 }
pedantic = { level = "warn", priority = -1 }
undocumented_unsafe_blocks = "deny"
unwrap_used = "deny"
expect_used = "deny"
panic = "deny"
module_name_repetitions = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
cast_precision_loss = "allow"
too_many_lines = "allow"