From 56533aa9873af51d3e73609ba93a61411baa6846 Mon Sep 17 00:00:00 2001 From: Josh Triplett Date: Fri, 28 Apr 2023 22:14:52 +0900 Subject: [PATCH] Improve documentation for zlib-ng, including development workflow --- README-zng.md | 9 +++++++++ README.md | 6 ++++++ 2 files changed, 15 insertions(+) diff --git a/README-zng.md b/README-zng.md index c8a75415..3ab32da8 100644 --- a/README-zng.md +++ b/README-zng.md @@ -23,6 +23,15 @@ safe API to work with DEFLATE, zlib, or gzip streams, see [`flate2`](https://docs.rs/flate2). `flate2` supports many different implementations. +# Development + +This crate is built from [the same sources as +`libz-sys`](https://github.com/rust-lang/libz-sys). From within those sources, +`Cargo.toml` is the manifest for `libz-sys`, and `Cargo-zng.toml` is the +manifest for `libz-ng-sys`. The script `./cargo-zng` invokes Cargo on a +temporary copy of the sources with `Cargo-zng.toml` replacing `Cargo.toml`; for +instance, use `./cargo-zng publish` to publish `libz-ng-sys`. + # License This project is licensed under either of diff --git a/README.md b/README.md index 465ba8ea..fcd72bfc 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,12 @@ if desired. Building zlib-ng requires `cmake`. +Crates that don't require compatibility with the zlib C API, and use zlib +exclusively from Rust or support the zlib-ng native C API (prefixed with +`zng_`) can use [`libz-ng-sys`](https://crates.io/crates/libz-ng-sys) instead, +which allows zlib and zlib-ng to coexist in the same program. See +[README-zng.md](README-zng.md) for details. + # License This project is licensed under either of