question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow use of `cargo-xbuild` and tooling

See original GitHub issue

Environment

  • IntelliJ Rust plugin version: 0.2.105.2133-192
  • Rust toolchain version: nightly-2019-09-05-x86_64-unknown-linux-gnu
  • IDE name and version: Clion 2019.2.1
  • Operating system: Arch-Linux 5.2.13-arch1-1-ARCH

Problem description

The plugin does not really allow to use xcheck and xclippy which are provided by the https://github.com/rust-osdev/cargo-xbuild crate, which is a simplified version of xargo. The plugin should allow to select xcheck and xclippy as the linter because the check and clippy tasks don’t work when using xbuild.

A cool extra idea which came to my mind was to also allow debugging with xrun if set up manually. For example, I’m launching via qemu which allows debugging, but somehow attaching doesn’t seem to correctly load the symbols. I however know that it is possible to use Clion to debug native code in qemu because I once did it with C++ and it worked perfectly. Maybe this can be somehow reflected by this plugin (of course I know this with qemu is a very specific case, however since this is gcc one might be able to generalize it).

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:8
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
L3tumcommented, Oct 19, 2019

Being able to just switch compiler/command with xbuild/xcheck/xclippy would already be pretty good

0reactions
Undincommented, Nov 2, 2020

Do you still need support for cargo-xbuild? It’s possible to build stdlib modules via cargo now. https://github.com/rust-osdev/cargo-xbuild#alternative-the-build-std-feature-of-cargo. Looks like it makes xbuild tool quite redundant

Read more comments on GitHub >

github_iconTop Results From Across the Web

cargo build - The Cargo Book
However, to avoid your shell accidentally expanding glob patterns before Cargo handles them, you must use single quotes or double quotes around each...
Read more >
Learning Cargo - The build tool for Rust - Binx
Cargo provides build, test and dependency management functionalities for Rust projects. Cargo uses crates.io the central package registry.
Read more >
Chapter 2. The Cargo build tool - Red Hat Customer Portal
Cargo is a build tool and front end for the Rust compiler rustc as well as a package and dependency manager. It allows...
Read more >
Getting started with the Rust package manager, Cargo
Cargo is a build system and package manager for Rust. It helps developers download and manage dependencies and assists in creating Rust packages ......
Read more >
Demystifying Cargo in Rust - LogRocket Blog
Cargo is Rust's build system and package manager. With this tool, you'll get a repeatable build because it allows Rust packages to declare...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found