Rust [Daily] 2019-06-09: stego - Network steganography sector Swiss Army Knife

Erst - ERB / ​​JSP kind of <%%> template engine

Rust in the template rendering engine has a lot of, which is a support ERB / ​​JSP syntax rendering library.

Repo

globber - Extended wildcard matching library pattern

glob pattern are those:

// Wildcards

let pattern = Pattern::new("*.rs").unwrap();
assert!(pattern.matches("hey.rs"));
assert!(!pattern.matches("hey.c"));
assert!(pattern.matches("/src/test.rs"));
assert!(!pattern.matches("/src/test.c"));

// Ranges

let pattern = Pattern::new("[a-z].rs").unwrap();
assert!(pattern.matches("a.rs"));
assert!(pattern.matches("d.rs"));
assert!(pattern.matches("z.rs"));
assert!(!pattern.matches("A.rs"));
assert!(!pattern.matches("Z.rs"));
assert!(!pattern.matches("0.rs"));

globber Rust is a library of these functions, it provides a matching function string. There is no support files directory search, is underway.

Repo

plotters - Rust charting library v0.2 released

It supports multiple backend: bitmaps, vector graphics, windows and webassembly. To see the effect, very good

img
img
img
img
img
img
img

Repo

numeric_literals - literal digital library

This should be very useful for scientific computing. It do the following:

The

extern crate num;
use num::Float;

fn golden_ratio<T: Float>() -> T {
    ( T::one() + T::sqrt(T::from(5).unwrap())) / T::from(2).unwrap()
}

Such an approach, this simplifies to:

use numeric_literals::replace_numeric_literals;

#[replace_numeric_literals(T::from(literal).unwrap())]
fn golden_ratio<T: Float>() -> T {
   (1 + T::sqrt(5)) / 2
}

Repo

stego - Network steganography sector Swiss Army Knife

Network steganography is this, such as the useful information encoded into a picture, send pictures to others, to achieve the purpose of hiding information transfer. Wow, finally see this library to write a Rust!

Repo


From Daily Group @Mike

Daily subscription address:

Independent daily subscription address:

Community learning platform subscription:

Guess you like

Origin blog.csdn.net/u012067469/article/details/91354377