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