Skip to content
/ chmap Public

chmap is a command line utility to inspect Clang headermap (.hmap) files.

License

Notifications You must be signed in to change notification settings

milend/chmap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chmap

chmap is a command line tool to work with Clang headermaps produced by Xcode. It is written in Rust.

chmap is the modern, cross-paltform version of the Swift hmap tool.

How to Get

Requirements

You need a Rust toolchain, see rustup.

Cargo

  1. Clone the repository
  2. If you want to run via cargo, use cargo run -- arguments
  3. If you want to install, cargo install --path chmap

cheadermap Crate

If you would like to use the cheadermap library crate, add the following to your Cargo.toml:

[dependencies]
cheadermap = "0.2.0"

How to Use

To print the contents of an hmap file, execute:

chmap print /path/to/file.hmap

For example, if you have just cloned the repository, execute cargo run -- print /path/to/file.hmap.

Development

Visual Studio Code coupled with the rust-analyzer and CodeLLDB provide a good IDE experience.

rustfmt & clippy

If you don't have rustfmt and clippy, you can install them by executing:

rustup component add rustfmt
rustup component add clippy

Before committing, ensure code is formatted and passes clippy without any warnings using:

cargo fmt --all
cargo clippy

Testing

From the repo root, execute:

cargo test

About

chmap is a command line utility to inspect Clang headermap (.hmap) files.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages