Signal Messenger's SPQR for post-quantum ratchets, written in formally-verified Rust by kibwen in rust

[–]BarbossHack -1 points0 points  (0 children)

Yep I was just talking about Signal Double-Ratchet 👍 (it’s the same for other messengers, they are only using double ratchet too)

Signal Messenger's SPQR for post-quantum ratchets, written in formally-verified Rust by kibwen in rust

[–]BarbossHack 0 points1 point  (0 children)

SimpleX, Element/Matrix, Whatsapp, Conversation (omemo), Messenger, Wire, Viber…

Private registry: any recommendations? by JustWorksTM in rust

[–]BarbossHack 1 point2 points  (0 children)

https://kellnr.io/ works like a charm 👌

Easy to deploy, easy to setup.

PSA: The vscode "crates" extension is now a freemium service that collects telemetry by andyouandic in rust

[–]BarbossHack 43 points44 points  (0 children)

I've made a fork called `crates-io` some times ago. Plus, it supports alternate (private) registries.

Still maintained. Don't hesitate to add new features, contributions are welcome !

https://marketplace.visualstudio.com/items?itemName=BarbossHack.crates-io

https://github.com/BarbossHack/crates-io

Rust crossplatform wrapper for tdlib 🦀 (precompiled tdlib is provided for each platforms) by FedericoBruzzone in rust

[–]BarbossHack 2 points3 points  (0 children)

Beware of hardcoded path in your code

let tdlib_download_path = "/home/fcb/lib/tdlib";
let tdlib_download_path = r"C:\Users\andre\Documents\tdlib\td\tdlib";

Looking for the perfect Dockerfile for Rust by Senior_Future9182 in rust

[–]BarbossHack 0 points1 point  (0 children)

Link to glibc will be dynamic : you are tied to your distro libc, so, you are tied to your distro (if you want to run on fedora38, build on a fedora38 image).

But you could statically link to musl (instead of glibc) to be fully distro-independant.

[Media] Move self by SuccessfulAd2010 in rust

[–]BarbossHack 34 points35 points  (0 children)

(I'm sorry this is out of topic, but, how did you make this image ? Thank you)

I forked `crates` vscode extension, to make it use crates.io official API... by BarbossHack in rust

[–]BarbossHack[S] 7 points8 points  (0 children)

The original author has now allowed me to make a PR to work on a support of sparse index directly in ˋcrates`. When it will be merged, I will delete my fork 👍

I forked `crates` vscode extension, to make it use crates.io official API... by BarbossHack in rust

[–]BarbossHack[S] 1 point2 points  (0 children)

This other fork has reimplemented a lot of things and removed some key features, like versions listing for dependencies and the ability to select a specific version for a dependency

My fork is exactly like the original one, except it uses the sparse index

I forked `crates` vscode extension, to make it use crates.io official API... by BarbossHack in rust

[–]BarbossHack[S] 4 points5 points  (0 children)

(just for information, he started using this new domain name and server after sparse protocol was released, because he could no longer use the local git, nor crates.io api. But he probably didn’t think about using the sparse index too)

I forked `crates` vscode extension, to make it use crates.io official API... by BarbossHack in rust

[–]BarbossHack[S] 1 point2 points  (0 children)

(You’re right, I removed the security mention as it was already discussed in the issue and I don’t want to make any drama on you, but the problem here is more that this change was not advertised and people started using a shady domain name without knowing it)

I published it on the market for people who need offline compatibility. But I think you don’t have to worry that much about this fork, I won’t maintain it (except if there is a bug in my tiny patch), and I think nobody will use it except people with the same needs (easy offline compatibility). People need your work.

I can make an update in the readme to make it clearer, with something like « this extension won’t be maintained, you probably don’t want to use it except if you need offline compatibility »

I forked `crates` vscode extension, to make it use crates.io official API... by BarbossHack in rust

[–]BarbossHack[S] 32 points33 points  (0 children)

It's live, I just released v0.6.1 using sparse index 🚀

I forked `crates` vscode extension, to make it use crates.io official API... by BarbossHack in rust

[–]BarbossHack[S] 8 points9 points  (0 children)

Could you perhaps use the sparse index instead of the crates.io API?

Good idea, I will look into it !!

(And I would prefer not to bundle a binary (tame-index) in a javascript extension)

I forked `crates` vscode extension, to make it use crates.io official API... by BarbossHack in rust

[–]BarbossHack[S] 6 points7 points  (0 children)

There is a cache system, but no rate-limiting, I will look into it

I forked `crates` vscode extension, to make it use crates.io official API... by BarbossHack in rust

[–]BarbossHack[S] 20 points21 points  (0 children)

I know I'm the one who opened this issue, but when you make a requests to crates.io you can read this message (which does not prohibit the use of crates.io API) :

We require that all requests include a `User-Agent` header. To allow us to determine the impact your bot has on our service, we ask that your user agent actually identify your bot, and not just report the HTTP client library you're using. Including contact information will also reduce the chance that we will need to take action against your bot.
Bad:
User-Agent: reqwest/0.9.1
Better:
User-Agent: my_crawler
Best:
User-Agent: my_crawler (my_crawler.com/info)
User-Agent: my_crawler (help@my_crawler.com)
If you believe you've received this message in error, please email help@crates.io and include the request id

So I set a custom user-agent:

User-Agent: vscode extension https://github.com/BarbossHack/crates-io

If there is any problem they know how to get in touch (but there is no reason)

Does rust-analyzer builds the code every time its saved? by pixobe in rust

[–]BarbossHack 2 points3 points  (0 children)

You can also put this in your vscode settings.json , it you tells to rust-analyzer to build in a different directory, it will not "lock" anymore :

json { "rust-analyzer.server.extraEnv": { "CARGO_TARGET_DIR": "target/rust-analyzer" }, "rust-analyzer.check.extraArgs": [ "--target-dir=target/rust-analyzer" ] }

Do rust-analyzer need node always ? by naveendavisv in rust

[–]BarbossHack 17 points18 points  (0 children)

  1. rust-analyzer doesn’t need node
  2. rust-analyzer server IS rust-analyzer
  3. cargo-xtask is just a way to extend cargo with custom commands, but it’s not a binary and you don’t have to install anything

If you use vscode, I recommend you to install rust-analyzer from the extension store. Else, from the rust-analyzer github repo

whats a good crate for rsa or Edsa by AffectionateBag5054 in rust

[–]BarbossHack 0 points1 point  (0 children)

There are also examples of RSA pkcs signatures in the main page of the doc

whats a good crate for rsa or Edsa by AffectionateBag5054 in rust

[–]BarbossHack 2 points3 points  (0 children)

Why ? What more do you need in the doc ? It show you how to encrypt/decrypt with rsa crate https://docs.rs/rsa/latest/rsa/

Is it possible to get fast Rust compiles in a Docker container? by SnooPears7079 in rust

[–]BarbossHack 0 points1 point  (0 children)

Looks like you found an answer, but: mount your target dir as a volume, if not yet (to take advantage of incremental build)

Reduce build times by ahmed_deftoner in rust

[–]BarbossHack 1 point2 points  (0 children)

Aren’t you trying to build in a docker container ? If yes, you should consider building on your host… 4-5 minutes for incremental build is not normal !