nsh-engine 0.8.1

Engine thread that drives the JS host and the core and emits mount batches.
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 = "2024"
rust-version = "1.97"
name = "nsh-engine"
version = "0.8.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Engine thread that drives the JS host and the core and emits mount batches."
homepage = "https://nsh.dev"
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/longbridge/nsh"

[features]
browser = []
crypto = [
    "js-core",
    "nsh-js/crypto",
]
default = ["js"]
js = [
    "js-core",
    "zlib",
    "crypto",
]
js-core = [
    "dep:nsh-js",
    "dep:nsh-package",
    "dep:nsh-updater",
    "dep:oxc_sourcemap",
]
net = ["dep:ureq"]
shader = [
    "dep:wgpu",
    "dep:nsh-gpu",
    "dep:pollster",
    "nsh-core/shader",
    "dep:objc2-metal",
    "dep:objc2-core-foundation",
    "dep:block2",
    "dep:windows",
]
updater = ["nsh-core/updater"]
websocket = [
    "nsh-core/websocket",
    "nsh-js?/websocket",
]
zlib = [
    "js-core",
    "nsh-js/zlib",
]

[lib]
name = "nsh_engine"
path = "src/lib.rs"

[[test]]
name = "engine"
path = "tests/engine/main.rs"
required-features = ["js"]

[dependencies.crossbeam-channel]
version = "0.5"

[dependencies.log]
version = "0.4"

[dependencies.nsh-core]
version = "0.8.1"

[dependencies.nsh-gpu]
version = "0.8.1"
optional = true

[dependencies.nsh-js]
version = "0.8.1"
optional = true
default-features = false

[dependencies.nsh-package]
version = "0.8.1"
optional = true

[dependencies.oxc_sourcemap]
version = "9"
optional = true

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

[dependencies.rustc-hash]
version = "2.1"

[dependencies.serde_json]
version = "1"

[dependencies.tokio]
version = "1"
features = [
    "rt",
    "time",
]
default-features = false

[dependencies.ureq]
version = "~3.5.2"
features = [
    "platform-verifier",
    "socks-proxy",
]
optional = true

[dependencies.wgpu]
version = "29"
features = [
    "std",
    "parking_lot",
    "wgsl",
    "dx12",
    "metal",
    "vulkan",
    "gles",
]
optional = true
default-features = false

[dev-dependencies.crossbeam-channel]
version = "0.5"

[dev-dependencies.nsh-base]
version = "0.8.1"
features = [
    "editor",
    "highlight",
    "plot",
    "rich-editor",
    "term",
]
default-features = false

[dev-dependencies.nsh-bundler]
version = "0.8.1"
features = ["bundle"]
default-features = false

[dev-dependencies.nsh-core]
version = "0.8.1"
features = ["shader"]

[dev-dependencies.nsh-i18n]
version = "0.8.1"

[dev-dependencies.nsh-js]
version = "0.8.1"
features = ["websocket"]
default-features = false

[dev-dependencies.syn]
version = "2"
features = [
    "full",
    "visit",
]

[dev-dependencies.tokio]
version = "1"
features = ["sync"]
default-features = false

[dev-dependencies.tokio-tungstenite]
version = "0.28"
features = [
    "connect",
    "rustls-tls-webpki-roots",
]
default-features = false

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.env_filter]
version = "2"
default-features = false

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.nsh-updater]
version = "0.8.1"
optional = true

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio]
version = "1"
features = ["rt-multi-thread"]
default-features = false

[target.'cfg(target_vendor = "apple")'.dependencies.block2]
version = "0.6.2"
optional = true

[target.'cfg(target_vendor = "apple")'.dependencies.objc2]
version = "0.6.5"

[target.'cfg(target_vendor = "apple")'.dependencies.objc2-core-foundation]
version = "0.3.2"
features = [
    "std",
    "CFArray",
    "CFAttributedString",
    "CFCGTypes",
    "CFData",
    "CFDictionary",
    "CFNumber",
    "CFString",
    "CFURL",
]
optional = true
default-features = false

[target.'cfg(target_vendor = "apple")'.dependencies.objc2-io-surface]
version = "0.3.2"
features = [
    "std",
    "libc",
    "objc2",
    "objc2-core-foundation",
    "IOSurfaceRef",
    "IOSurfaceTypes",
    "IOSurfaceBase",
]
default-features = false

[target.'cfg(target_vendor = "apple")'.dependencies.objc2-metal]
version = "0.3.2"
features = [
    "std",
    "block2",
    "objc2-io-surface",
    "MTLAllocation",
    "MTLCommandBuffer",
    "MTLCommandQueue",
    "MTLDevice",
    "MTLPixelFormat",
    "MTLResource",
    "MTLTexture",
    "MTLTypes",
]
optional = true
default-features = false

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

[target."cfg(windows)".dependencies.windows]
version = "0.62"
features = [
    "std",
    "Data_Xml_Dom",
    "Foundation_Numerics",
    "System",
    "UI_Composition",
    "UI_Composition_Desktop",
    "UI_Notifications",
    "Win32_Foundation",
    "Win32_Globalization",
    "Win32_Graphics_Direct2D",
    "Win32_Graphics_Direct2D_Common",
    "Win32_Graphics_Direct3D",
    "Win32_Graphics_Direct3D11",
    "Win32_Graphics_DirectComposition",
    "Win32_Graphics_DirectWrite",
    "Win32_Graphics_Dwm",
    "Win32_Graphics_Dxgi",
    "Win32_Graphics_Dxgi_Common",
    "Win32_Graphics_Gdi",
    "Win32_Graphics_Imaging",
    "Win32_Graphics_Imaging_D2D",
    "Win32_Storage_Xps",
    "Win32_System_Com",
    "Win32_System_Com_StructuredStorage",
    "Win32_System_DataExchange",
    "Win32_System_Diagnostics_Debug",
    "Win32_System_LibraryLoader",
    "Win32_System_Memory",
    "Win32_System_Ole",
    "Win32_System_Performance",
    "Win32_System_Power",
    "Win32_System_Registry",
    "Win32_System_RemoteDesktop",
    "Win32_System_Shutdown",
    "Win32_System_SystemInformation",
    "Win32_System_SystemServices",
    "Win32_System_Threading",
    "Win32_System_Time",
    "Win32_System_Variant",
    "Win32_System_WinRT",
    "Win32_System_WinRT_Composition",
    "Win32_UI_Accessibility",
    "Win32_UI_Controls",
    "Win32_UI_Controls_RichEdit",
    "Win32_UI_HiDpi",
    "Win32_UI_Input_Ime",
    "Win32_UI_Input_KeyboardAndMouse",
    "Win32_UI_Input_Pointer",
    "Win32_UI_Notifications",
    "Win32_UI_Shell",
    "Win32_UI_Shell_Common",
    "Win32_UI_WindowsAndMessaging",
    "Win32_Graphics_Direct3D12",
    "Win32_Graphics_Dxgi_Common",
    "Win32_Security",
]
optional = true

[target."cfg(windows)".dependencies.windows-sys]
version = "0.61"
features = [
    "Win32_Foundation",
    "Win32_System_ProcessStatus",
    "Win32_System_Threading",
]

[lints.rust]
missing_docs = "warn"
private_interfaces = "deny"
unreachable_pub = "deny"