summaryrefslogtreecommitdiff
path: root/ext/node/ops/zlib/mode.rs
diff options
context:
space:
mode:
authorMatt Mastracci <matthew@mastracci.com>2023-11-11 07:20:12 -0700
committerGitHub <noreply@github.com>2023-11-11 07:20:12 -0700
commit56e76242f3d7082e412bc698ebc737d24910cb60 (patch)
tree1b7fc048e1a873b5b6d05870cd3485811966f671 /ext/node/ops/zlib/mode.rs
parent0c1ab2c7f7a6ebf7856df71dbd790d0d731f1b86 (diff)
chore(ext/node): use libz-sys w/`zlib-ng` feature in node (#21158)
We only want one zlib dependency. Zlib dependencies are reorganized so they use a hidden `__vendored_zlib_ng` flag in cli that enables zlib-ng for both libz-sys (used by ext/node) and flate2 (used by deno_web).
Diffstat (limited to 'ext/node/ops/zlib/mode.rs')
-rw-r--r--ext/node/ops/zlib/mode.rs16
1 files changed, 7 insertions, 9 deletions
diff --git a/ext/node/ops/zlib/mode.rs b/ext/node/ops/zlib/mode.rs
index ef89805ba..da12385e7 100644
--- a/ext/node/ops/zlib/mode.rs
+++ b/ext/node/ops/zlib/mode.rs
@@ -1,7 +1,5 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
-use libz_sys as sys;
-
#[derive(Debug)]
pub enum Error {
BadArgument,
@@ -60,12 +58,12 @@ repr_i32! {
#[derive(Clone, Copy, Debug, PartialEq, Default)]
pub enum Flush {
#[default]
- None = sys::Z_NO_FLUSH,
- Partial = sys::Z_PARTIAL_FLUSH,
- Sync = sys::Z_SYNC_FLUSH,
- Full = sys::Z_FULL_FLUSH,
- Finish = sys::Z_FINISH,
- Block = sys::Z_BLOCK,
- Trees = sys::Z_TREES,
+ None = zlib::Z_NO_FLUSH,
+ Partial = zlib::Z_PARTIAL_FLUSH,
+ Sync = zlib::Z_SYNC_FLUSH,
+ Full = zlib::Z_FULL_FLUSH,
+ Finish = zlib::Z_FINISH,
+ Block = zlib::Z_BLOCK,
+ Trees = zlib::Z_TREES,
}
}