mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-29 12:24:45 +00:00
Implement module compatibility checking
This commit is contained in:
parent
f8dc56b1be
commit
87170f9bb3
19 changed files with 397 additions and 247 deletions
|
@ -5,8 +5,27 @@ use std::process::Command;
|
|||
|
||||
use crate::serialize::get_magic_num_from_bytes;
|
||||
|
||||
pub const BUILTIN_PYTHON_MODS: [&str; 12] = [
|
||||
#[cfg(unix)]
|
||||
pub const BUILTIN_PYTHON_MODS: [&str; 14] = [
|
||||
"glob",
|
||||
"http",
|
||||
"importlib",
|
||||
"io",
|
||||
"math",
|
||||
"os",
|
||||
"posix",
|
||||
"random",
|
||||
"re",
|
||||
"socket",
|
||||
"subprocess",
|
||||
"sys",
|
||||
"time",
|
||||
"urllib",
|
||||
];
|
||||
#[cfg(not(unix))]
|
||||
pub const BUILTIN_PYTHON_MODS: [&str; 13] = [
|
||||
"glob",
|
||||
"http",
|
||||
"importlib",
|
||||
"io",
|
||||
"math",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue