chore(ext/node): cleanup empty internal_bindings (#18032)

This commit is contained in:
Divy Srivastava 2023-03-05 20:23:42 +05:30 committed by GitHub
parent 7d13d65468
commit c9c782940e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
36 changed files with 37 additions and 198 deletions

View file

@ -205,6 +205,8 @@ opt-level = 3
opt-level = 3 opt-level = 3
[profile.bench.package.deno_crypto] [profile.bench.package.deno_crypto]
opt-level = 3 opt-level = 3
[profile.bench.package.deno_node]
opt-level = 3
[profile.bench.package.num-bigint-dig] [profile.bench.package.num-bigint-dig]
opt-level = 3 opt-level = 3
[profile.bench.package.v8] [profile.bench.package.v8]
@ -263,6 +265,8 @@ opt-level = 3
opt-level = 3 opt-level = 3
[profile.release.package.deno_crypto] [profile.release.package.deno_crypto]
opt-level = 3 opt-level = 3
[profile.release.package.deno_node]
opt-level = 3
[profile.release.package.deno_broadcast_channel] [profile.release.package.deno_broadcast_channel]
opt-level = 3 opt-level = 3
[profile.release.package.deno_fetch] [profile.release.package.deno_fetch]

View file

@ -193,55 +193,22 @@ pub fn init_polyfill() -> Extension {
"internal_binding/async_wrap.ts", "internal_binding/async_wrap.ts",
"internal_binding/buffer.ts", "internal_binding/buffer.ts",
"internal_binding/cares_wrap.ts", "internal_binding/cares_wrap.ts",
"internal_binding/config.ts",
"internal_binding/connection_wrap.ts", "internal_binding/connection_wrap.ts",
"internal_binding/constants.ts", "internal_binding/constants.ts",
"internal_binding/contextify.ts",
"internal_binding/credentials.ts",
"internal_binding/crypto.ts", "internal_binding/crypto.ts",
"internal_binding/errors.ts",
"internal_binding/fs_dir.ts",
"internal_binding/fs_event_wrap.ts",
"internal_binding/fs.ts",
"internal_binding/handle_wrap.ts", "internal_binding/handle_wrap.ts",
"internal_binding/heap_utils.ts",
"internal_binding/http_parser.ts",
"internal_binding/icu.ts",
"internal_binding/inspector.ts",
"internal_binding/js_stream.ts",
"internal_binding/messaging.ts",
"internal_binding/mod.ts", "internal_binding/mod.ts",
"internal_binding/module_wrap.ts",
"internal_binding/native_module.ts",
"internal_binding/natives.ts",
"internal_binding/node_file.ts", "internal_binding/node_file.ts",
"internal_binding/node_options.ts", "internal_binding/node_options.ts",
"internal_binding/options.ts",
"internal_binding/os.ts",
"internal_binding/performance.ts",
"internal_binding/pipe_wrap.ts", "internal_binding/pipe_wrap.ts",
"internal_binding/process_methods.ts",
"internal_binding/report.ts",
"internal_binding/serdes.ts",
"internal_binding/signal_wrap.ts",
"internal_binding/spawn_sync.ts",
"internal_binding/stream_wrap.ts", "internal_binding/stream_wrap.ts",
"internal_binding/string_decoder.ts", "internal_binding/string_decoder.ts",
"internal_binding/symbols.ts", "internal_binding/symbols.ts",
"internal_binding/task_queue.ts",
"internal_binding/tcp_wrap.ts", "internal_binding/tcp_wrap.ts",
"internal_binding/timers.ts",
"internal_binding/tls_wrap.ts",
"internal_binding/trace_events.ts",
"internal_binding/tty_wrap.ts",
"internal_binding/types.ts", "internal_binding/types.ts",
"internal_binding/udp_wrap.ts", "internal_binding/udp_wrap.ts",
"internal_binding/url.ts",
"internal_binding/util.ts", "internal_binding/util.ts",
"internal_binding/uv.ts", "internal_binding/uv.ts",
"internal_binding/v8.ts",
"internal_binding/worker.ts",
"internal_binding/zlib.ts",
"internal/assert.mjs", "internal/assert.mjs",
"internal/async_hooks.ts", "internal/async_hooks.ts",
"internal/blob.mjs", "internal/blob.mjs",

View file

@ -1,3 +0,0 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
export {};

View file

@ -1,3 +0,0 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
export {};

View file

@ -1,3 +0,0 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
export {};

View file

@ -1,3 +0,0 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
export {};

View file

@ -1,3 +0,0 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
export {};

View file

@ -1,3 +0,0 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
export {};

View file

@ -1,3 +0,0 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
export {};

View file

@ -1,3 +0,0 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
export {};

View file

@ -1,3 +0,0 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
export {};

View file

@ -1,3 +0,0 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
export {};

View file

@ -1,3 +0,0 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
export {};

View file

@ -1,3 +0,0 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
export {};

View file

@ -1,3 +0,0 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
export {};

View file

@ -1,100 +1,67 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
import * as asyncWrap from "internal:deno_node/internal_binding/async_wrap.ts"; import * as asyncWrap from "internal:deno_node/internal_binding/async_wrap.ts";
import * as buffer from "internal:deno_node/internal_binding/buffer.ts"; import * as buffer from "internal:deno_node/internal_binding/buffer.ts";
import * as config from "internal:deno_node/internal_binding/config.ts";
import * as caresWrap from "internal:deno_node/internal_binding/cares_wrap.ts"; import * as caresWrap from "internal:deno_node/internal_binding/cares_wrap.ts";
import * as constants from "internal:deno_node/internal_binding/constants.ts"; import * as constants from "internal:deno_node/internal_binding/constants.ts";
import * as contextify from "internal:deno_node/internal_binding/contextify.ts";
import * as crypto from "internal:deno_node/internal_binding/crypto.ts"; import * as crypto from "internal:deno_node/internal_binding/crypto.ts";
import * as credentials from "internal:deno_node/internal_binding/credentials.ts";
import * as errors from "internal:deno_node/internal_binding/errors.ts";
import * as fs from "internal:deno_node/internal_binding/fs.ts";
import * as fsDir from "internal:deno_node/internal_binding/fs_dir.ts";
import * as fsEventWrap from "internal:deno_node/internal_binding/fs_event_wrap.ts";
import * as heapUtils from "internal:deno_node/internal_binding/heap_utils.ts";
import * as httpParser from "internal:deno_node/internal_binding/http_parser.ts";
import * as icu from "internal:deno_node/internal_binding/icu.ts";
import * as inspector from "internal:deno_node/internal_binding/inspector.ts";
import * as jsStream from "internal:deno_node/internal_binding/js_stream.ts";
import * as messaging from "internal:deno_node/internal_binding/messaging.ts";
import * as moduleWrap from "internal:deno_node/internal_binding/module_wrap.ts";
import * as nativeModule from "internal:deno_node/internal_binding/native_module.ts";
import * as natives from "internal:deno_node/internal_binding/natives.ts";
import * as options from "internal:deno_node/internal_binding/options.ts";
import * as os from "internal:deno_node/internal_binding/os.ts";
import * as pipeWrap from "internal:deno_node/internal_binding/pipe_wrap.ts"; import * as pipeWrap from "internal:deno_node/internal_binding/pipe_wrap.ts";
import * as performance from "internal:deno_node/internal_binding/performance.ts";
import * as processMethods from "internal:deno_node/internal_binding/process_methods.ts";
import * as report from "internal:deno_node/internal_binding/report.ts";
import * as serdes from "internal:deno_node/internal_binding/serdes.ts";
import * as signalWrap from "internal:deno_node/internal_binding/signal_wrap.ts";
import * as spawnSync from "internal:deno_node/internal_binding/spawn_sync.ts";
import * as streamWrap from "internal:deno_node/internal_binding/stream_wrap.ts"; import * as streamWrap from "internal:deno_node/internal_binding/stream_wrap.ts";
import * as stringDecoder from "internal:deno_node/internal_binding/string_decoder.ts"; import * as stringDecoder from "internal:deno_node/internal_binding/string_decoder.ts";
import * as symbols from "internal:deno_node/internal_binding/symbols.ts"; import * as symbols from "internal:deno_node/internal_binding/symbols.ts";
import * as taskQueue from "internal:deno_node/internal_binding/task_queue.ts";
import * as tcpWrap from "internal:deno_node/internal_binding/tcp_wrap.ts"; import * as tcpWrap from "internal:deno_node/internal_binding/tcp_wrap.ts";
import * as timers from "internal:deno_node/internal_binding/timers.ts";
import * as tlsWrap from "internal:deno_node/internal_binding/tls_wrap.ts";
import * as traceEvents from "internal:deno_node/internal_binding/trace_events.ts";
import * as ttyWrap from "internal:deno_node/internal_binding/tty_wrap.ts";
import * as types from "internal:deno_node/internal_binding/types.ts"; import * as types from "internal:deno_node/internal_binding/types.ts";
import * as udpWrap from "internal:deno_node/internal_binding/udp_wrap.ts"; import * as udpWrap from "internal:deno_node/internal_binding/udp_wrap.ts";
import * as url from "internal:deno_node/internal_binding/url.ts";
import * as util from "internal:deno_node/internal_binding/util.ts"; import * as util from "internal:deno_node/internal_binding/util.ts";
import * as uv from "internal:deno_node/internal_binding/uv.ts"; import * as uv from "internal:deno_node/internal_binding/uv.ts";
import * as v8 from "internal:deno_node/internal_binding/v8.ts";
import * as worker from "internal:deno_node/internal_binding/worker.ts";
import * as zlib from "internal:deno_node/internal_binding/zlib.ts";
const modules = { const modules = {
"async_wrap": asyncWrap, "async_wrap": asyncWrap,
buffer, buffer,
"cares_wrap": caresWrap, "cares_wrap": caresWrap,
config, config: {},
constants, constants,
contextify, contextify: {},
credentials, credentials: {},
crypto, crypto,
errors, errors: {},
fs, fs: {},
"fs_dir": fsDir, "fs_dir": {},
"fs_event_wrap": fsEventWrap, "fs_event_wrap": {},
"heap_utils": heapUtils, "heap_utils": {},
"http_parser": httpParser, "http_parser": {},
icu, icu: {},
inspector, inspector: {},
"js_stream": jsStream, "js_stream": {},
messaging, messaging: {},
"module_wrap": moduleWrap, "module_wrap": {},
"native_module": nativeModule, "native_module": {},
natives, natives: {},
options, options: {},
os, os: {},
performance, performance: {},
"pipe_wrap": pipeWrap, "pipe_wrap": pipeWrap,
"process_methods": processMethods, "process_methods": {},
report, report: {},
serdes, serdes: {},
"signal_wrap": signalWrap, "signal_wrap": {},
"spawn_sync": spawnSync, "spawn_sync": {},
"stream_wrap": streamWrap, "stream_wrap": streamWrap,
"string_decoder": stringDecoder, "string_decoder": stringDecoder,
symbols, symbols,
"task_queue": taskQueue, "task_queue": {},
"tcp_wrap": tcpWrap, "tcp_wrap": tcpWrap,
timers, timers: {},
"tls_wrap": tlsWrap, "tls_wrap": {},
"trace_events": traceEvents, "trace_events": {},
"tty_wrap": ttyWrap, "tty_wrap": {},
types, types,
"udp_wrap": udpWrap, "udp_wrap": udpWrap,
url, url: {},
util, util,
uv, uv,
v8, v8: {},
worker, worker: {},
zlib, zlib: {},
}; };
export type BindingName = keyof typeof modules; export type BindingName = keyof typeof modules;

View file

@ -1,3 +0,0 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
export {};

View file

@ -1,3 +0,0 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
export {};

View file

@ -1,3 +0,0 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
export {};

View file

@ -1,3 +0,0 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
export {};

View file

@ -1,3 +0,0 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
export {};

View file

@ -1,3 +0,0 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
export {};

View file

@ -1,3 +0,0 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
export {};

View file

@ -1,3 +0,0 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
export {};

View file

@ -1,3 +0,0 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
export {};

View file

@ -1,3 +0,0 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
export {};

View file

@ -1,3 +0,0 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
export {};

View file

@ -1,3 +0,0 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
export {};

View file

@ -1,3 +0,0 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
export {};

View file

@ -1,3 +0,0 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
export {};

View file

@ -1,3 +0,0 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
export {};

View file

@ -1,3 +0,0 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
export {};

View file

@ -1,3 +0,0 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
export {};

View file

@ -1,3 +0,0 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
export {};

View file

@ -1,3 +0,0 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
export {};

View file

@ -1,3 +0,0 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
export {};