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