Hey people out there who use #rust in #debian. I’m new to rust and try to learn it. There is a nice free learning book out there:
https://doc.rust-lang.org/stable/book/
As I’m a big fan of taking the packages of the OS (so debian bullseye) and not install them directly from the project, And as you can assume i don’t like when software just downloads any package in the background from some site i do not know.
i have installed:
This worked fine though i have recognized that some features from the book does not work, since the version is too old. But thats ok, since rust is still under development. But my actual big problem is:
How can i use cargo (and delivered crates by the debian) without the usage external registries ?
I don’t want cargo to talk to crates.io and download (for example) the rand crate. But there is a debian package called librust-rand-dev which install rand crate in here
/usr/share/cargo/registry/rand-0.7.3
Is there a way, either:
- to tell cargo to look in this folders (and i mean only in these folders) to take that crates as usable in any project
- to create a lokal registry (with index, so it really works) that can be used by cargo.
I hope some people can help me.