seanmonstar / httparse

A push parser for the HTTP 1.x protocol in Rust.
https://docs.rs/httparse
Apache License 2.0
569 stars 110 forks source link

tests fail to build with --no-default-features. #125

Open plugwash opened 1 year ago

plugwash commented 1 year ago

While updating the rust-httpparse package in Debian I noticed a failure building the tests with --no-default-features, due to use of std::u64::MAX, replacing it with core::u64::MAX fixed the issue.

Patch at https://salsa.debian.org/rust-team/debcargo-conf/-/blob/26e95fce67cc0210c85518ae25e38c58c4901334/src/httparse/debian/patches/fix-tests-no-default-features.patch