# 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 = "rustyscript" version = "0.11.0" authors = ["@rscarson"] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "Effortless JS Integration for Rust" readme = "readme.md" keywords = [ "rust", "javascript", "deno", "runtime", "embedding", ] categories = [ "web-programming", "network-programming", "api-bindings", "compilers", "development-tools::ffi", ] license = "MIT OR Apache-2.0" repository = "https://github.com/rscarson/rustyscript" [package.metadata.docs.rs] all-features = true rustdoc-args = [ "--cfg", "docsrs", ] [lib] name = "rustyscript" path = "src/lib.rs" [[example]] name = "async_eval" path = "examples/async_eval.rs" [[example]] name = "async_javascript" path = "examples/async_javascript.rs" required-features = ["web_stub"] [[example]] name = "background_tasks" path = "examples/background_tasks.rs" required-features = ["web"] [[example]] name = "call_rust_from_js" path = "examples/call_rust_from_js.rs" [[example]] name = "create_snapshot" path = "examples/create_snapshot.rs" required-features = ["snapshot_builder"] [[example]] name = "custom_import_logic" path = "examples/custom_import_logic.rs" required-features = ["url_import"] [[example]] name = "custom_runtimes" path = "examples/custom_runtimes.rs" [[example]] name = "custom_threaded_worker" path = "examples/custom_threaded_worker.rs" required-features = ["worker"] [[example]] name = "default_threaded_worker" path = "examples/default_threaded_worker.rs" required-features = ["worker"] [[example]] name = "entrypoint_functions" path = "examples/entrypoint_functions.rs" [[example]] name = "functions_and_values" path = "examples/functions_and_values.rs" [[example]] name = "hello_world" path = "examples/hello_world.rs" [[example]] name = "interactive_prompt" path = "examples/interactive_prompt.rs" [[example]] name = "max_heap_size" path = "examples/max_heap_size.rs" [[example]] name = "module_import" path = "examples/module_import.rs" [[example]] name = "module_loader_cache" path = "examples/module_loader_cache.rs" [[example]] name = "multiple_modules" path = "examples/multiple_modules.rs" [[example]] name = "node_import" path = "examples/node_import/main.rs" required-features = ["node_experimental"] [[example]] name = "runtime_extensions" path = "examples/runtime_extensions.rs" [[example]] name = "serialized_types" path = "examples/serialized_types.rs" [[example]] name = "thread_safety" path = "examples/thread_safety.rs" [[example]] name = "typescript_modules" path = "examples/typescript_modules.rs" [[example]] name = "url_import" path = "examples/url_import.rs" required-features = [ "fs_import", "url_import", ] [[example]] name = "web_features" path = "examples/web_features.rs" [[example]] name = "websocket" path = "examples/websocket.rs" required-features = [ "websocket", "web", ] [[example]] name = "worker_pool" path = "examples/worker_pool.rs" required-features = ["worker"] [[bench]] name = "runtime" path = "benches/runtime.rs" harness = false [dependencies.async-trait] version = "0.1.83" [dependencies.base64-simd] version = "0.8.0" optional = true [dependencies.checksum] version = "0.2.1" optional = true [dependencies.deno_ast] version = "=0.43.3" features = [ "transpiling", "cjs", ] [dependencies.deno_broadcast_channel] version = "0.174.0" optional = true [dependencies.deno_cache] version = "0.112.0" optional = true [dependencies.deno_console] version = "0.180.0" optional = true [dependencies.deno_core] version = "0.323.0" [dependencies.deno_cron] version = "0.60.0" optional = true [dependencies.deno_crypto] version = "0.194.0" optional = true [dependencies.deno_fetch] version = "0.204.0" optional = true [dependencies.deno_ffi] version = "0.167.0" optional = true [dependencies.deno_fs] version = "0.90.0" features = ["sync_fs"] optional = true [dependencies.deno_http] version = "0.178.0" optional = true [dependencies.deno_io] version = "0.90.0" optional = true [dependencies.deno_kv] version = "0.88.0" optional = true [dependencies.deno_napi] version = "0.111.0" optional = true [dependencies.deno_net] version = "0.172.0" optional = true [dependencies.deno_node] version = "0.117.0" optional = true [dependencies.deno_npm] version = "0.26.0" optional = true [dependencies.deno_permissions] version = "0.40.0" optional = true [dependencies.deno_resolver] version = "0.12.0" optional = true [dependencies.deno_runtime] version = "0.189.0" features = ["exclude_runtime_main_js"] optional = true [dependencies.deno_semver] version = "0.5.16" optional = true [dependencies.deno_telemetry] version = "0.2.0" optional = true [dependencies.deno_terminal] version = "0.2.0" optional = true [dependencies.deno_tls] version = "0.167.0" optional = true [dependencies.deno_url] version = "0.180.0" optional = true [dependencies.deno_web] version = "0.211.0" optional = true [dependencies.deno_webgpu] version = "0.147.0" optional = true [dependencies.deno_webidl] version = "0.180.0" optional = true [dependencies.deno_websocket] version = "0.185.0" optional = true [dependencies.deno_webstorage] version = "0.175.0" optional = true [dependencies.http] version = "1.0" optional = true [dependencies.hyper-util] version = "=0.1.7" optional = true [dependencies.libc] version = "0.2.167" optional = true [dependencies.maybe_path] version = "0.1.3" [dependencies.nix] version = "=0.29.0" features = ["term"] optional = true [dependencies.node_resolver] version = "0.19.0" features = ["sync"] optional = true [dependencies.once_cell] version = "1.20.2" optional = true [dependencies.paste] version = "1.0.15" [dependencies.reqwest] version = "=0.12.8" features = [ "blocking", "rustls-tls", ] optional = true default-features = false [dependencies.rustyline] version = "=15.0.0" optional = true [dependencies.serde] version = "1.0.215" [dependencies.thiserror] version = "2.0.4" [dependencies.tokio] version = "1.42.0" [dependencies.tokio-util] version = "0.7.13" [dependencies.winapi] version = "=0.3.9" features = [ "commapi", "knownfolders", "mswsock", "objbase", "psapi", "shlobj", "tlhelp32", "winbase", "winerror", "winuser", "winsock2", "processenv", "wincon", "wincontypes", "consoleapi", ] optional = true [dev-dependencies.criterion] version = "0.5.1" [dev-dependencies.version-sync] version = "0.9.5" [features] all_extensions = [ "network_extensions", "io_extensions", ] broadcast_channel = [ "deno_broadcast_channel", "web", "webidl", ] cache = [ "deno_cache", "webidl", "web", ] console = [ "deno_console", "deno_terminal", ] cron = [ "deno_cron", "console", ] crypto = [ "deno_crypto", "webidl", ] default = [ "worker", "safe_extensions", ] extra_features = [ "worker", "snapshot_builder", ] ffi = ["deno_ffi"] fs = [ "deno_fs", "web", "io", ] fs_import = [] http = [ "deno_http", "web", "websocket", ] io = [ "deno_io", "web", "rustyline", "winapi", "nix", "libc", "once_cell", ] io_extensions = [ "web", "webstorage", "fs", "io", "cache", "console", "ffi", "webgpu", "kv", "cron", "fs_import", ] kv = [ "deno_kv", "web", "console", ] network_extensions = [ "web", "webstorage", "websocket", "http", "url", "crypto", "console", "broadcast_channel", "url_import", ] node_experimental = [ "deno_node", "deno_resolver", "node_resolver", "deno_npm", "deno_semver", "deno_napi", "deno_runtime", "checksum", "all_extensions", ] safe_extensions = [ "web_stub", "console", "url", "crypto", ] snapshot_builder = [] url = [ "deno_url", "webidl", ] url_import = ["reqwest"] web = [ "deno_web", "deno_tls", "deno_fetch", "deno_net", "dep:http", "deno_permissions", "deno_telemetry", "webidl", "console", "url", "crypto", "url_import", "fs_import", "hyper-util", ] web_stub = [ "webidl", "base64-simd", ] webgpu = [ "deno_webgpu", "web", ] webidl = ["deno_webidl"] websocket = [ "deno_websocket", "web", ] webstorage = [ "deno_webstorage", "webidl", ] worker = []