mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 02:48:24 +00:00
chore: cargo fmt - turn on group_imports=StdExternalCrate (#26646)
This commit is contained in:
parent
88bd5f09f7
commit
ac7b33a340
298 changed files with 2160 additions and 1951 deletions
|
@ -22,17 +22,18 @@ pub mod util;
|
|||
pub mod uv;
|
||||
|
||||
use core::ptr::NonNull;
|
||||
use std::cell::RefCell;
|
||||
use std::collections::HashMap;
|
||||
use std::path::PathBuf;
|
||||
use std::rc::Rc;
|
||||
use std::thread_local;
|
||||
|
||||
use deno_core::op2;
|
||||
use deno_core::parking_lot::RwLock;
|
||||
use deno_core::url::Url;
|
||||
use deno_core::ExternalOpsTracker;
|
||||
use deno_core::OpState;
|
||||
use deno_core::V8CrossThreadTaskSpawner;
|
||||
use std::cell::RefCell;
|
||||
use std::collections::HashMap;
|
||||
use std::path::PathBuf;
|
||||
use std::rc::Rc;
|
||||
use std::thread_local;
|
||||
|
||||
#[derive(Debug, thiserror::Error)]
|
||||
pub enum NApiError {
|
||||
|
@ -46,20 +47,19 @@ pub enum NApiError {
|
|||
Permission(#[from] PermissionCheckError),
|
||||
}
|
||||
|
||||
#[cfg(unix)]
|
||||
use libloading::os::unix::*;
|
||||
|
||||
#[cfg(windows)]
|
||||
use libloading::os::windows::*;
|
||||
pub use std::ffi::CStr;
|
||||
pub use std::os::raw::c_char;
|
||||
pub use std::os::raw::c_void;
|
||||
pub use std::ptr;
|
||||
|
||||
// Expose common stuff for ease of use.
|
||||
// `use deno_napi::*`
|
||||
pub use deno_core::v8;
|
||||
use deno_permissions::PermissionCheckError;
|
||||
pub use std::ffi::CStr;
|
||||
pub use std::os::raw::c_char;
|
||||
pub use std::os::raw::c_void;
|
||||
pub use std::ptr;
|
||||
#[cfg(unix)]
|
||||
use libloading::os::unix::*;
|
||||
#[cfg(windows)]
|
||||
use libloading::os::windows::*;
|
||||
pub use value::napi_value;
|
||||
|
||||
pub mod function;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue