Skip to content

u/mb0x40

In this archive from Aug 2019 to Jun 2020

2
posts
24
comments
2
media
96
score

Top posts

Top comments

I've been using Rust for a couple years at this point, and I've been using the official rustup package on multiple machines with no troubles at all. Here's my two cents on the pros and cons of various installation methods:

Official rustc package: (I think that's what it's called, on mobile rn but I'll check later) Installs /usr/bin/{rustc,cargo,...}, /usr/lib/rust/... from pacman

Pros:

  • Always stable
  • System-wide installation with no extra steps needed

Cons:

  • If/when you want other compiler versions, you can't get them
  • It's more difficult to get other Rust tools, like rustc-src needed for rust-analyzer, and cross-compiling stdlib.

I really only recommend this if you don't actually program Rust on that machine, and you just need an easy installation to be able to compile an AUR package or something.

Official rustup package: Installs /usr/bin/rustup, and installs /usr/bin/{rustc,clippy,...} as symlinks to rustup. You use rustup to install one or more toolchains, targets and all that fun stuff in ~/.rustup, and when you call rustup via a symlink it figures out the right toolchain and calls it.

Pros:

  • Great toolchain management from rustup
  • Most people in the Rust community expect you're using Rustup, so there's great support for it
  • The Arch maintainers are fantastic, so any updates to rustup are super prompt through pacman

Cons:

  • If you have multiple users on your system that each need Rust, you'll have multiple $HOME/.rustups
  • You have to rustup update since it's not controlled by pacman

Curl a bash script: Basically the same as the official rustup package but you're installing it by curling a bash script.

Pros: Same as rustup package, except it's not managed by pacman

Cons: same as rustup package, except you're curling a bash script

Honestly I would never use this on an Arch system, just like I would never install any other software that's in the official repos by curl | bash. Yes, it's the official Rust installation method, but I've never had any issues with the rustup package.

Edit: autocorrect thinks the directory is /use

14 points

Can you arecord -D sysdefault? That might help determine if it's a pulseaudio problem or an alsa problem.

I also want to thank you for such a good question. You described your problem and attempted solutions precisely and concisely, and provided all the relevant info and command output. It's the gold standard that I wish other askers would follow.

6 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.