mirror of
https://github.com/denoland/deno.git
synced 2025-01-21 04:52:26 -05:00
57dd66ec3d
This slightly degrades the performance of CJS export analysis on subsequent runs because I changed it to no longer cache in the DENO_DIR with this PR (denort now properly has no idea about the DENO_DIR). We'll have to change it to embed this data in the binary and that will also allow us to get rid of swc in denort (will do that in a follow-up PR).
48 lines
4.8 KiB
TOML
48 lines
4.8 KiB
TOML
disallowed-methods = [
|
|
{ path = "std::env::current_dir", reason = "File system operations should be done using DenoLibSys" },
|
|
{ path = "std::path::Path::canonicalize", reason = "File system operations should be done using DenoLibSys" },
|
|
{ path = "std::path::Path::is_dir", reason = "File system operations should be done using DenoLibSys" },
|
|
{ path = "std::path::Path::is_file", reason = "File system operations should be done using DenoLibSys" },
|
|
{ path = "std::path::Path::is_symlink", reason = "File system operations should be done using DenoLibSys" },
|
|
{ path = "std::path::Path::metadata", reason = "File system operations should be done using DenoLibSys" },
|
|
{ path = "std::path::Path::read_dir", reason = "File system operations should be done using DenoLibSys" },
|
|
{ path = "std::path::Path::read_link", reason = "File system operations should be done using DenoLibSys" },
|
|
{ path = "std::path::Path::symlink_metadata", reason = "File system operations should be done using DenoLibSys" },
|
|
{ path = "std::path::Path::try_exists", reason = "File system operations should be done using DenoLibSys" },
|
|
{ path = "std::path::PathBuf::exists", reason = "File system operations should be done using DenoLibSys" },
|
|
{ path = "std::path::PathBuf::canonicalize", reason = "File system operations should be done using DenoLibSys" },
|
|
{ path = "std::path::PathBuf::is_dir", reason = "File system operations should be done using DenoLibSys" },
|
|
{ path = "std::path::PathBuf::is_file", reason = "File system operations should be done using DenoLibSys" },
|
|
{ path = "std::path::PathBuf::is_symlink", reason = "File system operations should be done using DenoLibSys" },
|
|
{ path = "std::path::PathBuf::metadata", reason = "File system operations should be done using DenoLibSys" },
|
|
{ path = "std::path::PathBuf::read_dir", reason = "File system operations should be done using DenoLibSys" },
|
|
{ path = "std::path::PathBuf::read_link", reason = "File system operations should be done using DenoLibSys" },
|
|
{ path = "std::path::PathBuf::symlink_metadata", reason = "File system operations should be done using DenoLibSys" },
|
|
{ path = "std::path::PathBuf::try_exists", reason = "File system operations should be done using DenoLibSys" },
|
|
{ path = "std::env::set_current_dir", reason = "File system operations should be done using DenoLibSys" },
|
|
{ path = "std::env::temp_dir", reason = "File system operations should be done using DenoLibSys" },
|
|
{ path = "std::fs::canonicalize", reason = "File system operations should be done using DenoLibSys" },
|
|
{ path = "std::fs::copy", reason = "File system operations should be done using DenoLibSys" },
|
|
{ path = "std::fs::create_dir_all", reason = "File system operations should be done using DenoLibSys" },
|
|
{ path = "std::fs::create_dir", reason = "File system operations should be done using DenoLibSys" },
|
|
{ path = "std::fs::DirBuilder::new", reason = "File system operations should be done using DenoLibSys" },
|
|
{ path = "std::fs::hard_link", reason = "File system operations should be done using DenoLibSys" },
|
|
{ path = "std::fs::metadata", reason = "File system operations should be done using DenoLibSys" },
|
|
{ path = "std::fs::OpenOptions::new", reason = "File system operations should be done using DenoLibSys" },
|
|
{ path = "std::fs::read_dir", reason = "File system operations should be done using DenoLibSys" },
|
|
{ path = "std::fs::read_link", reason = "File system operations should be done using DenoLibSys" },
|
|
{ path = "std::fs::read_to_string", reason = "File system operations should be done using DenoLibSys" },
|
|
{ path = "std::fs::read", reason = "File system operations should be done using DenoLibSys" },
|
|
{ path = "std::fs::remove_dir_all", reason = "File system operations should be done using DenoLibSys" },
|
|
{ path = "std::fs::remove_dir", reason = "File system operations should be done using DenoLibSys" },
|
|
{ path = "std::fs::remove_file", reason = "File system operations should be done using DenoLibSys" },
|
|
{ path = "std::fs::rename", reason = "File system operations should be done using DenoLibSys" },
|
|
{ path = "std::fs::set_permissions", reason = "File system operations should be done using DenoLibSys" },
|
|
{ path = "std::fs::symlink_metadata", reason = "File system operations should be done using DenoLibSys" },
|
|
{ path = "std::fs::write", reason = "File system operations should be done using DenoLibSys" },
|
|
{ path = "std::path::Path::canonicalize", reason = "File system operations should be done using DenoLibSys" },
|
|
{ path = "std::path::Path::exists", reason = "File system operations should be done using DenoLibSys" },
|
|
{ path = "url::Url::to_file_path", reason = "Use deno_path_util instead" },
|
|
{ path = "url::Url::from_file_path", reason = "Use deno_path_util instead" },
|
|
{ path = "url::Url::from_directory_path", reason = "Use deno_path_util instead" },
|
|
]
|