Returns module definitions for multi-phase init modules. These modules are added to sys.modules BEFORE their exec function runs, allowing safe circular imports.
(ctx: &Context)
| 143 | /// These modules are added to sys.modules BEFORE their exec function runs, |
| 144 | /// allowing safe circular imports. |
| 145 | pub fn stdlib_module_defs(ctx: &Context) -> Vec<&'static builtins::PyModuleDef> { |
| 146 | vec![ |
| 147 | _asyncio::module_def(ctx), |
| 148 | _opcode::module_def(ctx), |
| 149 | _remote_debugging::module_def(ctx), |
| 150 | array::module_def(ctx), |
| 151 | binascii::module_def(ctx), |
| 152 | bisect::module_def(ctx), |
| 153 | blake2::module_def(ctx), |
| 154 | bz2::module_def(ctx), |
| 155 | cmath::module_def(ctx), |
| 156 | contextvars::module_def(ctx), |
| 157 | csv::module_def(ctx), |
| 158 | #[cfg(feature = "host_env")] |
| 159 | faulthandler::module_def(ctx), |
| 160 | #[cfg(all(feature = "host_env", any(unix, target_os = "wasi")))] |
| 161 | fcntl::module_def(ctx), |
| 162 | #[cfg(all( |
| 163 | feature = "host_env", |
| 164 | unix, |
| 165 | not(any(target_os = "android", target_os = "redox")) |
| 166 | ))] |
| 167 | grp::module_def(ctx), |
| 168 | hashlib::module_def(ctx), |
| 169 | json::module_def(ctx), |
| 170 | #[cfg(all( |
| 171 | feature = "host_env", |
| 172 | not(any(target_os = "ios", target_arch = "wasm32")) |
| 173 | ))] |
| 174 | locale::module_def(ctx), |
| 175 | #[cfg(not(any(target_os = "android", target_arch = "wasm32")))] |
| 176 | lzma::module_def(ctx), |
| 177 | math::module_def(ctx), |
| 178 | md5::module_def(ctx), |
| 179 | #[cfg(all(feature = "host_env", any(unix, windows)))] |
| 180 | mmap::module_def(ctx), |
| 181 | #[cfg(all(feature = "host_env", not(target_arch = "wasm32")))] |
| 182 | multiprocessing::module_def(ctx), |
| 183 | #[cfg(all( |
| 184 | feature = "host_env", |
| 185 | not(target_arch = "wasm32"), |
| 186 | feature = "ssl-openssl" |
| 187 | ))] |
| 188 | openssl::module_def(ctx), |
| 189 | #[cfg(all(feature = "host_env", windows))] |
| 190 | _testconsole::module_def(ctx), |
| 191 | #[cfg(all(feature = "host_env", windows))] |
| 192 | overlapped::module_def(ctx), |
| 193 | #[cfg(all(feature = "host_env", unix))] |
| 194 | posixsubprocess::module_def(ctx), |
| 195 | #[cfg(all( |
| 196 | feature = "host_env", |
| 197 | unix, |
| 198 | not(target_os = "redox"), |
| 199 | not(target_os = "android") |
| 200 | ))] |
| 201 | posixshmem::module_def(ctx), |
| 202 | pyexpat::module_def(ctx), |
no outgoing calls
no test coverage detected