1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
#![no_implicit_prelude]

// TODO: review these
#![warn(
	// missing_docs,
	// clippy::missing_docs_in_private_items,
	// clippy::missing_safety_doc,
	clippy::multiple_unsafe_ops_per_block,
	clippy::undocumented_unsafe_blocks
)]
#![deny(
	unconditional_recursion,
	unexpected_cfgs,
	unfulfilled_lint_expectations,
	unsafe_op_in_unsafe_fn,
	clippy::as_conversions,
	clippy::empty_docs,
	clippy::mixed_attributes_style,
	clippy::unnecessary_safety_comment
)]

#![cfg_attr(docsrs, feature(doc_cfg))]

#![cfg_attr(all(docsrs, kiwingay), doc = "")]
#![cfg_attr(
	all(docsrs, kiwingay),
	doc = concat!(
		"These docs have been built from commit [",
		env!("KIWINGAY_DEPLOY_COMMIT_SHORT"),
		"](https://github.com/meadowsys/wiwi/commit/",
		env!("KIWINGAY_DEPLOY_COMMIT"),
		")."
	)
)]

#[cfg(target_pointer_width = "16")]
compile_error!("16-bit platforms are not supported yet (but please do file an issue if for whatever reason you do need it, I would be happy to add support!)");

#[cfg(any(doc, docsrs, kiwingay))]
#[doc = include_str!("../CHANGELOG.md")]
pub mod _changelog {}
pub mod prelude;

pub mod rust_alloc;
pub mod rust_core;
pub mod rust_std;

#[cfg(feature = "unstable")]
pub mod alloc;
#[cfg(feature = "unstable")]
pub mod cli;
pub mod collections;
pub mod encoding;
pub mod h;
pub mod nom;
pub mod num;
pub mod ptr;
#[cfg(feature = "unstable")]
pub mod string;
pub mod util;
pub mod util_unsafe;

// pub mod clone;
// pub mod compare;
// pub mod convert;
// pub mod function;
// // pub mod h;
// pub mod iterator;
// pub mod macros;
// pub mod memory;
// pub mod option;
// pub mod phantom;
// pub mod primitive;
// pub mod pointer;
// pub mod result;

// mod _internal;
// pub mod prelude;

// #[cfg(feature = "aoc-unstable")]
// #[cfg_attr(docsrs, doc(cfg(feature = "aoc-unstable")))]
// /// Utilities specific for writing solutions for [Advent of Code](https://adventofcode.com)
// #[doc = ""]
// #[doc = include_str!("./aoc/README.md")]
// pub mod aoc;

// #[cfg(feature = "augment-panic-hook")]
// #[cfg_attr(docsrs, doc(cfg(feature = "augment-panic-hook")))]
// /// Conveniently augment the panic hook (instead of replacing it), running some of your code before calling the existing one
// #[doc = ""]
// #[doc = include_str!("./augment_panic_hook/README.md")]
// pub mod augment_panic_hook;

// #[cfg(feature = "auth-unstable")]
// #[cfg_attr(docsrs, doc(cfg(feature = "auth-unstable")))]
// /// Lower-level(ish) utilities for writing an authentication system, in which the client password is never sent over the wire
// #[doc = ""]
// #[doc = include_str!("./auth/README.md")]
// pub mod auth;

// #[cfg(feature = "bitstream-unstable")]
// #[cfg_attr(docsrs, doc(cfg(feature = "bitstream-unstable")))]
// /// Encoder and decoder for a stream of bits
// #[doc = ""]
// #[doc = include_str!("./bitstream/README.md")]
// pub mod bitstream;

// #[cfg(feature = "chainer-unstable")]
// #[cfg_attr(docsrs, doc(cfg(feature = "chainer-unstable")))]
// /// Wrappers around common structs that provide chaining APIs (take ownership, do operation, then return ownership back with the new value)
// #[doc = ""]
// #[doc = include_str!("./chainer/README.md")]
// pub mod chainer;

// #[cfg(feature = "cli-unstable")]
// #[cfg_attr(docsrs, doc(cfg(feature = "cli-unstable")))]
// /// CLI arguments parser
// #[doc = ""]
// #[doc = include_str!("./cli/README.md")]
// pub mod cli;

