zlib 0.0.1

An (incomplete) port of zlib to Rust. The decompressor works, but the compressor has not yet been ported.
Build #102484 2018-06-05 22:55:38

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.28.0-dev (b9bf4f162 2018-06-02)

# 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` Compiling zlib v0.0.1 Compiling crc32 v0.0.2 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` 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` 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[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[E0432]: unresolved import `std::iter::range_inclusive` --> .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/src/inflate/inftrees.rs:1:5 | 1 | use std::iter::range_inclusive; | ^^^^^^^^^^^^^^^^^^^^^^^^^^ no `range_inclusive` in `iter` 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[E0433]: failed to resolve. Use of undeclared type or module `Path` --> .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/build.rs:114:20 | 114 | let gen_path = Path::new("src/inflate/inffixed.rs"); | ^^^^ Use of undeclared type or module `Path` error[E0433]: failed to resolve. Could not find `File` in `io` --> .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/build.rs:115:28 | 115 | let mut gen_file = io::File::create(&gen_path); | ^^^^ Could not find `File` in `io` error[E0412]: cannot find type `Writer` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/build.rs:30:22 | 30 | fn makefixed(w: &mut Writer) { | ^^^^^^ not found in this scope error[E0423]: expected value, found struct `Code` --> .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/build.rs:31:21 | 31 | let mut fixed: [Code, ..544] = [Default::default(); 544]; | ^^^^ did you mean `Code { /* fields */ }`? error[E0423]: expected value, found builtin type `u16` --> .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/build.rs:32:20 | 32 | let mut work: [u16, ..288] = [Default::default(); 288]; // work area for code table building | ^^^ not a value error[E0423]: expected value, found builtin type `u16` --> .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/build.rs:36:20 | 36 | let mut lens: [u16, ..320] = [Default::default(); 320]; // temporary storage for code lengths | ^^^ not a value error[E0412]: cannot find type `uint` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/build.rs:42:22 | 42 | let mut sym :uint = 0; | ^^^^ not found in this scope error[E0412]: cannot find type `uint` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/build.rs:49:19 | 49 | let mut next :uint = 0; // index into 'fixed' table | ^^^^ not found in this scope error[E0412]: cannot find type `uint` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/build.rs:50:17 | 50 | let lenfix: uint = 0; // index into 'fixed' table | ^^^^ not found in this scope error[E0412]: cannot find type `uint` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/build.rs:56:22 | 56 | let mut sym :uint = 0; | ^^^^ not found in this scope error[E0412]: cannot find type `uint` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/build.rs:59:18 | 59 | let distfix: uint = next; // index into 'fixed' table | ^^^^ not found in this scope error[E0425]: cannot find function `range` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/build.rs:82:16 | 82 | for low in range(0, size) { | ^^^^^ not found in this scope error[E0425]: cannot find function `range` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/build.rs:92:16 | 92 | for low in range(0, size) { | ^^^^^ not found in this scope error[E0412]: cannot find type `uint` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/src/inflate/inftrees.rs:55:24 | 55 | pub const ENOUGH_LENS :uint = 852; | ^^^^ not found in this scope error[E0412]: cannot find type `uint` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/src/inflate/inftrees.rs:56:25 | 56 | pub const ENOUGH_DISTS :uint = 592; | ^^^^ not found in this scope error[E0412]: cannot find type `uint` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/src/inflate/inftrees.rs:57:19 | 57 | pub const ENOUGH :uint = ENOUGH_LENS + ENOUGH_DISTS; | ^^^^ not found in this scope error[E0412]: cannot find type `uint` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/src/inflate/inftrees.rs:71:20 | 71 | pub const MAXBITS :uint = 15; | ^^^^ not found in this scope error[E0412]: cannot find type `uint` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/src/inflate/inftrees.rs:98:12 | 98 | codes: uint, | ^^^^ not found in this scope error[E0412]: cannot find type `uint` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/src/inflate/inftrees.rs:100:21 | 100 | table_pos: &mut uint, // index into 'table' | ^^^^ not found in this scope error[E0412]: cannot find type `uint` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/src/inflate/inftrees.rs:101:11 | 101 | bits: uint, | ^^^^ not found in this scope error[E0412]: cannot find type `int` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/src/inflate/inftrees.rs:103:9 | 103 | -> (int /*error*/, uint /*bits*/) | ^^^ not found in this scope error[E0412]: cannot find type `uint` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/src/inflate/inftrees.rs:103:24 | 103 | -> (int /*error*/, uint /*bits*/) | ^^^^ not found in this scope error[E0658]: The attribute `phase` is currently unknown to the compiler and may have meaning added to it in the future (see issue #29642) --> .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/build.rs:4:1 | 4 | #[phase(plugin, link)] | ^^^^^^^^^^^^^^^^^^^^^^ | = help: add #![feature(custom_attribute)] to the crate attributes to enable error[E0658]: The attribute `deriving` is currently unknown to the compiler and may have meaning added to it in the future (see issue #29642) --> .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/src/inflate/inftrees.rs:26:1 | 26 | #[deriving(Copy,Default)] | ^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: add #![feature(custom_attribute)] to the crate attributes to enable error: aborting due to 29 previous errors Some errors occurred: E0412, E0423, E0425, E0432, E0433, E0658. For more information about an error, try `rustc --explain E0412`. 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[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 Some errors occurred: E0412, E0425, E0433, E0599. For more information about an error, try `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.