libbun 0.1.1

Rust facade for hosting JavaScript and TypeScript providers through a replaceable Bun native plugin
Documentation
1
2
3
4
5
6
7
8
9
use std::fs;

fn main() {
    let commit = fs::read_to_string("BUN_SOURCE_COMMIT")
        .expect("BUN_SOURCE_COMMIT must exist")
        .trim()
        .to_string();
    println!("cargo:rustc-env=LIBBUN_BUN_SOURCE_COMMIT={commit}");
}