#llvm

sys rustc-llvm-proxy

Dynamically proxy LLVM calls into Rust own shared library

9 releases

0.1.9 Jan 26, 2019
0.1.8 Jan 21, 2019
0.1.6 Dec 30, 2018
0.1.5 Nov 11, 2018
0.1.1 Aug 19, 2018

#44 in Build Utils

Download history 59/week @ 2019-01-16 39/week @ 2019-01-23 8/week @ 2019-01-30 31/week @ 2019-02-06 7/week @ 2019-02-13 2/week @ 2019-02-20 23/week @ 2019-02-27 39/week @ 2019-03-06 9/week @ 2019-03-13 24/week @ 2019-03-20 14/week @ 2019-03-27 17/week @ 2019-04-03 4/week @ 2019-04-10 3/week @ 2019-04-17 11/week @ 2019-04-24

74 downloads per month
Used in 1 crate

MIT license

22KB
477 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).

Usage

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:

[dependencies.llvm-sys]
version = "60"
features = ["no-llvm-linking", "disable-alltargets-init"]

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

[dependencies]
rustc-llvm-proxy = "0.1"
extern crate rustc_llvm_proxy;

Dependencies

~1.5MB
~22K SLoC