zlib 0.0.1

An (incomplete) port of zlib to Rust. The decompressor works, but the compressor has not yet been ported.
Build #1937 2016-08-01 00:23:03

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.12.0-nightly (54c0dcfd6 2016-07-28)

# docs.rs version cratesfyi 0.2.0 (5dbd676 2016-07-30)

# 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 Downloading crc32 v0.0.2 Compiling crc32 v0.0.2 Running `rustc .cargo/registry/src/github.com-1ecc6299db9ec823/crc32-0.0.2/build.rs --crate-name build_script_build --crate-type bin -g --out-dir /home/cratesfyi/zlib-0.0.1/debug/build/crc32-c61cc817d7b5a0e9 --emit=dep-info,link -L dependency=/home/cratesfyi/zlib-0.0.1/debug/deps -L dependency=/home/cratesfyi/zlib-0.0.1/debug/deps --cap-lints allow` Compiling zlib v0.0.1 Running `rustc .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/build.rs --crate-name build_script_build --crate-type bin -g --cfg feature=\"default\" --out-dir /home/cratesfyi/zlib-0.0.1/debug/build/zlib-968db6cdc3dd5229 --emit=dep-info,link -L dependency=/home/cratesfyi/zlib-0.0.1/debug -L dependency=/home/cratesfyi/zlib-0.0.1/debug/deps` .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/build.rs:31:25: 31:26 error: expected one of `!`, `(`, `+`, `::`, `;`, `<`, or `]`, found `,` .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/build.rs:31 let mut fixed: [Code, ..544] = [Default::default(); 544]; ^ .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/build.rs:32:23: 32:24 error: expected one of `!`, `(`, `+`, `::`, `;`, `<`, or `]`, found `,` .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/build.rs:32 let mut work: [u16, ..288] = [Default::default(); 288]; // work area for code table building ^ .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/build.rs:36:23: 36:24 error: expected one of `!`, `(`, `+`, `::`, `;`, `<`, or `]`, found `,` .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/build.rs:36 let mut lens: [u16, ..320] = [Default::default(); 320]; // temporary storage for code lengths ^ .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/src/inflate/inftrees.rs:106:23: 106:24 error: expected one of `!`, `(`, `+`, `::`, `;`, `<`, or `]`, found `,` .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/src/inflate/inftrees.rs:106 static LBASE :[u16, ..31] = [ /* Length codes 257..285 base */ ^ .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/src/inflate/inftrees.rs:109:22: 109:23 error: expected one of `!`, `(`, `+`, `::`, `;`, `<`, or `]`, found `,` .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/src/inflate/inftrees.rs:109 static LEXT :[u16, ..31] = [ /* Length codes 257..285 extra */ ^ .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/src/inflate/inftrees.rs:112:23: 112:24 error: expected one of `!`, `(`, `+`, `::`, `;`, `<`, or `]`, found `,` .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/src/inflate/inftrees.rs:112 static DBASE :[u16, ..32] = [ /* Distance codes 0..29 base */ ^ .cargo/registry/src/github.com-1ecc6299db9ec823/crc32-0.0.2/src/crc32gen.rs:50:24: 50:26 error: invalid suffix `u` for numeric literal .cargo/registry/src/github.com-1ecc6299db9ec823/crc32-0.0.2/src/crc32gen.rs:50 for _ in range(0u, 8u) { .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/src/inflate/inftrees.rs:116:22: 116:23 error^~: expected one of `!`, `(`, `+`, `::`, `;`, `<`, or `]`, found `,` .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/src/inflate/inftrees.rs:116 static DEXT :[u16, ..32] = [ /* Distance codes 0..29 extra */ ^ .cargo/registry/src/github.com-1ecc6299db9ec823/crc32-0.0.2/src/crc32gen.rs:50:24: 50:26 help: the suffix must be one of the integral types (`u32`, `isize`, etc) .cargo/registry/src/github.com-1ecc6299db9ec823/crc32-0.0.2/src/crc32gen.rs:50:28: 50:30 error: invalid suffix `u` for numeric literal .cargo/registry/src/github.com-1ecc6299db9ec823/crc32-0.0.2/src/crc32gen.rs:50 for _ in range(0u, 8u) { ^~ .cargo/registry/src/github.com-1ecc6299db9ec823/crc32-0.0.2/src/crc32gen.rs:50:28: 50:30 help: the suffix must be one of the integral types (`u32`, `isize`, etc) .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/src/inflate/inftrees.rs:263:27: 263:28 error: expected one of `!`, `(`, `+`, `::`, `;`, `<`, or `]`, found `,` .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/src/inflate/inftrees.rs:263 static EMPTY_U16: [u16, ..0] = []; ^ .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/src/inflate/inftrees.rs:295:26: 295:28 error: invalid suffix `u` for numeric literal .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/src/inflate/inftrees.rs:295 let mut low :uint = !0u; // low bits for current root entry; trigger new sub-table when len > root ^~ .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/src/inflate/inftrees.rs:295:26: 295:28 help: the suffix must be one of the integral types (`u32`, `isize`, etc) .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/src/inflate/inftrees.rs:174:9: 174:14 error: macro undefined: 'debug!' .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/src/inflate/inftrees.rs:174 debug!("max == 0, so there are no symbols to code at all"); ^~~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/src/inflate/inftrees.rs:207:17: 207:21 error: macro undefined: 'warn!' .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/src/inflate/inftrees.rs:207 warn!("over-subscribed"); ^~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/src/inflate/inftrees.rs:212:13: 212:17 error: macro undefined: 'warn!' .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/src/inflate/inftrees.rs:212 warn!("incomplete set of lengths"); ^~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/src/inflate/inftrees.rs:285:9: 285:13 error: macro undefined: 'warn!' .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/src/inflate/inftrees.rs:285 warn!("too many positions used"); ^~~~ error: aborting due to 13 previous errors .cargo/registry/src/github.com-1ecc6299db9ec823/crc32-0.0.2/src/crc32gen.rs:2:14: 2:18 error: type name `uint` is undefined or not in scope [E0412] .cargo/registry/src/github.com-1ecc6299db9ec823/crc32-0.0.2/src/crc32gen.rs:2 const TBLS : uint = 8; ^~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/crc32-0.0.2/src/crc32gen.rs:2:14: 2:18 help: run `rustc --explain E0412` to see a detailed explanation .cargo/registry/src/github.com-1ecc6299db9ec823/crc32-0.0.2/src/crc32gen.rs:2:14: 2:18 help: no candidates by the name of `uint` found in your project; maybe you misspelled the name or forgot to import an external crate? .cargo/registry/src/github.com-1ecc6299db9ec823/crc32-0.0.2/src/crc32gen.rs:41:40: 41:44 error: type name `uint` is undefined or not in scope [E0412] .cargo/registry/src/github.com-1ecc6299db9ec823/crc32-0.0.2/src/crc32gen.rs:41 poly |= 1u32 << (31 - *term as uint); ^~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/crc32-0.0.2/src/crc32gen.rs:41:40: 41:44 help: run `rustc --explain E0412` to see a detailed explanation .cargo/registry/src/github.com-1ecc6299db9ec823/crc32-0.0.2/src/crc32gen.rs:41:40: 41:44 help: no candidates by the name of `uint` found in your project; maybe you misspelled the name or forgot to import an external crate? .cargo/registry/src/github.com-1ecc6299db9ec823/crc32-0.0.2/src/crc32gen.rs:48:14: 48:19 error: unresolved name `range` [E0425] .cargo/registry/src/github.com-1ecc6299db9ec823/crc32-0.0.2/src/crc32gen.rs:48 for n in range(0, 0x100) { ^~~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/crc32-0.0.2/src/crc32gen.rs:48:14: 48:19 help: run `rustc --explain E0425` to see a detailed explanation .cargo/registry/src/github.com-1ecc6299db9ec823/crc32-0.0.2/src/crc32gen.rs:50:18: 50:23 error: unresolved name `range` [E0425] .cargo/registry/src/github.com-1ecc6299db9ec823/crc32-0.0.2/src/crc32gen.rs:50 for _ in range(0u, 8u) { ^~~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/crc32-0.0.2/src/crc32gen.rs:50:18: 50:23 help: run `rustc --explain E0425` to see a detailed explanation .cargo/registry/src/github.com-1ecc6299db9ec823/crc32-0.0.2/src/crc32gen.rs:59:14: 59:19 error: unresolved name `range` [E0425] .cargo/registry/src/github.com-1ecc6299db9ec823/crc32-0.0.2/src/crc32gen.rs:59 for n in range(0, 0x100) { ^~~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/crc32-0.0.2/src/crc32gen.rs:59:14: 59:19 help: run `rustc --explain E0425` to see a detailed explanation .cargo/registry/src/github.com-1ecc6299db9ec823/crc32-0.0.2/src/crc32gen.rs:62:18: 62:23 error: unresolved name `range` [E0425] .cargo/registry/src/github.com-1ecc6299db9ec823/crc32-0.0.2/src/crc32gen.rs:62 for k in range(1, 3) { ^~~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/crc32-0.0.2/src/crc32gen.rs:62:18: 62:23 help: run `rustc --explain E0425` to see a detailed explanation .cargo/registry/src/github.com-1ecc6299db9ec823/crc32-0.0.2/src/crc32gen.rs:63:35: 63:39 error: type name `uint` is undefined or not in scope [E0412] .cargo/registry/src/github.com-1ecc6299db9ec823/crc32-0.0.2/src/crc32gen.rs:63 c = crc_table[0][c as uint & 0xff] ^ (c >> 8); ^~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/crc32-0.0.2/src/crc32gen.rs:63:35: 63:39 help: run `rustc --explain E0412` to see a detailed explanation .cargo/registry/src/github.com-1ecc6299db9ec823/crc32-0.0.2/src/crc32gen.rs:63:35: 63:39 help: no candidates by the name of `uint` found in your project; maybe you misspelled the name or forgot to import an external crate? .cargo/registry/src/github.com-1ecc6299db9ec823/crc32-0.0.2/src/crc32gen.rs:95:14: 95:19 error: unresolved name `range` [E0425] .cargo/registry/src/github.com-1ecc6299db9ec823/crc32-0.0.2/src/crc32gen.rs:95 for k in range(1, 8) { ^~~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/crc32-0.0.2/src/crc32gen.rs:95:14: 95:19 help: run `rustc --explain E0425` to see a detailed explanation .cargo/registry/src/github.com-1ecc6299db9ec823/crc32-0.0.2/src/crc32gen.rs:107:14: 107:19 error: unresolved name `range` [E0425] .cargo/registry/src/github.com-1ecc6299db9ec823/crc32-0.0.2/src/crc32gen.rs:107 for n in range(0, 0x100) { ^~~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/crc32-0.0.2/src/crc32gen.rs:107:14: 107:19 help: run `rustc --explain E0425` to see a detailed explanation .cargo/registry/src/github.com-1ecc6299db9ec823/crc32-0.0.2/build.rs:16:19: 16:28 error: failed to resolve. Use of undeclared type or module `Path` [E0433] .cargo/registry/src/github.com-1ecc6299db9ec823/crc32-0.0.2/build.rs:16 let outpath = Path::new(outfile_name); ^~~~~~~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/crc32-0.0.2/build.rs:16:19: 16:28 help: run `rustc --explain E0433` to see a detailed explanation .cargo/registry/src/github.com-1ecc6299db9ec823/crc32-0.0.2/build.rs:18:19: 18:35 error: failed to resolve. Could not find `File` in `std::io` [E0433] .cargo/registry/src/github.com-1ecc6299db9ec823/crc32-0.0.2/build.rs:18 let outfile = io::File::create(&outpath); ^~~~~~~~~~~~~~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/crc32-0.0.2/build.rs:18:19: 18:35 help: run `rustc --explain E0433` to see a detailed explanation .cargo/registry/src/github.com-1ecc6299db9ec823/crc32-0.0.2/build.rs:19:21: 19:44 error: failed to resolve. Could not find `BufferedWriter` in `std::io` [E0433] .cargo/registry/src/github.com-1ecc6299db9ec823/crc32-0.0.2/build.rs:19 let mut outwr = io::BufferedWriter::new(outfile); ^~~~~~~~~~~~~~~~~~~~~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/crc32-0.0.2/build.rs:19:21: 19:44 help: run `rustc --explain E0433` to see a detailed explanation .cargo/registry/src/github.com-1ecc6299db9ec823/crc32-0.0.2/src/crc32gen.rs:111:25: 111:33 error: 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 s.push_str(line.as_slice()); ^~~~~~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/crc32-0.0.2/build.rs:21:23: 21:31 error: 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 outwr.write_str(s.as_slice()).unwrap(); ^~~~~~~~ error: aborting due to 2 previous errors thread 'main' panicked at 'ChainedError { error: failed to compile `zlib v0.0.1`, intermediate artifacts can be found at `/home/cratesfyi/zlib-0.0.1`, cause: ChainedError { error: Could not compile `zlib`., cause: Process didn't exit successfully: `rustc .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/build.rs --crate-name build_script_build --crate-type bin -g --cfg feature="default" --out-dir /home/cratesfyi/zlib-0.0.1/debug/build/zlib-968db6cdc3dd5229 --emit=dep-info,link -L dependency=/home/cratesfyi/zlib-0.0.1/debug -L dependency=/home/cratesfyi/zlib-0.0.1/debug/deps` (exit code: 101) } }', src/bin/cratesfyi.rs:119 note: Run with `RUST_BACKTRACE=1` for a backtrace.