// #[cfg(feature = "clock-timer")]
// #[cfg_attr(docsrs, doc(cfg(feature = "clock-timer")))]
// /// An interval tracking clock, yielding ticks at specified intervals and doing so for a specified period of time
// #[doc = ""]
// #[doc = include_str!("./clock_timer/README.md")]
// pub mod clock_timer;

// #[cfg(feature = "debounce")]
// #[cfg_attr(docsrs, doc(cfg(feature = "debounce")))]
// /// Delay calling a function until a specified period of time has passed since the last time it was called
// #[doc = ""]
// #[doc = include_str!("./debounce/README.md")]
// pub mod debounce;

// #[cfg(feature = "defer-unstable")]
// #[cfg_attr(docsrs, doc(cfg(feature = "defer-unstable")))]
// /// Defer running code until the end of the current scope or until something gets dropped
// #[doc = ""]
// #[doc = include_str!("./defer/README.md")]
// pub mod defer;

// #[cfg(feature = "export-all-submodules")]
// #[cfg_attr(docsrs, doc(cfg(feature = "export-all-submodules")))]
// /// A convenience macro for declaring many private modules, then reexporting everything within them using a glob use statement
// #[doc = ""]
// #[doc = include_str!("./export_all_submodules/README.md")]
// pub mod export_all_submodules;

// #[cfg(feature = "h")]
// #[cfg_attr(docsrs, doc(cfg(feature = "h")))]
// /// h
// #[doc = ""]
// #[doc = include_str!("./h/README.md")]
// pub mod h;

// #[cfg(feature = "hex")]
// #[cfg_attr(docsrs, doc(cfg(feature = "hex")))]
// /// Fast hex encoder and decoder for both upper hex and lower hex
// #[doc = ""]
// #[doc = include_str!("./hex/README.md")]
// pub mod hex;

// #[cfg(feature = "id-unstable")]
// #[cfg_attr(docsrs, doc(cfg(feature = "id-unstable")))]
// /// ID generators that guarantee uniqueness and ordering, and of various output sizes
// #[doc = ""]
// #[doc = include_str!("./id/README.md")]
// pub mod id;

// #[cfg(feature = "int-unstable")]
// #[cfg_attr(docsrs, doc(cfg(feature = "int-unstable")))]
// /// Bigints (ex. u384) and uneven sized ints (ex. u15)
// #[doc = ""]
// #[doc = include_str!("./int/README.md")]
// pub mod int;

// #[cfg(feature = "iter-unstable")]
// #[cfg_attr(docsrs, doc(cfg(feature = "iter-unstable")))]
// /// Iterator utilities
// #[doc = ""]
// #[doc = include_str!("./iter/README.md")]
// pub mod iter;

// #[cfg(feature = "lazy-wrap")]
// #[cfg_attr(docsrs, doc(cfg(feature = "lazy-wrap")))]
// /// Wrappers around a lazily initialised value, and its initialisation function, supporting usage in static variables
// #[doc = ""]
// #[doc = include_str!("./lazy_wrap/README.md")]
// pub mod lazy_wrap;

// #[cfg(feature = "lsl-unstable")]
// #[cfg_attr(docsrs, doc(cfg(feature = "lsl-unstable")))]
// /// Experimental lib to help with writing Second Life scripts in Rust... because yes, I got fed up with it very quickly and immediately missed Rust lol
// #[doc = ""]
// #[doc = include_str!("./lsl/README.md")]
// pub mod lsl;

// #[cfg(feature = "mcu-unstable")]
// #[cfg_attr(docsrs, doc(cfg(feature = "mcu-unstable")))]
// /// [Material colour utilities](https://github.com/material-foundation/material-color-utilities)
// #[doc = ""]
// #[doc = include_str!("./mcu/README.md")]
// pub mod mcu;

// #[cfg(feature = "memory-usage-unstable")]
// #[cfg_attr(docsrs, doc(cfg(feature = "memory-usage-unstable")))]
// /// Calculate actual memory usage of values, including derive macro (not the same as `size_of::<T>()`)
// #[doc = ""]
// #[doc = include_str!("./memory_usage/README.md")]
// pub mod memory_usage;

