Skip to content

Commit

Permalink
Upgrade miniz dependency to version 2.2.0 (#203)
Browse files Browse the repository at this point in the history
  • Loading branch information
kuba-- authored Jul 29, 2021
1 parent b7193d8 commit 5b3f387
Show file tree
Hide file tree
Showing 12 changed files with 7,960 additions and 4,818 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ jobs:
- name: Tools
run: sudo apt-get -y install tree
- name: Configure
run: cmake -DSANITIZE_ADDRESS=On .
run: |
cmake -DSANITIZE_ADDRESS=On .
- name: Build
run: |
cmake --build .
Expand All @@ -26,11 +27,10 @@ jobs:
run: brew install tree
- name: Configure
run: |
pip3 install scan-build
scan-build cmake -DCMAKE_AR=/usr/bin/ar -DSANITIZE_ADDRESS=On .
cmake -DSANITIZE_ADDRESS=On .
- name: Build
run: |
scan-build -v --exclude test -enable-checker security.FloatLoopCounter -enable-checker security.insecureAPI.UncheckedReturn --status-bugs cmake --build .
cmake --build .
tree -sha .
- name: Test
run: ctest -VV
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.4)

project(zip
LANGUAGES C
VERSION "0.1.32")
VERSION "0.2.0")
set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH})
set(CMAKE_VERBOSE_MAKEFILE ON)

Expand Down
14 changes: 1 addition & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
### A portable (OSX/Linux/Windows), simple zip library written in C
This is done by hacking awesome [miniz](https://code.google.com/p/miniz) library and layering functions on top of the miniz v1.15 API.
This is done by hacking awesome [miniz](https://code.google.com/p/miniz) library and layering functions on top of the miniz v2.2.0 API.

[![Build](https://github.com/kuba--/zip/workflows/build/badge.svg)](https://github.com/kuba--/zip/actions?query=workflow%3Abuild)

Expand Down Expand Up @@ -256,18 +256,6 @@ struct zip_t *zip = zip_open("foo.zip", 0, 'd');
zip_close(zip);
```

* Use custom CRC-32 function.
```c
unsigned long my_crc32(unsigned long crc, const void *buf, size_t bufsize) {
uint32_t c = crc32_16bytes_prefetch(buf, bufsize, (uint32_t)crc);
return (unsigned long)c;
}

//...
zip_crc32_func(my_crc32);

zip_extract("foo.zip", "/tmp", NULL, NULL);
```

# Bindings
Compile zip library as a dynamic library.
Expand Down
Loading

0 comments on commit 5b3f387

Please sign in to comment.