# 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.9.0" 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" [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" [[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 = "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.base64-simd] version = "0.8.0" optional = true [dependencies.deno_ast] version = "0.43.3" features = ["transpiling"] [dependencies.deno_cache] version = "0.107.0" optional = true [dependencies.deno_console] version = "0.175.0" optional = true [dependencies.deno_core] version = "0.314.2" [dependencies.deno_crypto] version = "0.189.0" optional = true [dependencies.deno_fetch] version = "0.199.0" optional = true [dependencies.deno_io] version = "0.85.0" optional = true [dependencies.deno_net] version = "0.167.0" optional = true [dependencies.deno_tls] version = "0.162.0" optional = true [dependencies.deno_url] version = "0.175.0" optional = true [dependencies.deno_web] version = "0.206.0" optional = true [dependencies.deno_webidl] version = "0.175.0" optional = true [dependencies.deno_websocket] version = "0.180.0" optional = true [dependencies.deno_webstorage] version = "0.170.0" optional = true [dependencies.http] version = "1.1.0" optional = true [dependencies.libc] version = "0.2.161" optional = true [dependencies.nix] version = "=0.29.0" features = ["term"] 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 = "=14.0.0" optional = true [dependencies.serde] version = "1.0.214" [dependencies.thiserror] version = "1.0.65" [dependencies.tokio] version = "=1.41.0" [dependencies.tokio-util] version = "0.7.12" [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 = [ "web", "io", "webstorage", "cache", "websocket", ] cache = [ "deno_cache", "webidl", "web", ] console = ["deno_console"] crypto = [ "deno_crypto", "webidl", ] default = [ "worker", "web_stub", "console", "url", "crypto", ] fs_import = [] io = [ "deno_io", "web", "rustyline", "winapi", "nix", "libc", "once_cell", ] no_extensions = [] snapshot_builder = [] url = [ "deno_url", "webidl", ] url_import = ["reqwest"] web = [ "deno_web", "webidl", "deno_tls", "deno_fetch", "deno_net", "console", "url", "crypto", "url_import", "fs_import", "http", ] web_stub = [ "webidl", "base64-simd", ] webidl = ["deno_webidl"] websocket = [ "deno_websocket", "web", ] webstorage = [ "deno_webstorage", "webidl", ] worker = []