Questions tagged [rust]

Rust is a general purpose, curly-brace, block-structured expression, compiled programming language developed by Mozilla Research.

Rust is a curly-brace, block-structured expression language. It visually resembles the C language family, but differs significantly in syntactic and semantic details. Its design is oriented toward concerns of “programming in the large”, that is, of creating and maintaining boundaries – both abstract and operational – that preserve large-system integrity, availability and concurrency.

It supports a mixture of imperative procedural, concurrent actor, object-oriented and pure functional styles. Rust also supports generic programming and metaprogramming, in both static and dynamic styles.

Source:The Rust Programming Language

24 questions
30
votes
4 answers

Where are the Rust (aka rust-lang) packages for Ubuntu?

I'd like to play with the Rust language on Ubuntu, but there don't seem to be any packages. Did I miss it or is there some problem?
poolie
  • 9,358
10
votes
2 answers

.profile not working on xfce4

I just installed Rust by curl https://sh.rustup.rs -sSf | sh and rebooted my system. But I cannot access cargo, rustc.. on my terminal. My .profile file contains the following line export PATH="$HOME/.cargo/bin:$PATH" I'm using Xfce 4.12 as my…
Amirtha Wiiliam
  • 103
  • 1
  • 5
5
votes
1 answer

How do I access Rust documentation?

I installed Rust from the rustlang.org website. I tried to look at the Book: rustup doc --book This results in an "Access to the file was denied" error in Firefox. I assumed this was a snap issue, and asked in their forum. Got crickets. So, I'm…
ikmac
  • 1,403
3
votes
1 answer

How to update rustc in Ubuntu?

I am using Ubuntu 24.04.2 LTS and have tried to compile TeXpresso: akira@akira:~/texpresso$ make texpresso-tonic make -f Makefile.tectonic tectonic make[1]: Entering directory '/home/akira/texpresso' cd tectonic && cargo build --release --features…
Akira
  • 133
3
votes
1 answer

Package alsa was not found in the pkg-config search path. Perhaps you should add the directory containing `alsa.pc'

im having problems with bevy framework. sorry im new at this site and idk how to make my question more "readable" Full exit code when i try to run:cargo run --example hello_world I tried locate alsa.pc -> return nothing. some code is in the same…
3
votes
2 answers

how to install mysqlclient lib as required by diesel

Compiling diesel_cli on Ubuntu 16.04, I'm unable to find which package I should install to get rid if the message ~$ cargo install diesel_cli Updating crates.io index Installing diesel_cli v1.4.0 ... Compiling toml v0.4.10 Compiling…
CapelliC
  • 285
2
votes
1 answer

Does running make clean after make install affect the installed program?

Upon cloning, building, and installing rust from their github repository I've found it takes up ~2.8 GB on my system. I've got relatively limited space on my machine (100GB), so I was wondering two things: After running make install (or sudo make…
Ian
  • 685
2
votes
2 answers

What is the policy for introducing new Rust versions into Ubuntu?

Both Ubuntu 22.04 and 24.04 have rustc 1.75, with additional versions up to 1.80 in packages like rustc-1.77. Rust 1.81 is not available from the official repository of any LTS version (only oracular and newer). Rust 1.80 was released in July 2024,…
2
votes
1 answer

What is /proc/85/root/tty & why am I seeing it written to every 1 second?

I'm watching which files / directories are being written to on my Ubuntu 22.04.1 LTS installation (kernel v. 5.15.0-52-generic). Suddenly I'm seeing writes to /proc/85/root/tty every 1 second. I know this may be some specific process (such as…
raddevus
  • 1,998
1
vote
0 answers

Issue with installing rusti (Rust interactive shell)

I am trying to install Rusti (the Rust programming language interactive shell) from https://github.com/murarth/rusti But after this command, (as suggested in the GitHub page) rustup run nightly-2016-08-01 cargo install --git…
1
vote
1 answer

Rust installation issue in ubuntu-gnome 16.04.2

I am having trouble installing Rust on my ubuntu-gnome 16.04.2. I followed the basic installation mentioned on the Rust website. I am attaching the command output for perusal $ curl https://sh.rustup.rs -sSf | sh info: downloading installer Welcome…
mhm
  • 1,412
1
vote
1 answer

How to build Spot (native Spotify client) on Ubuntu 22.04?

Please help me compile and install Spot, a native Spotify client for GNOME, on Ubuntu 22.04. Instructions Here are the instructions from the application's GitHub page: Requires Rust (stable), GTK4, and a couple other things. Also requires…
Enterprise
  • 12,792
1
vote
1 answer

How to install debcargo in Ubuntu? It is in the Debian repositories, but not in Ubuntu

debcargo is a Debian package for packaging rust apps in .deb format. It is available in Debian Buster and above, but I could not find the package in Ubuntu 20.04 and 20.10. Why is the package not available in Ubuntu? Is it available under some other…
1
vote
1 answer

How to build this Rust program in Launchpad? It fails to build

I am trying to build popsicle in Launchpad (I cloned the repository from GitHub, and am trying to build it using this package recipe), and it fails to build. Here is the relevant part of the buildlog dpkg-buildpackage: info: source package…
1
vote
1 answer

How to install libxcb-randr 1.12 on Ubuntu 16.04?

Ubuntu 16.04 (16.04.4) ppa contains only 1.11. But for Rust program compilation i need 1.12 version. How to deal with it ? P.s. 17.04 contains xcb v.1.12
uptoyou
  • 867
  • 1
  • 8
  • 23
1
2