padlock-cli-0.10.0 is not a library.
padlock
The lint pass for struct memory layout — catches padding waste, false sharing, and cache locality problems at the source level, before they cost you at runtime.
Supports C, C++, Rust, Go, and Zig. CLI-first and CI-ready.
Install
Quick start
# Analyze source files
# Analyze a compiled binary (most accurate — reads real compiler offsets)
# Analyze a Windows PDB file
# Analyze an eBPF object file or raw BTF blob
# Show a visual field layout table with padding gaps
# Reorder fields in-place to the optimal layout
# Preview the reorderings without writing any files
# Write a .bak backup before rewriting (opt-in)
# Rust projects: analyze via cargo
Documentation
Full documentation, language support tables, CI integration, and configuration reference are in the main README.