sarkara 0.10.0-alpha.4

A experimental post-quantum cryptography library.
Documentation
Build #110753 2018-08-01T05:18:39.194059+00:00
# 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`
Downloading sarkara v0.10.0-alpha.4
Fresh rustc-demangle v0.1.9
Fresh quote v0.3.15
Fresh unicode-xid v0.0.4
Fresh keccak v0.1.0
Fresh arrayref v0.3.4
Fresh subtle v0.6.3
Fresh either v1.5.0
Fresh byteorder v1.2.4
Fresh synom v0.11.3
Fresh libc v0.2.42
Fresh cc v1.0.18
Fresh norx-permutation v0.1.3
Fresh rand_core v0.2.1
Fresh syn v0.11.11
Fresh itertools v0.7.8
Fresh byte-tools v0.2.0
Fresh cfg-if v0.1.4
Fresh rand v0.5.4
Fresh synstructure v0.6.1
Fresh block-buffer v0.3.3
Compiling memsec v0.5.4
Fresh failure_derive v0.1.1
Running `rustc --crate-name memsec .cargo/registry/src/github.com-1ecc6299db9ec823/memsec-0.5.4/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 --cfg 'feature="winapi"' --cfg 'feature="libc"' --cfg 'feature="mach_o_sys"' --cfg 'feature="use_os"' --cfg 'feature="nightly"' --cfg 'feature="rand"' --cfg 'feature="alloc"' -C metadata=cd217d31a29e70c6 -C extra-filename=-cd217d31a29e70c6 --out-dir /home/cratesfyi/cratesfyi/debug/deps -L dependency=/home/cratesfyi/cratesfyi/debug/deps --extern libc=/home/cratesfyi/cratesfyi/debug/deps/liblibc-20ec46e507fb9197.rlib --extern-version libc=libc,0.2.42 --extern rand=/home/cratesfyi/cratesfyi/debug/deps/librand-02ea0f57e8e07170.rlib --extern-version rand=rand,0.5.4 --cap-lints allow`
Fresh mem-aead-mrs v0.1.0
Fresh typenum v1.10.0
Compiling norx v0.1.1
Fresh generic-array v0.9.0
Running `rustc --crate-name norx .cargo/registry/src/github.com-1ecc6299db9ec823/norx-0.1.1/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 --cfg 'feature="P1"' --cfg 'feature="W64"' --cfg 'feature="L4"' --cfg 'feature="norx-permutation"' -C metadata=4a889383f0e459d2 -C extra-filename=-4a889383f0e459d2 --out-dir /home/cratesfyi/cratesfyi/debug/deps -L dependency=/home/cratesfyi/cratesfyi/debug/deps --extern arrayref=/home/cratesfyi/cratesfyi/debug/deps/libarrayref-4e4b1d75fc9c905c.rlib --extern-version arrayref=arrayref,0.3.4 --extern subtle=/home/cratesfyi/cratesfyi/debug/deps/libsubtle-fa1282380f2080de.rlib --extern-version subtle=subtle,0.6.3 --extern byteorder=/home/cratesfyi/cratesfyi/debug/deps/libbyteorder-35abf1ff955f78f5.rlib --extern-version byteorder=byteorder,1.2.4 --extern norx_permutation=/home/cratesfyi/cratesfyi/debug/deps/libnorx_permutation-ed6208323968f1ac.rlib --extern-version norx_permutation=norx-permutation,0.1.3 --cap-lints allow`
Fresh digest v0.7.5
Fresh backtrace-sys v0.1.23
Fresh backtrace v0.3.9
Fresh failure v0.1.1
Fresh sha3 v0.7.3
Fresh kyber v0.2.0-alpha.2
Compiling dilithium v0.2.0-alpha.3
Running `rustc --crate-name dilithium .cargo/registry/src/github.com-1ecc6299db9ec823/dilithium-0.2.0-alpha.3/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 --cfg 'feature="mode2"' --cfg 'feature="default"' -C metadata=9b2a9e3780b0f3fb -C extra-filename=-9b2a9e3780b0f3fb --out-dir /home/cratesfyi/cratesfyi/debug/deps -L dependency=/home/cratesfyi/cratesfyi/debug/deps --extern itertools=/home/cratesfyi/cratesfyi/debug/deps/libitertools-a15b6570ce0da9e4.rlib --extern-version itertools=itertools,0.7.8 --extern sha3=/home/cratesfyi/cratesfyi/debug/deps/libsha3-4d61f1d61951dc76.rlib --extern-version sha3=sha3,0.7.3 --extern byteorder=/home/cratesfyi/cratesfyi/debug/deps/libbyteorder-35abf1ff955f78f5.rlib --extern-version byteorder=byteorder,1.2.4 --extern rand_core=/home/cratesfyi/cratesfyi/debug/deps/librand_core-02cb53814b70812d.rlib --extern-version rand_core=rand_core,0.2.1 --extern digest=/home/cratesfyi/cratesfyi/debug/deps/libdigest-aa09d571406311ec.rlib --extern-version digest=digest,0.7.5 --extern arrayref=/home/cratesfyi/cratesfyi/debug/deps/libarrayref-4e4b1d75fc9c905c.rlib --extern-version arrayref=arrayref,0.3.4 --cap-lints allow`
error[E0308]: mismatched types
--> .cargo/registry/src/github.com-1ecc6299db9ec823/memsec-0.5.4/src/alloc.rs:105:9
|
103 |     pub unsafe fn alloc_aligned(size: usize) -> Option<NonNull<u8>> {
|                                                 ------------------- expected `core::option::Option<core::ptr::NonNull<u8>>` because of return type
104 |         let layout = Layout::from_size_align_unchecked(size, PAGE_SIZE);
105 |         Global.alloc(layout).ok()
|         ^^^^^^^^^^^^^^^^^^^^^^^^^ expected u8, found extern type `core::alloc::Opaque`
|
= note: expected type `core::option::Option<core::ptr::NonNull<u8>>`
found type `core::option::Option<core::ptr::NonNull<core::alloc::Opaque>>`

error[E0308]: mismatched types
--> .cargo/registry/src/github.com-1ecc6299db9ec823/memsec-0.5.4/src/alloc.rs:112:28
|
112 |             Global.dealloc(memptr, layout);
|                            ^^^^^^ expected extern type `core::alloc::Opaque`, found u8
|
= note: expected type `core::ptr::NonNull<core::alloc::Opaque>`
found type `core::ptr::NonNull<u8>`

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0308`.
error: Could not compile `memsec`.

Caused by:
process didn't exit successfully: `rustc --crate-name memsec .cargo/registry/src/github.com-1ecc6299db9ec823/memsec-0.5.4/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 --cfg feature="winapi" --cfg feature="libc" --cfg feature="mach_o_sys" --cfg feature="use_os" --cfg feature="nightly" --cfg feature="rand" --cfg feature="alloc" -C metadata=cd217d31a29e70c6 -C extra-filename=-cd217d31a29e70c6 --out-dir /home/cratesfyi/cratesfyi/debug/deps -L dependency=/home/cratesfyi/cratesfyi/debug/deps --extern libc=/home/cratesfyi/cratesfyi/debug/deps/liblibc-20ec46e507fb9197.rlib --extern-version libc=libc,0.2.42 --extern rand=/home/cratesfyi/cratesfyi/debug/deps/librand-02ea0f57e8e07170.rlib --extern-version rand=rand,0.5.4 --cap-lints allow` (exit code: 101)
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.