this repo has no description
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 wasm;
67pub mod dependency;
68pub mod diagnostic;
69pub mod docs;
70pub mod encryption;
71pub mod erlang;
72pub mod error;
73pub mod fix;
74pub mod format;
75pub mod hex;
76pub mod io;
77pub mod javascript;
78pub mod language_server;
79pub mod line_numbers;
80pub mod manifest;
81pub mod metadata;
82pub mod package_interface;
83pub mod parse;
84pub mod paths;
85pub mod pretty;
86pub mod requirement;
87pub mod strings;
88pub mod type_;
89pub mod uid;
90pub mod version;
91pub mod warning;
92
93pub(crate) mod ast_folder;
94mod call_graph;
95mod dep_tree;
96pub(crate) mod derivation_tree;
97mod exhaustiveness;
98pub(crate) mod graph;
99pub(crate) mod inline;
100mod reference;
101
102pub use error::{Error, Result};
103pub use warning::Warning;
104
105const GLEAM_CORE_PACKAGE_NAME: &str = "";
106const STDLIB_PACKAGE_NAME: &str = "gleam_stdlib";
107
108mod schema_capnp {
109 #![allow(
110 dead_code,
111 unused_qualifications,
112 clippy::all,
113 clippy::unwrap_used,
114 missing_debug_implementations,
115 missing_copy_implementations
116 )]
117 include!("../generated/schema_capnp.rs");
118}