Add json module

This commit is contained in:
Shunsuke Shibayama 2022-10-20 08:39:52 +09:00
parent 09b5f00305
commit 7defa71c86
8 changed files with 20 additions and 9 deletions

View file

@ -6,11 +6,12 @@ use std::process::Command;
use crate::serialize::get_magic_num_from_bytes;
#[cfg(unix)]
pub const BUILTIN_PYTHON_MODS: [&str; 15] = [
pub const BUILTIN_PYTHON_MODS: [&str; 16] = [
"glob",
"http",
"importlib",
"io",
"json",
"math",
"os",
"posix",
@ -24,11 +25,12 @@ pub const BUILTIN_PYTHON_MODS: [&str; 15] = [
"urllib",
];
#[cfg(not(unix))]
pub const BUILTIN_PYTHON_MODS: [&str; 14] = [
pub const BUILTIN_PYTHON_MODS: [&str; 15] = [
"glob",
"http",
"importlib",
"io",
"json",
"math",
"os",
"random",