# Rust libz blitz!

**URL:** <https://internals.rust-lang.org/t/rust-libz-blitz/5184>\
**Category:** libs\
**Created:** [May 5, 2017, 5:58pm UTC](https://internals.rust-lang.org/t/rust-libz-blitz/5184 "2017-05-05T17:58:18Z")\
**Posts on this page:** 20\
**Page:** 4

<div class="post-metadata">

**Author:** ![brson](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/brson/32/5197_2.png) [@brson](https://internals.rust-lang.org/u/brson)\
**Post date:** [June 7, 2017, 12:38am UTC](https://internals.rust-lang.org/t/rust-libz-blitz/5184/61 "2017-06-07T00:38:50Z")

</div>

I created a cookbook issue for flate2 / tar recipes: [https://github.com/brson/rust-cookbook/issues/185](https://github.com/brson/rust-cookbook/issues/185)

---

<div class="post-metadata">

**Author:** ![brson](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/brson/32/5197_2.png) [@brson](https://internals.rust-lang.org/u/brson)\
**Post date:** [June 7, 2017, 12:44am UTC](https://internals.rust-lang.org/t/rust-libz-blitz/5184/62 "2017-06-07T00:44:53Z")

</div>

Also for bitflags: [https://github.com/brson/rust-cookbook/issues/190](https://github.com/brson/rust-cookbook/issues/190)

---

<div class="post-metadata">

**Author:** ![brson](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/brson/32/5197_2.png) [@brson](https://internals.rust-lang.org/u/brson)\
**Post date:** [June 8, 2017, 9:57pm UTC](https://internals.rust-lang.org/t/rust-libz-blitz/5184/63 "2017-06-08T21:57:05Z")

</div>

Due to a scheduling conflict I bumped mio to 8/15, and moved gcc up to 7/11.

Since we’re trying to open evaluations one month ahead of time, that means @burntsushi will need to open the gcc thread next week.

walkdir is scheduled for next Tuesday. Everything ready to go @KodrAus? Need any help still?

---

<div class="post-metadata">

**Author:** ![KodrAus](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/kodraus/32/2816_2.png) [@KodrAus](https://internals.rust-lang.org/u/KodrAus)\
**Post date:** [June 11, 2017, 3:34am UTC](https://internals.rust-lang.org/t/rust-libz-blitz/5184/64 "2017-06-11T03:34:38Z")

</div>

@brson Yep, everything should be good to go. But any extra input is always appreciated 🙂

---

<div class="post-metadata">

**Author:** ![brson](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/brson/32/5197_2.png) [@brson](https://internals.rust-lang.org/u/brson)\
**Post date:** [June 13, 2017, 9:37pm UTC](https://internals.rust-lang.org/t/rust-libz-blitz/5184/65 "2017-06-13T21:37:45Z")

</div>

I added rayon and mime to on-deck evaluations. rayon is about ready for 1.0, and very popular. mime also gets around a lot and libs team has expressed interest. I demoted env\_logger to out-of-band evaluations, as I don’t see the libs team revisiting logging any time soon. I’m still hopeful to get some such evaluations going soon.

The csv crate is also about ready for 1.0, and would be worthy of review. As a @burntsushi crate it’s going to be super high quality. I’m a little iffy about whether it is within the present mandate of this project, though certainly csv is a common format, and is sometimes supported by standard libraries.

---

<div class="post-metadata">

**Author:** ![burntsushi](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/burntsushi/32/279_2.png) [@burntsushi](https://internals.rust-lang.org/u/burntsushi)\
**Post date:** [June 13, 2017, 10:09pm UTC](https://internals.rust-lang.org/t/rust-libz-blitz/5184/66 "2017-06-13T22:09:11Z")

</div>

RE `csv`: It’s at `1.0.0-beta.3` right now, which was intentional so that I could still make breaking changes. My plan is to probably get `1.0` out before the end of the year. I agree with your concerns @brson though, but I just wanted to put this out there!

---

<div class="post-metadata">

**Author:** ![budziq](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/budziq/32/2289_2.png) [@budziq](https://internals.rust-lang.org/u/budziq)\
**Post date:** [June 13, 2017, 10:22pm UTC](https://internals.rust-lang.org/t/rust-libz-blitz/5184/67 "2017-06-13T22:22:34Z")

</div>

I would like to mention that @kbknapp has started a [libz Blitz Style overhaul](https://github.com/kbknapp/clap-rs/issues/950) for clap-rs some time ago 👍

---

<div class="post-metadata">

**Author:** ![KodrAus](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/kodraus/32/2816_2.png) [@KodrAus](https://internals.rust-lang.org/u/KodrAus)\
**Post date:** [June 14, 2017, 8:54pm UTC](https://internals.rust-lang.org/t/rust-libz-blitz/5184/68 "2017-06-14T20:54:39Z")

</div>

@brson Were we adding `same_file` as an out-of-band crate?

I’m happy to kick that off next week, it shouldn’t block `walkdir` since we’re removing the re-export.

---

<div class="post-metadata">

**Author:** ![brson](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/brson/32/5197_2.png) [@brson](https://internals.rust-lang.org/u/brson)\
**Post date:** [June 15, 2017, 8:38pm UTC](https://internals.rust-lang.org/t/rust-libz-blitz/5184/69 "2017-06-15T20:38:47Z")

</div>

@KodrAus Yes let’s add same\_file to out-of-band.

@budziq oh cool, thanks for the heads-up!

I’m just going through and triaging stuff and realized I did not post a status update last week! Sorry about that. I will do two weeks in the next report.

---

<div class="post-metadata">

**Author:** ![brson](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/brson/32/5197_2.png) [@brson](https://internals.rust-lang.org/u/brson)\
**Post date:** [June 15, 2017, 11:05pm UTC](https://internals.rust-lang.org/t/rust-libz-blitz/5184/70 "2017-06-15T23:05:18Z")

</div>

# Rust Libz Blitz status update 2017-06-15

Ok, this is an update of the last two weeks.

The big event this time was that @KodrAus finished the [walkdir evaluation](https://internals.rust-lang.org/t/crate-evaluation-for-2017-06-13-walkdir/5306), and it went really well. He filed a bunch of very [well-documented issues](https://github.com/BurntSushi/walkdir/issues/47) that are all still open and want to be closed.

The [error-chain evaluation](https://internals.rust-lang.org/t/crate-evaluation-for-2017-06-27-error-chain/5362) is open too and in need of help completing the [guidelines checklist](https://public.etherpad-mozilla.org/p/rust-api-guidelines-error-chain) and brainstorming [ideas](https://github.com/brson/rust-cookbook/issues/184) for cookbook recipes. There’s also a fair bit of discussion on that thread about the error-chain design. If you have opinions don’t hesitate to jump in.

Coming up we’ll expect @burntsushi to get the gcc evaluation started soon, and for me to schedule out the next few crates after that.

I also hope to start a push for getting actual 1.0 crates released, and to motivate that with a “1.0 achievements” thread of some kind, where any crate author can post their crate that meets some qualifications to the best of their determination.

It was another really productive week. Thanks to everybody who chipped in!

## url

- @SimonSapin [updated the `percent_encoding` docs](https://github.com/servo/rust-url/pull/361)
- @SimonSapin [moved `percent_encoding` to its own crate](https://github.com/servo/rust-url/pull/362)
- @tomecki [made `HostAndPort` impl `Display`](https://github.com/servo/rust-url/pull/328)
- @imor [implemented `Debug` for many types](https://github.com/servo/rust-url/pull/335)
- @cGuille [implemented `Hash` for `Origin`](https://github.com/servo/rust-url/pull/321)
- @SimonSapin [hid the `quirks` module](https://github.com/servo/rust-url/issues/311)
- @Enet24 [replaced `unwrap` with `?` in examples](https://github.com/servo/rust-url/pull/323)
- @tmccombs [explained ‘fragments’](https://github.com/servo/rust-url/pull/357)

## log

- @budziq [added doc references to other loggers](https://github.com/rust-lang-nursery/log/issues/188)
- @budziq [added docs for interaction between features and `log!`](https://github.com/rust-lang-nursery/log/pull/198)
- @rap2hpoutre [improved `max_log_level` docs](https://github.com/rust-lang-nursery/log/issues/185)
- @nivkner [improved `set_logger_raw` docs](https://github.com/rust-lang-nursery/log/pull/190)

## reqwest

- @budziq [exposed `RedirectAction` and `RedirectAttempt`](https://github.com/seanmonstar/reqwest/pull/137)
- @tomprince [hid internal conversions](https://github.com/seanmonstar/reqwest/pull/131)
- @tomprince [made `Error::get_ref` return `Send+Sync`](https://github.com/seanmonstar/reqwest/pull/132)
- @theduke [moved `try_` macro to error.rs](https://github.com/seanmonstar/reqwest/pull/127)
- @alisha17 [converted examples to `?`](https://github.com/seanmonstar/reqwest/pull/135)
- @budziq [added “Errors” sections to docs](https://github.com/seanmonstar/reqwest/issues/138)
- @jaemk [improved `Response` docs](https://github.com/seanmonstar/reqwest/issues/141)
- @jaemk [added examples to `Body` ctors](https://github.com/seanmonstar/reqwest/issues/139)
- @Andygauge [improved error docs](https://github.com/seanmonstar/reqwest/issues/144)
- @jaemk [improved `RequestBuilder` docs](https://github.com/seanmonstar/reqwest/issues/145)

## cookbook

- @budziq [added “compress a directory into a tarball”](https://github.com/brson/rust-cookbook/pull/191)
- @sb89 [added “extract all links from a webpage”](https://github.com/brson/rust-cookbook/pull/183)
- @budziq [added “define and operate on a type represented as a bitfield”](https://github.com/brson/rust-cookbook/pull/192)
- @budziq [upgraded rayon and image](https://github.com/brson/rust-cookbook/pull/197)
- @budziq [pinned mdbook to 0.0.22](https://github.com/brson/rust-cookbook/pull/196)
- @budziq [clarified the cookbook license](https://github.com/brson/rust-cookbook/pull/195)
- @crypto-universe [added “recursively calculate file sizes at a given depth”](https://github.com/brson/rust-cookbook/pull/195)

## help wanted

- [walkdir: Add Error docs to methods that return Result](https://github.com/BurntSushi/walkdir/issues/24)
- [walkdir: Use `?` in docs instead of unwrapping](https://github.com/BurntSushi/walkdir/issues/25)
- [walkdir: Add example for content\_first](https://github.com/BurntSushi/walkdir/issues/26)
- [walkdir: Add links to other walkdir items in DirEntry docs](https://github.com/BurntSushi/walkdir/issues/27)
- [walkdir: Add links to other walkdir items in Iter and IterFilterEntry docs](https://github.com/BurntSushi/walkdir/issues/28)
- [walkdir: Add links to other walkdir items in WalkDir docs](https://github.com/BurntSushi/walkdir/issues/29)
- [walkdir: Add links to other walkdir items in WalkDirIterator docs](https://github.com/BurntSushi/walkdir/issues/30)
- [walkdir: Document that `Iter` and `IterFilterEntry` are the result of trait methods](https://github.com/BurntSushi/walkdir/issues/31)
- [walkdir: Correct errors in WalkDir type docs](https://github.com/BurntSushi/walkdir/issues/32)
- [walkdir: Add html\_root\_url attribute](https://github.com/BurntSushi/walkdir/issues/33)
- [walkdir: Implement Debug for WalkDir, Iter and IterFilterEntry](https://github.com/BurntSushi/walkdir/issues/34)
- [walkdir: Add build badges to Cargo.toml](https://github.com/BurntSushi/walkdir/issues/35)
- [walkdir: Add categories to Cargo.toml](https://github.com/BurntSushi/walkdir/issues/36)
- [walkdir: Rename Iter to IntoIter](https://github.com/BurntSushi/walkdir/issues/37)
- [walkdir: Rename IterFilterEntry to FilterEntry](https://github.com/BurntSushi/walkdir/issues/38)
- [walkdir: Link references to std in docs](https://github.com/BurntSushi/walkdir/issues/39)
- [walkdir: Make skip\_current\_dir and filter\_entry inherent methods](https://github.com/BurntSushi/walkdir/issues/40)
- [walkdir: Make WalkDir Send + Sync](https://github.com/BurntSushi/walkdir/issues/41)
- [walkdir: Document why unwraps won’t fail](https://github.com/BurntSushi/walkdir/issues/42)
- [walkdir: Remove re-export of is\_same\_file](https://github.com/BurntSushi/walkdir/issues/43)
- [walkdir: Change OsString args in sort\_by to OsStr](https://github.com/BurntSushi/walkdir/issues/44)
- [walkdir: Move DirEntry::ino method to an extension trait](https://github.com/BurntSushi/walkdir/issues/46)
- [cookbook: Use `filter_entry` in walkdir example](https://github.com/brson/rust-cookbook/issues/182)
- [cookbook: “decompress a tarball while removing a prefix from the paths”](https://github.com/brson/rust-cookbook/issues/187)
- [cookbook: Move to skeptic 0.10](https://github.com/brson/rust-cookbook/issues/194)
- [skeptic (used by cookbook): multiple matching crates when deps are duplicated](https://github.com/brson/rust-skeptic/issues/18)

---

<div class="post-metadata">

**Author:** ![brson](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/brson/32/5197_2.png) [@brson](https://internals.rust-lang.org/u/brson)\
**Post date:** [June 15, 2017, 11:24pm UTC](https://internals.rust-lang.org/t/rust-libz-blitz/5184/71 "2017-06-15T23:24:19Z")

</div>

I updated the [evaluation template](https://public.etherpad-mozilla.org/p/rust-libz-blitz-eval-template) to reflect the format used in the latest evaluation.

---

<div class="post-metadata">

**Author:** ![brson](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/brson/32/5197_2.png) [@brson](https://internals.rust-lang.org/u/brson)\
**Post date:** [June 16, 2017, 12:24am UTC](https://internals.rust-lang.org/t/rust-libz-blitz/5184/72 "2017-06-16T00:24:13Z")

</div>

I’ve scheduled rayon for 8/29 cc @nikomatsakis

That leaves 3 more slots for us to fill to fulfill our scheduled 16 crates for the year. I am not sure yet what will happen schedule-wise after that, but probably the focus will be on actually getting those 1.0 version bumps so we have something to show for ourselves at the end of the year. I think though that we will probably maintain some kind of steady schedule. We’ll see.

In the meantime, I’m also looking at more crates for the “out-of-band” crate selection, that is crates we can run evaluations on at any time, but that the libs team is not going to conduct an entire meeting about. I’ll fill out that list a bit, and contact authors to get consent to review their crates.

---

<div class="post-metadata">

**Author:** ![SimonSapin](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/simonsapin/32/3158_2.png) [@SimonSapin](https://internals.rust-lang.org/u/SimonSapin)\
**Post date:** [June 16, 2017, 12:25am UTC](https://internals.rust-lang.org/t/rust-libz-blitz/5184/73 "2017-06-16T00:25:07Z")

</div>

> [@brson](#):
>
> - @SimonSapin updated the percent\_encoding docs
> - @SimonSapin moved percent\_encoding to its own crate

These were rebases of PRs by @AndyGauge and @seanmonstar.

---

<div class="post-metadata">

**Author:** ![nikomatsakis](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/nikomatsakis/32/5410_2.png) [@nikomatsakis](https://internals.rust-lang.org/u/nikomatsakis)\
**Post date:** [June 16, 2017, 9:35am UTC](https://internals.rust-lang.org/t/rust-libz-blitz/5184/74 "2017-06-16T09:35:26Z")

</div>

cc @cuviper

---

<div class="post-metadata">

**Author:** ![brson](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/brson/32/5197_2.png) [@brson](https://internals.rust-lang.org/u/brson)\
**Post date:** [June 19, 2017, 9:21pm UTC](https://internals.rust-lang.org/t/rust-libz-blitz/5184/75 "2017-06-19T21:21:17Z")

</div>

@cuviper I didn’t realize you had done so much on rayon. Can you join the libs meeting on 8/29, 1 PM PST?

---

<div class="post-metadata">

**Author:** ![cuviper](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/cuviper/32/1897_2.png) [@cuviper](https://internals.rust-lang.org/u/cuviper)\
**Post date:** [June 19, 2017, 9:33pm UTC](https://internals.rust-lang.org/t/rust-libz-blitz/5184/76 "2017-06-19T21:33:50Z")

</div>

@brson Sure, I’ll be there, thanks!

---

<div class="post-metadata">

**Author:** ![brson](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/brson/32/5197_2.png) [@brson](https://internals.rust-lang.org/u/brson)\
**Post date:** [June 19, 2017, 10:22pm UTC](https://internals.rust-lang.org/t/rust-libz-blitz/5184/77 "2017-06-19T22:22:12Z")

</div>

To account for our accomplishments at the end of the year, I’ve put together a [spreadsheet](https://docs.google.com/spreadsheets/d/1BvbidsmyQbEabTBFe73g9r1LWVfe7gha4UFdkQ_YHQA/edit#gid=0) tracking the contributions to both crates and the cookbook, by individual contributor. Note the pivot table sheets that sum up contributions.

So far it counts fixes to 99 crate issues, and 32 cookbook recipes. That’s pretty great!

---

<div class="post-metadata">

**Author:** ![brson](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/brson/32/5197_2.png) [@brson](https://internals.rust-lang.org/u/brson)\
**Post date:** [June 19, 2017, 11:00pm UTC](https://internals.rust-lang.org/t/rust-libz-blitz/5184/78 "2017-06-19T23:00:36Z")

</div>

OK, I’ve taken the bold step of scheduling [rand](http://docs.rs/rand) for 7/25 (which means we have to kick-start that evaluation next week).

I’m going to suggest that our disposition here with rand should be to polish it and release 1.0, limiting ambitious design changes. rand has been the subject of a lot of criticism over the years, and has suffered from not having a dedicated maintainer, but rand is also the best way we have to get random numbers today, and it’s just fine at that. There’s going to be a strong temptation to not settle on good enough, and demand a complete redesign, but the fact is that has not happened in the years people have been wanting it. There’s plenty we can do to improve the crate we actually have, and we should do that.

So let’s do a thorough review, and be cognizant of scoping the resultant work to what we can reasonably accomplish now, and what we can accomplish later.

Perhaps getting out a limited-ambition rand 1.0 will inspire someone to come along and design a better rand, and that can become rand 2.0, or it will deprecate rand. Let’s give it a shot and see what happens.

We need somebody to lead this evaluation. Anybody interested?

cc @bstrie I know you’ve talked about working on rand recently.

---

<div class="post-metadata">

**Author:** ![briansmith](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/briansmith/32/1306_2.png) [@briansmith](https://internals.rust-lang.org/u/briansmith)\
**Post date:** [June 19, 2017, 11:48pm UTC](https://internals.rust-lang.org/t/rust-libz-blitz/5184/79 "2017-06-19T23:48:23Z")

</div>

> [@brson](#):
>
> rand is also the best way we have to get random numbers today

I don't think this is true at all. I spent significant amount of time documenting just a subset of the serious deficiencies with its design already: [Tracking issue for stabilizing randomness · Issue #27703 · rust-lang/rust · GitHub](https://github.com/rust-lang/rust/issues/27703#issuecomment-178143920).

> [@](#):
>
> Perhaps getting out a limited-ambition rand 1.0 will inspire someone to come along and design a better rand, and that can become rand 2.0, or it will deprecate rand. Let's give it a shot and see what happens.

It's already done better in _ring_.

---

<div class="post-metadata">

**Author:** ![brson](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/brson/32/5197_2.png) [@brson](https://internals.rust-lang.org/u/brson)\
**Post date:** [June 19, 2017, 11:59pm UTC](https://internals.rust-lang.org/t/rust-libz-blitz/5184/80 "2017-06-19T23:59:30Z")

</div>

I’ve also triaged the list of “out-of-band” evaluations for crates that are ready to be evaluated. They are updated in the op and also listed here along with their maintainers.

- [cfg-if](https://docs.rs/cfg-if) - acrichto
- [csv](https://docs.rs/csv) - BurntSushi
- [mime](https://docs.rs/mime) - seanmonstar
- [regex](https://docs.rs/regex) - burntsushi
- [same-file](https://docs.rs/same-file) - BurntSushi
- [semver](https://docs.rs/semver) - steveklabnik
- [tar](https://docs.rs/tar) - acrichto
- [threadpool](https://docs.rs/threadpool) - frewsxcv
- [unicode-segmentation](https://docs.rs/unicode-segmentation) - mbrubeck, Manishearth, SimonSapin, co-maintained

These are important crates that for whatever reason the libs team is unlikely to dedicate one of their meetings to. But they still deserve the same polish and review that we pride ourselves on.

This list is composed of crates who’s authors have already assented to having their crates scrutinized as part of the libz blitz. I am additionally contacting the authors of a few others crates.

**Volunteers are needed to lead these evaluations**. If you are interested say so on this thread.

The process for leading an evaluation is roughly:

- Add the crate to the OP of this thread, either to 'crate schedule’ if it’s going to a libs team meeting, or to ‘other crate evaluations’, for ‘out-of-band’ crate evalautions (like these).
- Open an internals thread using the [evaluation template](https://public.etherpad-mozilla.org/p/rust-libz-blitz-eval-template), following the example of previous evaluations. Convert the op to a wiki with the wrench icon in the bottom right set of options.
- Open an issue against [rust-cookbook](https://github.com/brson/rust-cookbook) to brainstorm examples.
- Copy the [API guidelines](https://github.com/brson/rust-api-guidelines) checklist to an etherad, linked from the evaluation op.
- Encourage contributors to fill out sections of the guidelines checklist, to make free-form observations on thread, and suggest cookbook examples.
- As guidelines are completed, make notes in the op about potential issues to file against the crate once the evaluation is complete, and matters that need more discussion.
- Work with the crate author to note pre-existing issues that block a 1.0 release.
- After a few weeks, organize the issues and discussion points. Work with the author and community to agree on a set of resolutions and file them as issues on the crate repository, linked to a single tracking issue. Follow existing examples.
- Periodically follow up on the cookbook and crate tracking issues to help drive them to completion.

Hm, this might sound like a big task, and it kinda is, but it’s important work, and so far has resulted in valuable improvements and contributions.

[Previous page](https://internals.rust-lang.org/t/rust-libz-blitz/5184.md?page=3)

[Next page](https://internals.rust-lang.org/t/rust-libz-blitz/5184.md?page=5)
