cargo-asm icon indicating copy to clipboard operation
cargo-asm copied to clipboard

Is there any maintained fork somewhere ?

Open gustav3d opened this issue 3 years ago • 4 comments

gustav3d avatar Feb 07 '22 08:02 gustav3d

I asked myself the same thing. Take a lot at https://github.com/gnzlbg/cargo-asm/network. There are some more recently-updated forks, such as the one from @taiki-e: https://github.com/taiki-e/cargo-asm.

schneiderfelipe avatar Feb 23 '22 12:02 schneiderfelipe

There is now. https://crates.io/crates/cargo-show-asm / https://github.com/pacak/cargo-show-asm but it's not a fork but a reimplementation

pacak avatar Apr 14 '22 11:04 pacak

@pacak can you provide some details on the differences between cargo-asm and cargo-show-asm?

jrmuizel avatar Sep 14 '22 23:09 jrmuizel

can you provide some details on the differences between cargo-asm and cargo-show-asm?

https://www.reddit.com/r/rust/comments/u3g0ih/new_crate_announcement_cargoshowasm/

  • cargo-show-asm is maintained.
  • cargo-asm is not working well with workspaces because it implements the logic of calling rustc on its own. As a result this means it will recompile everything every time with 1 codegen unit (very slow) and also affects how it will behave after you done looking at the asm, cargo-show-asm reuses cargo to do most of the heavy lifting = much less likely to break.
  • Because of how cargo-asm handles demangling the output looks like asm but not actually asm. It contains a whole bunch of extra commas which makes reusing it more annoying.
  • cargo-asm always uses colors unless you pass a flag while cargo-show-asm does something better.
  • There are pull requests to fix some of those issues in cargo-asm but no branch containing all of them as far as I understand.
  • cargo-show-asm also supports MIR.

pacak avatar Sep 14 '22 23:09 pacak