Comments (3)
What am I missing?
The transition is a bit more complex than that, Zlib_deflate.error
does not exists anymore and all the API was updated since 1.0.0
(I did not detailed how to update an decompress.0.8.0
's code to decompress.1.0.0
but I notified a huge breaking change at the release).
I can take a look and propose a PR to help you about the migration 👍.
from decompress.
Hi, decompress.1.0.0
introduces a new package layout where the package decompress
is a meta-empty package which have nothing. Then, 3 packages exists:
decompress.de
which implements RFC1951decompress.zl
which implements Zlibdecompress.gz
which implements Gzip
So it depends on what you want. I can infer that you probably want Zlib and in this case, a dune
file should be:
(executable
(name my_exe)
(libraries checkseum.ocaml decompress.zl))
Then, the layout of modules changes a bit too where the module Decompress
does not exist anymore but Zl
(if you link with decompress.zl
) exists. I just discovered that the documentation was not updated properly but now you can get it now at this address: https://mirage.github.io/decompress/decompress/Zl/index.html
For a normal use (without a micro control of allocation), Higher
is the most easy entry-point.
I should update the README.md
about this new version. If you have any question, please don't hesitate - I will close this issue when I will update the README.md
.
from decompress.
I have made the following changes:
- Used
decompress.zl
in the dune file. - Updated to use
open De
instead ofopen Decompress
.
Now I get this error:
File "benchmarks/decompress/test_decompress.ml", line 6, characters 27-45:
6 | exception Deflate_error of Zlib_deflate.error
^^^^^^^^^^^^^^^^^^
Error: Unbound module Zlib_deflate
What am I missing?
from decompress.
Related Issues (20)
- Explain `i_rem`
- Brotli support
- Compression support HOT 1
- ocamlformat uses one column about static int array HOT 2
- Provide the stream API on the C side
- decompress 1.3.0 tests fail to build due to bigarry pulling in dune HOT 2
- Include an even-higher level interface? HOT 6
- Exception raised when flushing buffers HOT 9
- lto1: fatal error: bytecode stream in file ‘~/.opam/default/lib/checkseum/c/libcheckseum_c_stubs.a’ generated with LTO version 9.2 instead of the expected 9.4 HOT 2
- Buffer overflow in De.Inf.Ns.inflate HOT 9
- Unable to build benchmark locally HOT 2
- BGZF support
- Fix for OCaml 4.08
- Find the data end without actual unpacking HOT 4
- Gzip support HOT 1
- bin/pipe.ml isn't fixed for the new API
- Index out of bounds in de.ml HOT 2
- Read 2 bytes per 2 bytes instead 1 and 1 byte. HOT 1
- Non full-stream interface HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from decompress.