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
#![allow(unused_imports)]
pub(in crate) use crate::{
__cfg_headers__,
c_char,
layout::*,
tuple::*,
utils::markers::*,
};
cfg_alloc! {
pub(in crate) use crate::prelude::repr_c::{
Box,
String,
Vec,
};
}
pub(in crate) use ::core::{
convert::{TryFrom, TryInto},
ffi::c_void,
fmt,
marker::PhantomData,
mem,
ops::{
Deref, DerefMut,
Not as _,
},
};
#[cfg(not(target_arch = "wasm32"))]
pub(in crate) use ::libc::size_t;
#[cfg(target_arch = "wasm32")]
#[allow(bad_style)]
pub(in crate) type size_t = u32;
cfg_alloc! {
pub(in crate) use ::alloc::{
borrow::ToOwned,
string::ToString,
vec,
};
}
pub(in crate)
mod rust {
cfg_alloc! {
pub(in crate) use ::alloc::{
boxed::Box,
string::String,
vec::Vec,
};
}
}
pub(in crate)
mod ptr {
pub(in crate) use ::core::ptr::*;
pub(in crate) use crate::ptr::*;
}
cfg_std! {
pub(in crate) use ::std::{
io,
};
}
pub(in crate)
use crate::prelude::*;