#llvm #shared #proxy #calls #dynamically #version #own

sys build aya-rustc-llvm-proxy

Dynamically proxy LLVM calls into Rust own shared library

10 releases (6 breaking)

0.9.3 Aug 12, 2024
0.9.2 Mar 21, 2024
0.9.1 Feb 18, 2024
0.9.0 Sep 19, 2023
0.3.0 Dec 17, 2021

#215 in Build Utils

Download history 949/week @ 2024-07-30 1102/week @ 2024-08-06 1326/week @ 2024-08-13 1047/week @ 2024-08-20 863/week @ 2024-08-27 1409/week @ 2024-09-03 1196/week @ 2024-09-10 1677/week @ 2024-09-17 1584/week @ 2024-09-24 1315/week @ 2024-10-01 1202/week @ 2024-10-08 1871/week @ 2024-10-15 1651/week @ 2024-10-22 1380/week @ 2024-10-29 1358/week @ 2024-11-05 1227/week @ 2024-11-12

5,918 downloads per month
Used in bpf-linker

MIT license

28KB
504 lines

Aya Rustc LLVM Proxy

Build Current Version Docs

This is a fork of the rustc-llvm-proxy crate.

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. bpf-linker),
  • Your crate needs to stay up to date with Rust LLVM version (again bpf-linker),
  • You would prefer not to have dependencies on host LLVM libs (as always bpf-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]
aya-rustc-llvm-proxy = "0.9"
extern crate aya_rustc_llvm_proxy;

Dependencies

~0.4–5.5MB
~20K SLoC