// #[cfg(feature = "minesweeper-unstable")]
// #[cfg_attr(docsrs, doc(cfg(feature = "minesweeper-unstable")))]
// /// Core logic components for minesweeper games of arbitrary size
// #[doc = ""]
// #[doc = include_str!("./minesweeper/README.md")]
// pub mod minesweeper;

// #[cfg(feature = "nominal")]
// #[cfg_attr(docsrs, doc(cfg(feature = "nominal")))]
// /// Generic newtype wrappers, for increased type safety through Rust's nominal type system
// #[doc = ""]
// #[doc = include_str!("./nominal/README.md")]
// pub mod nominal;

// #[cfg(feature = "num-traits-unstable")]
// #[cfg_attr(docsrs, doc(cfg(feature = "num-traits-unstable")))]
// /// More traits for numbers and their various functionality, including things like [`MulWidening`]
// #[doc = ""]
// #[doc = include_str!("./num_traits/README.md")]
// pub mod num_traits;

// #[cfg(feature = "path-unstable")]
// #[cfg_attr(docsrs, doc(cfg(feature = "path-unstable")))]
// /// UTF-8 only path manipulation utilities written from scratch
// #[doc = ""]
// #[doc = include_str!("./path/README.md")]
// pub mod path;

// #[cfg(feature = "rand")]
// #[cfg_attr(docsrs, doc(cfg(feature = "rand")))]
// /// Random number generators and utilities
// #[doc = ""]
// #[doc = include_str!("./rand/README.md")]
// pub mod rand;

// #[cfg(feature = "serialiser-binary-unstable")]
// #[cfg_attr(docsrs, doc(cfg(feature = "serialiser-binary-unstable")))]
// /// Self describing and stable binary format/serialiser, aiming for small output size
// #[doc = ""]
// #[doc = include_str!("./serialiser_binary/README.md")]
// pub mod serialiser_binary;

// #[cfg(feature = "serialiser-binary-2-unstable")]
// #[cfg_attr(docsrs, doc(cfg(feature = "serialiser-binary-2-unstable")))]
// /// Self describing and stable binary format/serialiser, aiming for small output size (v2)
// #[doc = ""]
// #[doc = include_str!("./serialiser_binary_2/README.md")]
// pub mod serialiser_binary_2;

// #[cfg(feature = "serialiser-text-unstable")]
// #[cfg_attr(docsrs, doc(cfg(feature = "serialiser-text-unstable")))]
// /// Self describing and stable text format/serialiser, aiming to be easy to read and write by hand
// #[doc = ""]
// #[doc = include_str!("./serialiser_text/README.md")]
// pub mod serialiser_text;

// #[cfg(feature = "string-pool-unstable")]
// #[cfg_attr(docsrs, doc(cfg(feature = "string-pool-unstable")))]
// /// Global immutable string pool and String type (à la Java)
// #[doc = ""]
// #[doc = include_str!("./string_pool/README.md")]
// pub mod string_pool;

// #[cfg(feature = "sudoku-unstable")]
// #[cfg_attr(docsrs, doc(cfg(feature = "sudoku-unstable")))]
// /// Sudoku related... stuff
// #[doc = ""]
// #[doc = include_str!("./sudoku/README.md")]
// pub mod sudoku;

// #[cfg(feature = "unicode-unstable")]
// #[cfg_attr(docsrs, doc(cfg(feature = "unicode-unstable")))]
// /// Implementation of the [Unicode](https://home.unicode.org) standard, including UTF-8, UTF-16, and UTF-32 strings
// #[doc = ""]
// #[doc = include_str!("./unicode/README.md")]
// pub mod unicode;

// #[cfg(feature = "with-cloned")]
// #[cfg_attr(docsrs, doc(cfg(feature = "with-cloned")))]
// /// Convenience macro for the clone-and-move pattern (yes, we're calling it that :p)
// #[doc = ""]
// #[doc = include_str!("./with_cloned/README.md")]
// pub mod with_cloned;

// #[cfg(feature = "z85")]
// #[cfg_attr(docsrs, doc(cfg(feature = "z85")))]
// /// Fast encoder and decoder for [ZeroMQ](https://zeromq.org)'s [Z85](https://rfc.zeromq.org/spec/32) format
// #[doc = ""]
// #[doc = include_str!("./z85/README.md")]
// pub mod z85;