Skip to content

Commit 12c89dd

Browse files
committed
Build fixes
1 parent 32c2390 commit 12c89dd

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.github/workflows/checks.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,8 @@ jobs:
398398
- name: build with and test the result of cargo-c
399399
working-directory: libz-rs-sys-cdylib
400400
run: |
401+
# fetch dependencies so the "cargo cinstall --offline" will work
402+
cargo fetch
401403
# build using cargo-c this time
402404
cargo cinstall --offline --release --destdir=/tmp/cargo-cbuild-libz-rs
403405
tree /tmp/cargo-cbuild-libz-rs

libz-rs-sys-cdylib/src/gz.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,11 @@ use zlib_rs::MAX_WBITS;
2222
/// of an open gzFile to support the gzgetc() C macro. Since Rust code won't be
2323
/// using that C macro, we define gzFile_s as an empty structure. The first fields
2424
/// in GzState match what would be in the C version of gzFile_s.
25+
#[allow(non_camel_case_types)]
2526
pub enum gzFile_s {}
2627

2728
/// File handle for an open gzip file.
29+
#[allow(non_camel_case_types)]
2830
pub type gzFile = *mut gzFile_s;
2931

3032
// The internals of a gzip file handle (the thing gzFile actually points to, with the
@@ -139,6 +141,7 @@ impl GzState {
139141

140142
// Gzip operating modes
141143
// NOTE: These values match what zlib-ng uses.
144+
#[allow(non_camel_case_types)]
142145
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
143146
enum GzMode {
144147
GZ_NONE = 0,

0 commit comments

Comments
 (0)