|
|
@ -1,15 +1,51 @@ |
|
|
|
#![deny(unused_qualifications, clippy::correctness, clippy::style)] |
|
|
|
#![deny(
|
|
|
|
#![warn(clippy::perf)] |
|
|
|
unused_qualifications, |
|
|
|
#![allow(clippy::cognitive_complexity)] |
|
|
|
clippy::all, |
|
|
|
|
|
|
|
unused_qualifications, |
|
|
|
use boa::builtins::console::log; |
|
|
|
unused_import_braces, |
|
|
|
use boa::serde_json; |
|
|
|
unused_lifetimes, |
|
|
|
use boa::syntax::ast::{node::Node, token::Token}; |
|
|
|
unreachable_pub, |
|
|
|
use boa::{exec::Executor, forward_val, realm::Realm}; |
|
|
|
trivial_numeric_casts, |
|
|
|
use std::io::{self, Write}; |
|
|
|
rustdoc, |
|
|
|
use std::{fs::read_to_string, path::PathBuf}; |
|
|
|
missing_debug_implementations, |
|
|
|
use structopt::clap::arg_enum; |
|
|
|
missing_copy_implementations, |
|
|
|
use structopt::StructOpt; |
|
|
|
deprecated_in_future, |
|
|
|
|
|
|
|
non_ascii_idents, |
|
|
|
|
|
|
|
rust_2018_compatibility, |
|
|
|
|
|
|
|
rust_2018_idioms, |
|
|
|
|
|
|
|
future_incompatible, |
|
|
|
|
|
|
|
nonstandard_style |
|
|
|
|
|
|
|
)] |
|
|
|
|
|
|
|
#![warn(clippy::perf, clippy::single_match_else, clippy::dbg_macro)] |
|
|
|
|
|
|
|
#![allow(
|
|
|
|
|
|
|
|
clippy::missing_inline_in_public_items, |
|
|
|
|
|
|
|
clippy::cognitive_complexity, |
|
|
|
|
|
|
|
clippy::must_use_candidate, |
|
|
|
|
|
|
|
clippy::missing_errors_doc, |
|
|
|
|
|
|
|
clippy::as_conversions |
|
|
|
|
|
|
|
)] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
use boa::{ |
|
|
|
|
|
|
|
builtins::console::log, |
|
|
|
|
|
|
|
exec::Executor, |
|
|
|
|
|
|
|
forward_val, |
|
|
|
|
|
|
|
realm::Realm, |
|
|
|
|
|
|
|
serde_json, |
|
|
|
|
|
|
|
syntax::ast::{node::Node, token::Token}, |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
use std::{ |
|
|
|
|
|
|
|
fs::read_to_string, |
|
|
|
|
|
|
|
io::{self, Write}, |
|
|
|
|
|
|
|
path::PathBuf, |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
use structopt::{clap::arg_enum, StructOpt}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#[cfg(all(target_arch = "x86_64", target_os = "linux", target_env = "gnu"))] |
|
|
|
|
|
|
|
#[cfg_attr(
|
|
|
|
|
|
|
|
all(target_arch = "x86_64", target_os = "linux", target_env = "gnu"), |
|
|
|
|
|
|
|
global_allocator |
|
|
|
|
|
|
|
)] |
|
|
|
|
|
|
|
static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc; |
|
|
|
|
|
|
|
|
|
|
|
/// CLI configuration for Boa.
|
|
|
|
/// CLI configuration for Boa.
|
|
|
|
//
|
|
|
|
//
|
|
|
|