Rust Crate support
See original GitHub issueA 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:
- Created a year ago
- Reactions:4
- Comments:6 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks a lot for this!
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.
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.