AdamNiederer / faster

SIMD for humans
Mozilla Public License 2.0
1.56k stars 51 forks source link

0.5 can't build for lastest nightly Rust #60

Closed ZhangHanDong closed 6 years ago

ZhangHanDong commented 6 years ago

rustc 1.30.0-nightly (5c875d938 2018-09-24)

Compiling faster v0.5.0
error[E0433]: failed to resolve. Maybe a missing`extern crate std;`?
  --> /Users/blackanger/.cargo/registry/src/mirrors.ustc.edu.cn-15f9db60536bad60/faster-0.5.0/src/vecs.rs:10:12
   |
10 | use crate::std::fmt::Debug;
   |            ^^^ Maybe a missing `extern crate std;`?

error[E0433]: failed to resolve. Maybe a missing`extern crate std;`?
 --> /Users/blackanger/.cargo/registry/src/mirrors.ustc.edu.cn-15f9db60536bad60/faster-0.5.0/src/iters.rs:9:12
  |
9 | use crate::std::slice::from_raw_parts;
  |            ^^^ Maybe a missing `extern cratestd;`?

error[E0433]: failed to resolve. Maybe a missing`extern crate std;`?
 --> /Users/blackanger/.cargo/registry/src/mirrors.ustc.edu.cn-15f9db60536bad60/faster-0.5.0/src/intrin/eq.rs:8:12
  |
8 | use crate::std::ops::BitXor;
  |            ^^^ Maybe a missing `extern cratestd;`?

error[E0433]: failed to resolve. Maybe a missing`extern crate std;`?
  --> /Users/blackanger/.cargo/registry/src/mirrors.ustc.edu.cn-15f9db60536bad60/faster-0.5.0/src/arch/x86/intrin/abs.rs:14:12
   |
14 | use crate::std::mem::transmute;
   |            ^^^ Maybe a missing `extern crate std;`?
ZhangHanDong commented 6 years ago
// src/vec.rs

use crate::core::fmt::Debug;
use crate::intrin::merge::*;

crate is redundant, it can be left out in Rust 2018 edtion .

// src/vec.rs

use core::fmt::Debug;
use intrin::merge::*;
m-wynn commented 6 years ago

These are fixed in master, I think it just needs to be pushed to crates.io

AdamNiederer commented 6 years ago

Hey, sorry for the delay in getting this fixed. master is working if you don't use the swap_bytes intrinsics. I'll push something to crates.io once I get those working.

ZhangHanDong commented 6 years ago

@AdamNiederer Thanks. I am in no hurry.

marcusklaas commented 5 years ago

Still seems to not build :-(