Crates.io | lldb-sys |
lib.rs | lldb-sys |
version | 0.0.30 |
source | src |
created_at | 2016-06-24 14:31:33.37265 |
updated_at | 2023-08-11 06:23:18.247952 |
description | Raw bindings to the LLDB C++ API. LLDB is the debugger that is part of the LLVM project and is the default system debugger on Mac OS X. Building and using this is currently slightly tricky, so be sure to see the README.md in the repository. |
homepage | https://github.com/endoli/lldb-sys.rs |
repository | https://github.com/endoli/lldb-sys.rs |
max_upload_size | |
id | 5477 |
size | 948,258 |
Dual licensed under the MIT and Apache 2 licenses. The C bindings for LLDB are licensed under the same license as LLVM.
This crate works with Cargo and is on
crates.io.
Add it to your Cargo.toml
like so:
[dependencies]
lldb-sys = "0.0.30"
Install the lldb
and liblldb-dev
packages for your platform so that
you have both LLDB itself installed as well as the headers and
other support files required.
Install llvm
via homebrew:
brew install llvm
Then, tell this crate how to find llvm-config
:
export LLVM_CONFIG="`brew --prefix llvm`/bin/llvm-config"
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
If something happens where the Rust bindings need to be re-generated,
they were generated from this set of files with bindgen
. We have a
script to automate some of the processing that is needed:
bin/generate_bindings.sh
After running that, you will want to selectively merge the changes
with what was previously there as the output of this process is
hand-edited to add usage of libc
as well as doc comments in critical
places.