zlib 0.0.1

An (incomplete) port of zlib to Rust. The decompressor works, but the compressor has not yet been ported.
Build #60525 2017-06-06 13:58:53

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.19.0-dev (28a93c1f4 2017-05-31)

# docs.rs version cratesfyi 0.4.0-dev (bedcc0c 2017-06-01)

# 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/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: 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 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 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 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: expected one of `!`, `(`, `+`, `::`, `;`, `<`, or `]`, found `,` --> .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/src/inflate/inftrees.rs:109:22 | 109 | static LEXT :[u16, ..31] = [ /* Length codes 257..285 extra */ | ^ expected one of 7 possible tokens here error: expected one of `!`, `(`, `+`, `::`, `;`, `<`, or `]`, found `,` --> .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/src/inflate/inftrees.rs:112:23 | 112 | static DBASE :[u16, ..32] = [ /* Distance codes 0..29 base */ | ^ expected one of 7 possible tokens here error: expected one of `!`, `(`, `+`, `::`, `;`, `<`, or `]`, found `,` --> .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/src/inflate/inftrees.rs:116:22 | 116 | static DEXT :[u16, ..32] = [ /* Distance codes 0..29 extra */ | ^ expected one of 7 possible tokens here error: expected one of `!`, `(`, `+`, `::`, `;`, `<`, or `]`, found `,` --> .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/src/inflate/inftrees.rs:263:27 | 263 | static EMPTY_U16: [u16, ..0] = []; | ^ expected one of 7 possible tokens here error: invalid suffix `u` for numeric literal --> .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/src/inflate/inftrees.rs:295:26 | 295 | let mut low :uint = !0u; // low bits for current root entry; trigger new sub-table when len > root | ^^ | = 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: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[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[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[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[E0425]: cannot find value `lens` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/build.rs:43:27 | 43 | while sym < 144 { lens[sym] = 8; sym += 1; } | ^^^^ not found in this scope error[E0425]: cannot find value `lens` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/build.rs:44:27 | 44 | while sym < 256 { lens[sym] = 9; sym += 1; } | ^^^^ not found in this scope error[E0425]: cannot find value `lens` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/build.rs:45:27 | 45 | while sym < 280 { lens[sym] = 7; sym += 1; } | ^^^^ not found in this scope error[E0425]: cannot find value `lens` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/build.rs:46:27 | 46 | while sym < 288 { lens[sym] = 8; sym += 1; } | ^^^^ 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[E0425]: cannot find value `lens` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/build.rs:51:41 | 51 | let (err, _) = inflate_table(LENS, &lens, 288, &mut fixed, &mut next, 9, work.as_mut_slice()); | ^^^^ not found in this scope error[E0425]: cannot find value `fixed` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/build.rs:51:57 | 51 | let (err, _) = inflate_table(LENS, &lens, 288, &mut fixed, &mut next, 9, work.as_mut_slice()); | ^^^^^ not found in this scope error[E0425]: cannot find value `work` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/build.rs:51:78 | 51 | let (err, _) = inflate_table(LENS, &lens, 288, &mut fixed, &mut next, 9, work.as_mut_slice()); | ^^^^ 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[E0425]: cannot find value `lens` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/build.rs:57:26 | 57 | while sym < 32 { lens[sym] = 5; sym += 1; } | ^^^^ 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 value `lens` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/build.rs:61:42 | 61 | let (err, _) = inflate_table(DISTS, &lens, 32, &mut fixed, &mut next, 5, work.as_mut_slice()); | ^^^^ not found in this scope error[E0425]: cannot find value `fixed` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/build.rs:61:57 | 61 | let (err, _) = inflate_table(DISTS, &lens, 32, &mut fixed, &mut next, 5, work.as_mut_slice()); | ^^^^^ not found in this scope error[E0425]: cannot find value `work` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/build.rs:61:78 | 61 | let (err, _) = inflate_table(DISTS, &lens, 32, &mut fixed, &mut next, 5, work.as_mut_slice()); | ^^^^ not found in this scope error[E0425]: cannot find value `fixed` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/build.rs:64:19 | 64 | let lencode = fixed.slice_from(lenfix); | ^^^^^ not found in this scope error[E0425]: cannot find value `fixed` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/build.rs:66:20 | 66 | let distcode = fixed.slice_from(distfix); | ^^^^^ 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[E0425]: cannot find function `range` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/src/inflate/inftrees.rs:154:16 | 154 | for sym in range(0, codes) { | ^^^^^ 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:155:28 | 155 | count[lens[sym] as uint] += 1; | ^^^^ 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:164:18 | 164 | let mut max :uint = MAXBITS; // maximum code lengths | ^^^^ not found in this scope error: cannot find macro `debug!` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/src/inflate/inftrees.rs:174:9 | 174 | debug!("max == 0, so there are no symbols to code at all"); | ^^^^^ error[E0412]: cannot find type `uint` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/src/inflate/inftrees.rs:182:18 | 182 | let mut min :uint = 1; // minimum code length | ^^^^ 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:190:19 | 190 | let mut root :uint = bits; // number of index bits for root table | ^^^^ not found in this scope error: cannot find macro `warn!` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/src/inflate/inftrees.rs:207:17 | 207 | warn!("over-subscribed"); | ^^^^ error: cannot find macro `warn!` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/src/inflate/inftrees.rs:212:13 | 212 | warn!("incomplete set of lengths"); | ^^^^ error[E0425]: cannot find function `range` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/src/inflate/inftrees.rs:220:16 | 220 | for len in range(1, MAXBITS) { | ^^^^^ not found in this scope error[E0425]: cannot find function `range` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/src/inflate/inftrees.rs:225:16 | 225 | for sym in range(0u16, codes as u16) { | ^^^^^ 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:226:34 | 226 | let symlen = lens[sym as uint] as 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:226:43 | 226 | let symlen = lens[sym as uint] as 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:228:42 | 228 | let symoff = offs[symlen] as uint; | ^^^^ not found in this scope error[E0425]: cannot find value `EMPTY_U16` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/src/inflate/inftrees.rs:271:19 | 271 | CODES => (EMPTY_U16.as_slice(), 0, EMPTY_U16.as_slice(), 0, 19), // base/extra not used | ^^^^^^^^^ not found in this scope error[E0425]: cannot find value `EMPTY_U16` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/src/inflate/inftrees.rs:271:44 | 271 | CODES => (EMPTY_U16.as_slice(), 0, EMPTY_U16.as_slice(), 0, 19), // base/extra not used | ^^^^^^^^^ not found in this scope error[E0425]: cannot find value `LBASE` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/src/inflate/inftrees.rs:272:18 | 272 | LENS => (LBASE.as_slice(), -257, LEXT.as_slice(), -257, 256), | ^^^^^ not found in this scope error[E0425]: cannot find value `LEXT` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/src/inflate/inftrees.rs:272:42 | 272 | LENS => (LBASE.as_slice(), -257, LEXT.as_slice(), -257, 256), | ^^^^ not found in this scope error[E0425]: cannot find value `DBASE` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/src/inflate/inftrees.rs:273:27 | 273 | _ /* DISTS */ => (DBASE.as_slice(), 0, DEXT.as_slice(), 0, -1) | ^^^^^ not found in this scope error[E0425]: cannot find value `DEXT` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/src/inflate/inftrees.rs:273:48 | 273 | _ /* DISTS */ => (DBASE.as_slice(), 0, DEXT.as_slice(), 0, -1) | ^^^^ 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:279:19 | 279 | let mut used :uint = 1 << root; // code entries in table used; use root table entries | ^^^^ 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:280:15 | 280 | let mask :uint = used - 1; // mask for comparing low root bits | ^^^^ not found in this scope error: cannot find macro `warn!` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/src/inflate/inftrees.rs:285:9 | 285 | warn!("too many positions used"); | ^^^^ error[E0412]: cannot find type `uint` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/zlib-0.0.1/src/inflate/inftrees.rs:289:19 | 289 | let mut huff :uint = 0; // starting Huffman code | ^^^^ 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:290:18 | 290 | let mut sym :uint = 0; // index of code symbols; starting code symbol | ^^^^ 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:291:18 | 291 | let mut len :uint = min; // starting code length, in 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:292:19 | 292 | let mut next :uint = *table_pos; // next available space in 'table'; current table to fill in | ^^^^ 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:293:19 | 293 | let mut curr :uint = root; // number of index bits for current table; current table index 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:294:19 | 294 | let mut drop :uint = 0; // code bits to drop for sub-table; current bits to drop from code for index | ^^^^ 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:295:18 | 295 | let mut low :uint = !0u; // low bits for current root entry; trigger new sub-table when len > root | ^^^^ 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:302:30 | 302 | if (work[sym] as int) < end { | ^^^ 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:305:35 | 305 | else if (work[sym] as int) > end { | ^^^ 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:306:51 | 306 | (extra[(extra_bias + work[sym] as int) as uint] as u8, | ^^^ 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:306:59 | 306 | (extra[(extra_bias + work[sym] as int) as uint] as u8, | ^^^^ 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:307:52 | 307 | base[(base_bias + work[sym] as int) as 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:307:60 | 307 | base[(base_bias + work[sym] as int) as 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:320:23 | 320 | let incr :uint = 1 << (len - drop); | ^^^^ 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:321:27 | 321 | let mut fill :uint = 1 << curr; // index for replicating entries | ^^^^ 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:352:37 | 352 | len = lens[work[sym] as uint] as 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:352:46 | 352 | len = lens[work[sym] as uint] as 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:367:27 | 367 | let mut left :int = 1 << curr; | ^^^ 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:369:47 | 369 | left -= count[curr + drop] as int; | ^^^ not found in this scope 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:24 | 115 | let mut gen_file = io::File::create(&gen_path); | ^^^^^^^^^^^^^^^^ Could not find `File` in `io` error: aborting due to previous error(s) 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[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[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:19 | 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:21 | 19 | let mut outwr = io::BufferedWriter::new(outfile); | ^^^^^^^^^^^^^^^^^^^^^^^ Could not find `BufferedWriter` in `io` 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 previous error(s) thread 'main' panicked at 'build failed', src/bin/cratesfyi.rs:136 note: Run with `RUST_BACKTRACE=1` for a backtrace.