sys rustc-llvm-proxy

Dynamically proxy LLVM calls into Rust own shared library

1 unstable release

0.1.1 Aug 19, 2018

#50 in Build Utils

Download history 24/week @ 2018-08-20 24/week @ 2018-08-27 17/week @ 2018-09-03 34/week @ 2018-09-10 65/week @ 2018-09-17 31/week @ 2018-09-24 32/week @ 2018-10-01 21/week @ 2018-10-08 22/week @ 2018-10-15 42/week @ 2018-10-22 2/week @ 2018-10-29

2 downloads per month
Used in 1 crate

MIT license

403 lines

Rustc LLVM Proxy

Build Status Build status Current Version Docs

Dynamically proxy LLVM calls into Rust own shared library! 🎉

Use cases

Normally there is no much need for the crate, except a couple of exotic cases:

  • Your crate is some kind build process helper that leverages LLVM (e.g. ptx-linker),
  • Your crate needs to stay up to date with Rust LLVM version (again ptx-linker),
  • You would prefer not to have dependencies on host LLVM libs (as always ptx-linker).


First, you need to make sure no other crate links your binary against system LLVM library. In case you are using llvm-sys, this can be achieved with a special feature:

version = "60"
features = ["no-llvm-linking"]

Then all you need to do is to include the crate into your project:

rustc-llvm-proxy = "0.1"
extern crate rustc_llvm_proxy;


~21K SLoC