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.

Rust Crate support

See original GitHub issue

A list of the available Crate binaries: https://conan.compiler-explorer.com/libraries_rust.html

Some notes:

  • Rust libraries are supported through pre-built binaries for the default platform x86_64.
  • None of the libraries are available for other platforms, and they will not be built automatically.
  • We have not tested all the libraries. If anything seems out of the ordinary, let us know so that we can investigate.
  • Be sure to select the library you want to use and then also use extern crate cratename; in your code

The crate binaries are mostly built by Cargo with the --all-features option. This means that either the create successfully built with all features are enabled, or it failed to build and the crate is not available. We have a limited selection of crates without any features enabled because --all-features failed to build, but not yet consistently.

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:4
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ojedacommented, Jun 11, 2022

Thanks a lot for this!

Be sure to select the library you want to use and then also use extern crate cratename; in your code

Or compile with --edition=2021 instead (or --edition=2018). Maybe this should be the default: https://github.com/compiler-explorer/compiler-explorer/issues/3765.

I also noticed the crates do not seem to be available in nightly nor beta: https://github.com/compiler-explorer/compiler-explorer/issues/3766.

0reactions
chrismooredevcommented, Dec 23, 2022

Noting for anyone from Google - Using rustc 1.62 still works for using the top 100 crates.

Since this is still an active issue, it should also be noted that we unfortunately can’t use any nightly or unstable features (like std::hint::black_box) with external crates.

Read more comments on GitHub >

github_iconTop Results From Across the Web

crates.io: Rust Package Registry
The Rust community's crate registry ... Instantly publish your crates and install them. Use the API to interact and find out more information...
Read more >
Packages and Crates - The Rust Programming Language
The first parts of the module system we'll cover are packages and crates. A crate is the smallest amount of code that the...
Read more >
ffi_support - Rust - Docs.rs
This crate implements a support library to simplify implementing the patterns that the mozilla/application-services repository uses for it's “Rust ...
Read more >
How to Add WebAssembly Support to a General-Purpose Crate
If your crate doesn't have any of those things, it likely already supports WebAssembly! You can always check by running cargo build for...
Read more >
Hardware support — list of Rust libraries/crates // Lib.rs
Crates to interface with specific CPU or other hardware features.
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