-
-
Notifications
You must be signed in to change notification settings - Fork 29
Partial implementation of gzopen and gzclose #326
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
Conversation
|
With this PR, |
folkertdev
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
overall this is solid, I've left a bunch of inline comments.
Currently the new files are not tested on CI (for clippy, formatting, and actually running the tests). That means the gz flag has to be enabled for instance here https://github.com/trifectatechfoundation/zlib-rs/blob/main/.github/workflows/checks.yaml#L156
|
I think the wasm32 run is failing when the gz |
folkertdev
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I fixed the wasm CI issue by explicitly passing the path. I've also opened bytecodealliance/wasmtime#10490 because the behavior of --dir with non-absolute paths is confusing.
I've also made sure that the prefix macro is not publicly exported (how to do that is not clear at all, but something I've come across before).
|
I suspect the failure on x86_64-pc-windows-gnu might be because I'm using the Allocator allocate/deallocate interface wrong, but I don't have a way to repro it. |
|
I suspect the problem is ugh nevermind C ... |
|
I'll just try debugging on CI a bit. On linux all is well (at least, valgrind reports nothing), so yeah I'm not sure what's up. |
de4a86b to
841b7cd
Compare
|
Allright, got it. We were making some assumptions about alignment, which my new code for zeroed allocations violated. I also fixed some other issues with clippy and dropping |
53bb6e0 to
5d897ae
Compare
|
The three failed CI checks are all due to an external issue:
|
This includes skeletal implementations of the functions, plus build support (wrapped in a new feature flag called "gz") and test scaffolding.
folkertdev
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
allright, I think this should be a solid foundation now. I fixed that CI issue, and also added some extra docs to gzclose. In general we should, when the functions are complete, basically match the zlib docs (the idea being: users of our library should not have to read the official zlib docs; ours have all of the information too).
This includes skeletal implementations of the functions, plus build support (wrapped in a new feature flag called "gz") and test scaffolding.