diff options
author | Satya Rohith <me@satyarohith.com> | 2024-07-29 22:28:04 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-29 12:58:04 -0400 |
commit | 8c2f1f5a55a2a9bb9e04c12236faa341b3fd49b6 (patch) | |
tree | f32705f9ab92d0f3f8c839f1cb00918fcd32cd05 /runtime | |
parent | 8bab761bccf976ac568b0b3f4decfd7e77747767 (diff) |
chore: upgrade to rust 1.80 (#24778)
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/Cargo.toml | 3 | ||||
-rw-r--r-- | runtime/ops/http.rs | 10 | ||||
-rw-r--r-- | runtime/web_worker.rs | 2 | ||||
-rw-r--r-- | runtime/worker.rs | 2 |
4 files changed, 5 insertions, 12 deletions
diff --git a/runtime/Cargo.toml b/runtime/Cargo.toml index 35b160636..72ffa3eae 100644 --- a/runtime/Cargo.toml +++ b/runtime/Cargo.toml @@ -28,6 +28,9 @@ hmr = ["include_js_files_for_snapshotting"] # assertion that a snapshot is provided. only_snapshotted_js_sources = ["include_js_files_for_snapshotting"] +[lints.rust] +unexpected_cfgs = { level = "warn", check-cfg = ['cfg(tokio_unstable)'] } + [lib] name = "deno_runtime" path = "lib.rs" diff --git a/runtime/ops/http.rs b/runtime/ops/http.rs index ca51b001d..cde2d5858 100644 --- a/runtime/ops/http.rs +++ b/runtime/ops/http.rs @@ -8,11 +8,9 @@ use deno_core::error::AnyError; use deno_core::op2; use deno_core::OpState; use deno_core::ResourceId; -use deno_core::ToJsBuffer; use deno_http::http_create_conn_resource; use deno_net::io::TcpStreamResource; use deno_net::ops_tls::TlsStreamResource; -use serde::Serialize; pub const UNSTABLE_FEATURE_NAME: &str = "http"; @@ -74,11 +72,3 @@ fn op_http_start( Err(bad_resource_id()) } - -#[derive(Serialize)] -#[serde(rename_all = "camelCase")] -pub struct HttpUpgradeResult { - conn_rid: ResourceId, - conn_type: &'static str, - read_buf: ToJsBuffer, -} diff --git a/runtime/web_worker.rs b/runtime/web_worker.rs index 2611b6f34..ed1e19c9e 100644 --- a/runtime/web_worker.rs +++ b/runtime/web_worker.rs @@ -514,7 +514,7 @@ impl WebWorker { ops::web_worker::deno_web_worker::init_ops_and_esm(), ]; - #[cfg(hmr)] + #[cfg(feature = "hmr")] assert!( cfg!(not(feature = "only_snapshotted_js_sources")), "'hmr' is incompatible with 'only_snapshotted_js_sources'." diff --git a/runtime/worker.rs b/runtime/worker.rs index bd67c8706..696786b56 100644 --- a/runtime/worker.rs +++ b/runtime/worker.rs @@ -448,7 +448,7 @@ impl MainWorker { ops::web_worker::deno_web_worker::init_ops_and_esm().disable(), ]; - #[cfg(hmr)] + #[cfg(feature = "hmr")] assert!( cfg!(not(feature = "only_snapshotted_js_sources")), "'hmr' is incompatible with 'only_snapshotted_js_sources'." |