[package]
edition = "2024"
name = "libbun"
version = "0.1.2"
build = "build.rs"
include = [
"/BUN_SOURCE_COMMIT",
"/Cargo.lock",
"/Cargo.toml",
"/LICENSE",
"/README.md",
"/build.rs",
"/src/**",
"/src/plugin_checksums_table.in",
"/tests/**",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust facade for hosting JavaScript and TypeScript providers through a replaceable Bun native plugin"
homepage = "https://github.com/enki/libbun"
readme = "README.md"
keywords = [
"bun",
"javascript",
"typescript",
"embedding",
"plugin",
]
categories = [
"api-bindings",
"development-tools::ffi",
]
license = "Apache-2.0"
repository = "https://github.com/enki/libbun"
[features]
default = []
download-plugin = []
dynamic-loading = ["dep:libloading"]
plugin-installer = [
"dep:tar",
"dep:ureq",
"dep:zstd",
]
[lib]
name = "libbun"
path = "src/lib.rs"
doctest = false
[[test]]
name = "conformance"
path = "tests/conformance.rs"
[[test]]
name = "dynamic_plugin"
path = "tests/dynamic_plugin.rs"
[[test]]
name = "release"
path = "tests/release.rs"
[dependencies.libloading]
version = "0.8"
optional = true
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.sha2]
version = "0.10"
[dependencies.tar]
version = "0.4"
optional = true
[dependencies.thiserror]
version = "2"
[dependencies.ureq]
version = "2"
optional = true
[dependencies.zstd]
version = "0.13"
optional = true
[dev-dependencies.tempfile]
version = "3"