Fork of daniellemaywood.uk/gleam — Wasm codegen work
2

Configure Feed

Select the types of activity you want to include in your feed.

gleam / compiler-core / src / lib.rs
2.5 kB 110 lines
1// SPDX-License-Identifier: Apache-2.0 2// SPDX-FileCopyrightText: 2021 The Gleam contributors 3 4#![warn( 5 clippy::all, 6 clippy::redundant_clone, 7 clippy::dbg_macro, 8 clippy::todo, 9 clippy::mem_forget, 10 // TODO: enable once the false positive bug is solved 11 // clippy::use_self, 12 clippy::filter_map_next, 13 clippy::needless_continue, 14 clippy::needless_borrow, 15 clippy::match_wildcard_for_single_variants, 16 clippy::imprecise_flops, 17 clippy::suboptimal_flops, 18 clippy::lossy_float_literal, 19 clippy::rest_pat_in_fully_bound_structs, 20 clippy::fn_params_excessive_bools, 21 clippy::inefficient_to_string, 22 clippy::linkedlist, 23 clippy::macro_use_imports, 24 clippy::option_option, 25 clippy::verbose_file_reads, 26 clippy::unnested_or_patterns, 27 clippy::default_trait_access, 28 rust_2018_idioms, 29 missing_debug_implementations, 30 missing_copy_implementations, 31 trivial_casts, 32 trivial_numeric_casts, 33 nonstandard_style, 34 unexpected_cfgs, 35 unused_import_braces, 36 unused_qualifications, 37 clippy::wildcard_enum_match_arm 38)] 39#![deny( 40 clippy::await_holding_lock, 41 clippy::disallowed_methods, 42 clippy::if_let_mutex, 43 clippy::indexing_slicing, 44 clippy::mem_forget, 45 clippy::ok_expect, 46 clippy::unimplemented, 47 clippy::unwrap_used, 48 unsafe_code, 49 unstable_features, 50 unused_results 51)] 52#![allow( 53 clippy::assign_op_pattern, 54 clippy::to_string_trait_impl, 55 clippy::match_single_binding, 56 clippy::match_like_matches_macro, 57 clippy::inconsistent_struct_constructor, 58 clippy::len_without_is_empty, 59 // TODO: fix 60 clippy::arc_with_non_send_sync, 61)] 62 63#[cfg(test)] 64#[macro_use] 65extern crate pretty_assertions; 66 67pub mod analyse; 68pub mod ast; 69pub mod bit_array; 70pub mod build; 71pub mod codegen; 72pub mod config; 73pub mod dependency; 74pub mod diagnostic; 75pub mod docs; 76pub mod encryption; 77pub mod erlang; 78pub mod error; 79pub mod hex; 80pub mod io; 81pub mod javascript; 82pub mod line_numbers; 83pub mod manifest; 84pub mod metadata; 85pub mod package_interface; 86pub mod parse; 87pub mod paths; 88pub mod requirement; 89pub mod strings; 90pub mod type_; 91pub mod uid; 92pub mod version; 93pub mod warning; 94 95pub(crate) mod ast_folder; 96mod call_graph; 97mod dep_tree; 98pub(crate) mod derivation_tree; 99pub mod exhaustiveness; 100pub(crate) mod inline; 101pub mod reference; 102 103#[cfg(test)] 104mod tests; 105 106pub use error::{Error, Result}; 107pub use warning::Warning; 108 109const GLEAM_CORE_PACKAGE_NAME: &str = ""; 110pub const STDLIB_PACKAGE_NAME: &str = "gleam_stdlib";