zlib 0.0.1

An (incomplete) port of zlib to Rust. The decompressor works, but the compressor has not yet been ported.
Build #90258 2018-03-06 02:27:00

Build failed. If you want to re-trigger a documentation build, you can do it here. You can find more information on docs.rs builds documentation on the builds page.

# rustc version rustc 1.26.0-dev (5c1d29af0 2018-03-03)

# docs.rs version cratesfyi 0.5.0 (579f83b 2018-03-05)

# build log Build failed, waiting for other jobs to finish... Updating registry `https://github.com/rust-lang/crates.io-index` Downloading zlib v0.0.1 Compiling crc32 v0.0.2 Compiling zlib v0.0.1 Running `rustc --crate-name build_script_build .cargo/registry/src/github.com-1ecc6299db9ec823/crc32-0.0.2/build.rs --crate-type bin --emit=dep-info,link -C debuginfo=2 -C metadata=ab4a5265218d66c4 -C extra-filename=-ab4a5265218d66c4 --out-dir /home/cratesfyi/cratesfyi/debug/build/crc32-ab4a5265218d66c4 -L dependency=/home/cratesfyi/cratesfyi/debug/deps --cap-lints allow` Running `rustc --crate-name build_script_build .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/build.rs --crate-type bin --emit=dep-info,link -C debuginfo=2 --cfg 'feature="default"' -C metadata=a7a85357c153d883 -C extra-filename=-a7a85357c153d883 --out-dir /home/cratesfyi/cratesfyi/debug/build/zlib-a7a85357c153d883 -L dependency=/home/cratesfyi/cratesfyi/debug/deps --cap-lints allow` error: invalid suffix `u` for numeric literal --> .cargo/registry/src/github.com-1ecc6299db9ec823/crc32-0.0.2/src/crc32gen.rs:50:24 | 50 | for _ in range(0u, 8u) { | ^^ | = help: the suffix must be one of the integral types (`u32`, `isize`, etc) error: invalid suffix `u` for numeric literal --> .cargo/registry/src/github.com-1ecc6299db9ec823/crc32-0.0.2/src/crc32gen.rs:50:28 | 50 | for _ in range(0u, 8u) { | ^^ | = help: the suffix must be one of the integral types (`u32`, `isize`, etc) error: expected one of `!`, `(`, `+`, `::`, `;`, `<`, or `]`, found `,` --> .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/build.rs:31:25 | 31 | let mut fixed: [Code, ..544] = [Default::default(); 544]; | ---------- ^ expected one of 7 possible tokens here | | | | | help: use `=` if you meant to assign | while parsing the type for `mut fixed` error: expected one of `!`, `(`, `+`, `::`, `;`, `<`, or `]`, found `,` --> .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/build.rs:32:23 | 32 | let mut work: [u16, ..288] = [Default::default(); 288]; // work area for code table building | --------- ^ expected one of 7 possible tokens here | | | | | help: use `=` if you meant to assign | while parsing the type for `mut work` error: expected one of `!`, `(`, `+`, `::`, `;`, `<`, or `]`, found `,` --> .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/build.rs:36:23 | 36 | let mut lens: [u16, ..320] = [Default::default(); 320]; // temporary storage for code lengths | --------- ^ expected one of 7 possible tokens here | | | | | help: use `=` if you meant to assign | while parsing the type for `mut lens` error: expected one of `!`, `(`, `+`, `::`, `;`, `<`, or `]`, found `,` --> .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/src/inflate/inftrees.rs:106:23 | 106 | static LBASE :[u16, ..31] = [ /* Length codes 257..285 base */ | ^ expected one of 7 possible tokens here error[E0464]: multiple matching crates for `log` --> .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/build.rs:5:1 | 5 | extern crate log; | ^^^^^^^^^^^^^^^^^ | = note: candidates: crate `log`: /usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblog-8752615744c3ecae.rlib crate `log`: /usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblog-35f70722151ae796.rlib error[E0463]: can't find crate for `log` --> .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/build.rs:5:1 | 5 | extern crate log; | ^^^^^^^^^^^^^^^^^ can't find crate error: aborting due to 6 previous errors You've got a few errors: E0463, E0464 If you want more information on an error, try using "rustc --explain E0463" error: Could not compile `zlib`. Caused by: process didn't exit successfully: `rustc --crate-name build_script_build .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/build.rs --crate-type bin --emit=dep-info,link -C debuginfo=2 --cfg feature="default" -C metadata=a7a85357c153d883 -C extra-filename=-a7a85357c153d883 --out-dir /home/cratesfyi/cratesfyi/debug/build/zlib-a7a85357c153d883 -L dependency=/home/cratesfyi/cratesfyi/debug/deps --cap-lints allow` (exit code: 101) error[E0433]: failed to resolve. Use of undeclared type or module `Path` --> .cargo/registry/src/github.com-1ecc6299db9ec823/crc32-0.0.2/build.rs:16:19 | 16 | let outpath = Path::new(outfile_name); | ^^^^ Use of undeclared type or module `Path` error[E0433]: failed to resolve. Could not find `File` in `io` --> .cargo/registry/src/github.com-1ecc6299db9ec823/crc32-0.0.2/build.rs:18:23 | 18 | let outfile = io::File::create(&outpath); | ^^^^ Could not find `File` in `io` error[E0433]: failed to resolve. Could not find `BufferedWriter` in `io` --> .cargo/registry/src/github.com-1ecc6299db9ec823/crc32-0.0.2/build.rs:19:25 | 19 | let mut outwr = io::BufferedWriter::new(outfile); | ^^^^^^^^^^^^^^ Could not find `BufferedWriter` in `io` error[E0412]: cannot find type `uint` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/crc32-0.0.2/src/crc32gen.rs:2:14 | 2 | const TBLS : uint = 8; | ^^^^ not found in this scope error[E0412]: cannot find type `uint` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/crc32-0.0.2/src/crc32gen.rs:41:40 | 41 | poly |= 1u32 << (31 - *term as uint); | ^^^^ not found in this scope error[E0425]: cannot find function `range` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/crc32-0.0.2/src/crc32gen.rs:48:14 | 48 | for n in range(0, 0x100) { | ^^^^^ not found in this scope error[E0425]: cannot find function `range` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/crc32-0.0.2/src/crc32gen.rs:50:18 | 50 | for _ in range(0u, 8u) { | ^^^^^ not found in this scope error[E0425]: cannot find function `range` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/crc32-0.0.2/src/crc32gen.rs:59:14 | 59 | for n in range(0, 0x100) { | ^^^^^ not found in this scope error[E0425]: cannot find function `range` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/crc32-0.0.2/src/crc32gen.rs:62:18 | 62 | for k in range(1, 3) { | ^^^^^ not found in this scope error[E0412]: cannot find type `uint` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/crc32-0.0.2/src/crc32gen.rs:63:35 | 63 | c = crc_table[0][c as uint & 0xff] ^ (c >> 8); | ^^^^ not found in this scope error[E0425]: cannot find function `range` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/crc32-0.0.2/src/crc32gen.rs:95:14 | 95 | for k in range(1, 8) { | ^^^^^ not found in this scope error[E0425]: cannot find function `range` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/crc32-0.0.2/src/crc32gen.rs:107:14 | 107 | for n in range(0, 0x100) { | ^^^^^ not found in this scope error[E0599]: no method named `as_slice` found for type `std::string::String` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/crc32-0.0.2/build.rs:21:23 | 21 | outwr.write_str(s.as_slice()).unwrap(); | ^^^^^^^^ error[E0599]: no method named `as_slice` found for type `std::string::String` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/crc32-0.0.2/src/crc32gen.rs:111:25 | 111 | s.push_str(line.as_slice()); | ^^^^^^^^ error: aborting due to 16 previous errors You've got a few errors: E0412, E0425, E0433, E0599 If you want more information on an error, try using "rustc --explain E0412" thread 'main' panicked at 'Error( CargoError( build failed ), State { next_error: None, backtrace: None } )', src/bin/cratesfyi.rs:142:13 note: Run with `RUST_BACKTRACE=1` for a backtrace.