Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(ext): remove use of brotli::ffi #24214

Merged
merged 1 commit into from
Jun 20, 2024

Conversation

0f-0b
Copy link
Contributor

@0f-0b 0f-0b commented Jun 14, 2024

Avoids issues when using these extensions in a project that also links to the C brotli library. See dropbox/rust-brotli#46.

unsafe {
brotli::ffi::compressor::BrotliEncoderCompressStream(
this.stm.stm,
brotli::ffi::compressor::BrotliEncoderOperation::BROTLI_OPERATION_PROCESS,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed the BROTLI_OPERATION_PROCESS call here. Tests still pass locally but I'm not sure if this is correct.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That seems redundant

Copy link
Member

@littledivy littledivy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

unsafe {
brotli::ffi::compressor::BrotliEncoderCompressStream(
this.stm.stm,
brotli::ffi::compressor::BrotliEncoderOperation::BROTLI_OPERATION_PROCESS,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That seems redundant

@littledivy littledivy changed the title refactor(ext/{http,node}): remove use of brotli::ffi refactor(ext): remove use of brotli::ffi Jun 20, 2024
@littledivy littledivy merged commit 88e3f46 into denoland:main Jun 20, 2024
17 checks passed
@0f-0b 0f-0b deleted the remove-brotli-ffi branch June 20, 2024 16:27
sbmsr pushed a commit to sbmsr/deno-1 that referenced this pull request Jul 2, 2024
zebreus pushed a commit to zebreus/deno that referenced this pull request Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants