Skip to content

Commit

Permalink
feat: port node:zlib to rust (#18291)
Browse files Browse the repository at this point in the history
  • Loading branch information
littledivy authored and mmastrac committed Mar 31, 2023
1 parent 7c6ef81 commit c4ea1e3
Show file tree
Hide file tree
Showing 33 changed files with 897 additions and 7,471 deletions.
13 changes: 13 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions ext/node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ ecb.workspace = true
hex.workspace = true
idna = "0.3.0"
indexmap.workspace = true
libz-sys = { version = "1.1.8", features = ["static"] }
md-5 = "0.10.5"
md4 = "0.10.2"
once_cell.workspace = true
Expand Down
9 changes: 8 additions & 1 deletion ext/node/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ mod polyfill;
mod resolution;
mod v8;
mod winerror;
mod zlib;

pub use package_json::PackageJson;
pub use path::PathClean;
Expand Down Expand Up @@ -119,6 +120,13 @@ deno_core::extension!(deno_node,
idna::op_node_idna_domain_to_unicode,
idna::op_node_idna_punycode_decode,
idna::op_node_idna_punycode_encode,
zlib::op_zlib_new,
zlib::op_zlib_close,
zlib::op_zlib_close_if_pending,
zlib::op_zlib_write,
zlib::op_zlib_write_async,
zlib::op_zlib_init,
zlib::op_zlib_reset,
op_node_build_os,

ops::op_require_init_paths,
Expand Down Expand Up @@ -195,7 +203,6 @@ deno_core::extension!(deno_node,
"_http_common.ts",
"_http_outgoing.ts",
"_next_tick.ts",
"_pako.mjs",
"_process/exiting.ts",
"_process/process.ts",
"_process/streams.mjs",
Expand Down
Loading

0 comments on commit c4ea1e3

Please sign in to comment.