Skip to content

Commit

Permalink
fix: cargo config to mark linting errors as warn
Browse files Browse the repository at this point in the history
  • Loading branch information
apskhem committed Dec 18, 2023
1 parent 9590f54 commit 4e58045
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 13 deletions.
4 changes: 3 additions & 1 deletion hermes/wasm/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[build]

target = "wasm32-unknown-unknown"
target = "wasm32-unknown-unknown"

rustflags = ["--cap-lints", "warn"]
2 changes: 1 addition & 1 deletion hermes/wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ byte-array-literals = { path = "./wasi-component-adapter/byte-array-literals" }
wasm-encoder = "0.38.1"
object = "0.32.1"

[workspace.lints]
[workspace.lints]
1 change: 0 additions & 1 deletion hermes/wasm/wasi-component-adapter/build.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
//! This module bridges the `wasi_snapshot_preview1` ABI to the preview2 ABI of the component model.
use std::env;
use std::path::PathBuf;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![allow(missing_docs)]

extern crate proc_macro;

use proc_macro::{Delimiter, Group, Literal, Punct, Spacing, TokenStream, TokenTree};
Expand Down
3 changes: 0 additions & 3 deletions hermes/wasm/wasi-component-adapter/src/descriptors.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
#![allow(let_underscore_drop)]
#![allow(trivial_casts)]

use crate::bindings::wasi::cli::{stderr, stdin, stdout};
use crate::bindings::wasi::io::streams::{InputStream, OutputStream};
use crate::{BlockingMode, BumpArena, ImportAlloc, TrappingUnwrap, WasmStr};
Expand Down
3 changes: 0 additions & 3 deletions hermes/wasm/wasi-component-adapter/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
#![allow(missing_docs)]
#![allow(trivial_casts)]

// The proxy world has no filesystem which most of this file is concerned with,
// so disable many warnings to avoid having to contort code too much for the
// proxy world.
Expand Down
2 changes: 0 additions & 2 deletions hermes/wasm/wasi-component-adapter/src/macros.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![allow(let_underscore_drop)]

//! Minimal versions of standard-library panicking and printing macros.
//!
//! We're avoiding static initializers, so we can't have things like string
Expand Down

0 comments on commit 4e58045

Please sign in to comment.