redjs 0.3.1

Full-control Rust embedding layer over Bun's JavaScriptCore prebuilt. C ABI designed for zero-alloc C# (NativeAOT) codegen bindings.
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
name = "redjs"
version = "0.3.1"
build = "build.rs"
links = "redjs"
exclude = [
    "/.cargo",
    "/docs",
    "/examples",
    "/tests",
    "/testdata",
    "/cpp/mimalloc",
    "src/**/tests.rs",
    "src/**/*_tests.rs",
    "src/**/testdata",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Full-control Rust embedding layer over Bun's JavaScriptCore prebuilt. C ABI designed for zero-alloc C# (NativeAOT) codegen bindings."
homepage = "https://skathi.land"
readme = "README.md"
keywords = [
    "javascript",
    "javascriptcore",
    "jsc",
    "embedding",
    "runtime",
]
categories = [
    "api-bindings",
    "web-programming",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/argon-chat/redjs"

[features]
audio = [
    "dep:firewheel",
    "dep:symphonium",
]
audio-codecs-extra = [
    "audio",
    "symphonium?/aac",
    "symphonium?/isomp4",
    "symphonium?/alac",
    "symphonium?/adpcm",
    "symphonium?/aiff",
    "symphonium?/caf",
    "symphonium?/mkv",
]
battery = [
    "dep:zbus",
    "dep:futures-lite",
    "dep:async-channel",
]
canvas = [
    "dep:vello_cpu",
    "dep:kurbo",
    "dep:peniko",
    "dep:fontdb",
    "dep:rustybuzz",
    "dep:unicode-bidi",
]
clipboard = []
default = [
    "audio",
    "indexeddb",
    "svg-images",
    "canvas",
]
icu-root = []
indexeddb = []
indexeddb-sqlite = ["indexeddb"]
native-aot = []
net-h2 = [
    "dep:tokio",
    "dep:hyper",
    "dep:hyper-util",
    "dep:http",
    "dep:http-body",
    "dep:http-body-util",
    "dep:bytes",
    "dep:h2",
    "dep:tokio-native-tls",
    "native-tls/alpn",
]
storages = []
svg-images = ["dep:resvg"]

[lib]
name = "redjs"
crate-type = ["rlib"]
path = "src/lib.rs"

[dependencies.bytes]
version = "1"
optional = true

[dependencies.encoding_rs]
version = "0.8"

[dependencies.firewheel]
version = "0.10"
features = [
    "spatial_basic_node",
    "svf_node",
    "stream_nodes",
]
optional = true

[dependencies.flate2]
version = "1"
features = ["rust_backend"]
default-features = false

[dependencies.fontdb]
version = "0.23.0"
optional = true

[dependencies.getrandom]
version = "0.3"

[dependencies.h2]
version = "0.4"
optional = true

[dependencies.http]
version = "1"
optional = true

[dependencies.http-body]
version = "1"
optional = true

[dependencies.http-body-util]
version = "0.1"
optional = true

[dependencies.hyper]
version = "1.6"
features = [
    "client",
    "http1",
    "http2",
]
optional = true
default-features = false

[dependencies.hyper-util]
version = "0.1.16"
features = ["tokio"]
optional = true
default-features = false

[dependencies.image]
version = "0.25"
features = [
    "png",
    "jpeg",
    "webp",
    "bmp",
    "gif",
]
default-features = false

[dependencies.kurbo]
version = "0.13.1"
features = ["std"]
optional = true
default-features = false

[dependencies.native-tls]
version = "0.2"

[dependencies.peniko]
version = "0.6.1"
features = ["std"]
optional = true
default-features = false

[dependencies.redjs-macros]
version = "0.3.1"

[dependencies.resvg]
version = "0.46.0"
features = [
    "text",
    "system-fonts",
    "memmap-fonts",
    "raster-images",
]
optional = true
default-features = false

[dependencies.rustybuzz]
version = "0.20.1"
optional = true

[dependencies.sha1]
version = "0.10"

[dependencies.sha2]
version = "0.10"

[dependencies.symphonium]
version = "0.7"
features = [
    "resampler",
    "wav",
    "pcm",
    "flac",
    "mp3",
    "ogg",
    "vorbis",
]
optional = true
default-features = false

[dependencies.tokio]
version = "1.47"
features = [
    "rt",
    "net",
    "time",
    "sync",
    "macros",
]
optional = true
default-features = false

[dependencies.tokio-native-tls]
version = "0.3"
optional = true

[dependencies.unicode-bidi]
version = "0.3.18"
optional = true

[dependencies.url]
version = "2"

[dependencies.urlpattern]
version = "0.6.0"

[dependencies.vello_cpu]
version = "0.3.0"
features = [
    "std",
    "u8_pipeline",
]
optional = true
default-features = false

[dependencies.zstd-sys]
version = "2"
default-features = false

[dev-dependencies.native-tls]
version = "0.2"
features = ["alpn-accept"]

[build-dependencies.cc]
version = "1"

[build-dependencies.flate2]
version = "1"
features = ["rust_backend"]
default-features = false

[build-dependencies.sha2]
version = "0.10"

[build-dependencies.tar]
version = "0.4.46"
default-features = false

[build-dependencies.ureq]
version = "3.5"
features = ["native-tls-no-default"]
default-features = false

[build-dependencies.zip]
version = "9.6"
features = ["deflate-flate2"]
default-features = false

[target.'cfg(target_os = "linux")'.dependencies.async-channel]
version = "2.5"
optional = true

[target.'cfg(target_os = "linux")'.dependencies.futures-lite]
version = "2.6"
optional = true

[target.'cfg(target_os = "linux")'.dependencies.zbus]
version = "5.19.0"
features = ["async-io"]
optional = true
default-features = false

[target."cfg(unix)".dependencies.libc]
version = "0.2"

[profile.release]
opt-level = 3
lto = "thin"
codegen-units = 1