1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-01 09:24:20 -04:00
denoland-deno/runtime/Cargo.toml
Aaron O'Mullan 44511e4f33
feat(runtime): give OS errors .code attributes (#12591)
This adds `.code` attributes to errors returned by the op-layer, facilitating classifying OS errors and helping node-compat.

Similar to Node, these `.code` attributes are stringified names of unix ERRNOs, the mapping tables are generated by [tools/codegen_error_codes.js](https://gist.github.com/AaronO/dfa1106cc6c7e2a6ebe4dba9d5248858) and derived from libuv and rust's std internals
2021-11-04 16:44:34 +01:00

95 lines
3.4 KiB
TOML

# Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
[package]
name = "deno_runtime"
version = "0.31.0"
authors = ["the Deno authors"]
edition = "2021"
license = "MIT"
repository = "https://github.com/denoland/deno"
description = "Provides the deno runtime library"
[features]
# "fake" feature that allows to generate docs on docs.rs
docsrs = []
[lib]
name = "deno_runtime"
path = "lib.rs"
[[example]]
name = "hello_runtime"
path = "examples/hello_runtime.rs"
[build-dependencies]
deno_broadcast_channel = { version = "0.17.0", path = "../ext/broadcast_channel" }
deno_console = { version = "0.23.0", path = "../ext/console" }
deno_core = { version = "0.105.0", path = "../core" }
deno_crypto = { version = "0.37.0", path = "../ext/crypto" }
deno_fetch = { version = "0.46.0", path = "../ext/fetch" }
deno_ffi = { version = "0.10.0", path = "../ext/ffi" }
deno_http = { version = "0.15.0", path = "../ext/http" }
deno_net = { version = "0.15.0", path = "../ext/net" }
deno_timers = { version = "0.21.0", path = "../ext/timers" }
deno_tls = { version = "0.10.0", path = "../ext/tls" }
deno_url = { version = "0.23.0", path = "../ext/url" }
deno_web = { version = "0.54.0", path = "../ext/web" }
deno_webgpu = { version = "0.24.0", path = "../ext/webgpu" }
deno_webidl = { version = "0.23.0", path = "../ext/webidl" }
deno_websocket = { version = "0.28.0", path = "../ext/websocket" }
deno_webstorage = { version = "0.18.0", path = "../ext/webstorage" }
[target.'cfg(windows)'.build-dependencies]
winres = "0.1.11"
winapi = "0.3.9"
[dependencies]
deno_broadcast_channel = { version = "0.17.0", path = "../ext/broadcast_channel" }
deno_console = { version = "0.23.0", path = "../ext/console" }
deno_core = { version = "0.105.0", path = "../core" }
deno_crypto = { version = "0.37.0", path = "../ext/crypto" }
deno_fetch = { version = "0.46.0", path = "../ext/fetch" }
deno_ffi = { version = "0.10.0", path = "../ext/ffi" }
deno_http = { version = "0.15.0", path = "../ext/http" }
deno_net = { version = "0.15.0", path = "../ext/net" }
deno_timers = { version = "0.21.0", path = "../ext/timers" }
deno_tls = { version = "0.10.0", path = "../ext/tls" }
deno_url = { version = "0.23.0", path = "../ext/url" }
deno_web = { version = "0.54.0", path = "../ext/web" }
deno_webgpu = { version = "0.24.0", path = "../ext/webgpu" }
deno_webidl = { version = "0.23.0", path = "../ext/webidl" }
deno_websocket = { version = "0.28.0", path = "../ext/websocket" }
deno_webstorage = { version = "0.18.0", path = "../ext/webstorage" }
atty = "0.2.14"
dlopen = "0.1.8"
encoding_rs = "0.8.29"
filetime = "0.2.15"
fs3 = "0.5.0"
http = "0.2.4"
hyper = { version = "0.14.12", features = ["server", "stream", "http1", "http2", "runtime"] }
lazy_static = "1.4.0"
libc = "0.2.106"
log = "0.4.14"
notify = "=5.0.0-pre.12"
regex = "1.5.4"
ring = "0.16.20"
serde = { version = "1.0.129", features = ["derive"] }
sys-info = "0.9.0"
termcolor = "1.1.2"
tokio = { version = "1.10.1", features = ["full"] }
uuid = { version = "0.8.2", features = ["v4"] }
[target.'cfg(windows)'.dependencies]
fwdansi = "1.1.0"
winapi = { version = "0.3.9", features = ["commapi", "knownfolders", "mswsock", "objbase", "shlobj", "tlhelp32", "winbase", "winerror", "winsock2"] }
[target.'cfg(unix)'.dependencies]
nix = "0.22.1"
[dev-dependencies]
# Used in benchmark
test_util = { path = "../test_util" }
[package.metadata.docs.rs]
features = ["docsrs"]