Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ package.version = "2.0.0-rc.6"

[workspace.lints.rust]
warnings = 'deny' # Treat all warnings as errors
unsafe_code = 'deny'
# Inherited from Wasmtime
unused_extern_crates = 'warn'
trivial_numeric_casts = 'warn'
Expand Down
2 changes: 2 additions & 0 deletions crates/wasi/src/cli/locked_async.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(unsafe_code)] // Pin projections require unsafe

use crate::cli::{IsTerminal, StdinStream, StdoutStream};
use crate::p2;
use bytes::Bytes;
Expand Down
2 changes: 2 additions & 0 deletions crates/wasi/src/cli/worker_thread_stdin.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(unsafe_code)] // Pin projections require unsafe

//! Handling for standard in using a worker task.
//!
//! Standard input is a global singleton resource for the entire program which
Expand Down
2 changes: 2 additions & 0 deletions crates/wasi/src/p1.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(unsafe_code)] // Required for WASIp1 bindings

//! Bindings for WASIp1 aka Preview 1 aka `wasi_snapshot_preview1`.
//!
//! This module contains runtime support for configuring and executing
Expand Down
2 changes: 2 additions & 0 deletions crates/wasi/src/sockets/udp.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(unsafe_code)] // Socket operations require unsafe

use crate::runtime::with_ambient_tokio_runtime;
use crate::sockets::util::{
ErrorCode, get_unicast_hop_limit, is_valid_address_family, is_valid_remote_address,
Expand Down
Loading