Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: rust-lang/libz-sys
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.1.6
Choose a base ref
...
head repository: rust-lang/libz-sys
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1.1.7
Choose a head ref
  • 12 commits
  • 13 files changed
  • 2 contributors

Commits on Apr 27, 2022

  1. Fix static wasm build without wasi

    `libc` doesn't have `off_t` for WebAssembly without WASI, so it falls
    back to `long`.  Do the same in this crate to fix the build error when
    trying to statically build libz for WebAssembly.
    
    Rough code from `zconf.h` declaring `z_off_t`:
    ```c++
    #ifndef Z_SOLO
    #  if defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE)
    // [...]
    #    ifndef z_off_t
    #      define z_off_t off_t
    #    endif
    #  endif
    #endif
    
    // [...]
    
    #ifndef z_off_t
    #  define z_off_t long
    #endif
    ```
    
    Fixes #95.
    tbu- committed Apr 27, 2022
    Configuration menu
    Copy the full SHA
    c200d28 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #94 from tbu-/pr_wasm_static

    Fix static wasm build without wasi
    joshtriplett authored Apr 27, 2022
    Configuration menu
    Copy the full SHA
    fdd07d4 View commit details
    Browse the repository at this point in the history

Commits on May 13, 2022

  1. Configuration menu
    Copy the full SHA
    9a9b1cf View commit details
    Browse the repository at this point in the history
  2. Merge pull request #97 from joshtriplett/upgrade-ctest2

    Upgrade ctest2, now that it no longer uses mem::zeroed
    joshtriplett authored May 13, 2022
    Configuration menu
    Copy the full SHA
    8b70488 View commit details
    Browse the repository at this point in the history

Commits on May 26, 2022

  1. Run cargo fmt

    This leads to a bit of churn, but will hopefully make further changes
    easier.
    joshtriplett committed May 26, 2022
    Configuration menu
    Copy the full SHA
    7357fa9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    561d951 View commit details
    Browse the repository at this point in the history
  3. Drop html_root_url

    Per rust-lang/api-guidelines#230 .
    
    This also avoids having something that needs to be kept updated.
    joshtriplett committed May 26, 2022
    Configuration menu
    Copy the full SHA
    0fd6fe6 View commit details
    Browse the repository at this point in the history
  4. Upgrade to 2018 edition, and drop usage of extern crate

    This also eliminates a `cfg`.
    joshtriplett committed May 26, 2022
    Configuration menu
    Copy the full SHA
    9e7cca9 View commit details
    Browse the repository at this point in the history

Commits on May 27, 2022

  1. Configuration menu
    Copy the full SHA
    000d597 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    da45727 View commit details
    Browse the repository at this point in the history

Commits on May 28, 2022

  1. Add a libz-ng-sys crate, using the same sources with minimal duplication

    libz-ng-sys uses the zlib-ng native API, rather than the zlib-compat
    API. It exports the same Rust API (modulo the slight differences in
    types), without the `zng_` prefixes, to make it easy to write Rust
    software that works with both.
    
    Add a separate Cargo.toml and README for libz-ng-sys.
    
    Move the `build_zlib_ng` function from `build.rs` to `build_zng.rs`, and
    use that as the build script for libz-ng-sys.
    
    Add a cargo-zng script that creates the libz-ng-sys crate in a temporary
    directory and runs cargo on it, to make it easy to run tests with:
    ```
    ./cargo-zng test
    ./cargo-zng run --manifest-path systest/Cargo.toml
    ```
    
    Test libz-ng-sys in CI.
    joshtriplett committed May 28, 2022
    Configuration menu
    Copy the full SHA
    3c04bd6 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #98 from joshtriplett/libz-ng-sys

    Add a libz-ng-sys crate, using the same sources with minimal duplication
    joshtriplett authored May 28, 2022
    Configuration menu
    Copy the full SHA
    eca8e5c View commit details
    Browse the repository at this point in the history
Loading