976
25
977
17
978
44
submitted 2 years ago by runiq@feddit.de to c/rust@programming.dev

What is this title

979
15
980
4
Rust Analyzer Changelog #204 (rust-analyzer.github.io)
981
5

I'm slowly starting Rust for Rustaceans, and it's already poking holes in my understanding of Rust. Here's a couple initial questions I have:

A shared reference, &T is , as the name implies, a pointer that may be shared. Any number of references may exist to the same value, and each shared reference is Copy, so you can trivially make more of them

I don't understand why a shared reference has to implement copy. In fact, isn't this not true just by the fact that references work for Strings and Strings size can't be known at compile time?

  1. I'm having trouble with the idea of assigning a new value to a mutable reference.

let mut x = Box::new(42); *x = 84;

Why in this example, is the assignment dereferenced. Why not just do x=84? is it dereferenced specifically because is Boxed on the heap?

982
16
983
27
submitted 2 years ago* (last edited 2 years ago) by snaggen@programming.dev to c/rust@programming.dev

TL;DR: On Linux, if you have Transparent Huge Pages enabled, you can try to run cargo with the environment variable MALLOC_CONF="thp:always,metadata_thp:always" for a potential ~5% speed boost.

984
24
submitted 2 years ago* (last edited 2 years ago) by joern@programming.dev to c/rust@programming.dev

Moin,

Sentc is an encryption sdk with user-, key- and group management to build end-to-end encrypted applications.

It helps not only to encrypt and decrypt between users and groups but also with key management and key rotation, 2-factor authentication via totp and file handling.

Now with CRYSTALS Kyber for asymmetric encryption and CRYSTALS Dilithium for signing. These are used as hybrid with x25519 or ed25519.

An api will store the public keys and encrypted private keys (encrypted by the client and can only be decrypted by the client) as well as encrypted symmetric keys. The api never gets access to the clear secret keys.

The sdk also provide searchable encryption (encrypted data can be searched on the server) and sortable encryption (encrypted data can be sorted).

The core sdk is written in rust and is cross compiled to flutter and wasm.

I hope you may like it. If you have questions, just ask.

Have a great day.

Doc: https://sentc.com/

Git: https://github.com/sentclose/sentc

api git: https://github.com/sentclose/sentc-api

Js git: https://github.com/sentclose/sentc-javascript

flutter git: https://github.com/sentclose/sentc-flutter

985
54
986
12
987
6
988
5
This Week in Rust 517 (this-week-in-rust.org)
989
11
submitted 2 years ago* (last edited 2 years ago) by snaggen@programming.dev to c/rust@programming.dev

I have seen posts that the rust project was setting up it's own Mastodon instance, and now it seems to be live. I assume we will se some official Rust news being posted on this account soon. And hopefully there will be other interesting accounts to follow on this instance in a not so far future.

990
2

Check out their Github too https://github.com/makepad/makepad

Frankly, I find it amazing what they're doing with 3 people. The repo needs some polish, but the result is impressive.

991
7
992
5
993
4
Rust Analyzer Changelog #203 (rust-analyzer.github.io)
994
1
Why async Rust? (without.boats)
995
1
submitted 2 years ago* (last edited 2 years ago) by snaggen@programming.dev to c/rust@programming.dev
996
1
997
4
submitted 2 years ago by u_1f914@lemmy.world to c/rust@programming.dev

Post stolen from Reddit. According to a Reddit comment, this doesn't solve expressing Send/Sync requirements yet.

998
2
submitted 2 years ago* (last edited 2 years ago) by Nereuxofficial@programming.dev to c/rust@programming.dev
999
3
1000
1
This Week in Rust 516 (this-week-in-rust.org)
view more: ‹ prev next ›

Rust

8252 readers
30 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

!performance@programming.dev

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 3 years ago
MODERATORS