crypto2
crypto2 copied to clipboard
When will it be available on stable Rust
It can only be compiled on nighltly rustc for now,when will it be available on stable Rust?
-
stdsimd
: http://rust-lang.github.io/rfcs/2977-stdsimd.html -
llvm_asm
: https://github.com/rust-lang/rust/issues/70173- It could be rewritten with the latest
asm!
feature, but it still requires nightly.
- It could be rewritten with the latest
Maybe @LuoZijun could consider to implement those features with pure ASM instead. These experimental features won't be stable in the near future.
Oh, I see.Since I am a user of ShadowSocks-Rust and I found that it use this lib which make it can only build with nightly rustc,so I am wondering if this affects the stability of ShadowSocks-Rust.
Well, using nightly
doesn't means unstable. Actually all releases builds are built with nightly in Docker.
But it would be better to make it build with stable Rust, or it will require code changes if these experimental features are changed.
llvm_asm: Tracking Issue for LLVM-style inline assembly (llvm_asm) rust-lang/rust#70173 It could be rewritten with the latest asm! feature, but it still requires nightly.
Seems like asm!
was stabilized and llvm_asm!
will be soon removed.
It should be able to build with stable rust except aarch64 platform.
Working on stable is really great! That's a welcome change :tada:. However, we kind of need aarch64
also, and nightly is not an option.
the asm!
macro will be stable in the next Rust release (1.59). Will it be possible to make crypto2
work on stable on all platforms then? Or what is currently blocking it?
It doesn't related to asm!
macro. The SIMD intrinsic functions for aarch64 is not stablized yet. https://doc.rust-lang.org/core/arch/aarch64/index.html
Would there be a lot of work to implement a non-simd version of the code that is active as long as a nightly
feature flag is not enabled or something?
There shouldn't be a lot of work.
1.59 already stable
But core::arch
for aarch64 is far from stable yet.
Is there any way to extract aes and use it separately? I need aes in my project, but I can't use crypto2 in stable channel
Nightly is only required for aarch64 target.
can you tell me how to do it,I'm new to rust
crypto2 = { git = "https://github.com/shadowsocks/crypto2.git" }
Use the master branch.
thanks for your help
It is easier to use,May I ask which mode is the default, cfb, cbc or ctr