2 How to run cargo from Emacs 24 Using a crate in a Cargo project errors with "maybe a missing extern crate" 15 How to use external crates in a Cargo build script? Hot Network Questions Can I still access the potato dimension? Why can't Voyager 1 finally "settle down" to a s...
I would like plugins to be individual crates (publishable on crates.io), and installable usingcargo install,withoutany additional user specified arguments. How can the code above find the installed plugins (to fill theplugin_pathsvariable of the sample code above) in a cross platform way? (I ...
A Rust beginner might be tempted to declare a global variable exactly like any other variable in Rust, usinglet. The full program could then look like this: usechrono::Utc;letSTART_TIME=Utc::now().to_string();pubfnmain(){letthread_1=std::thread::spawn(||{println!("Started {}, call...
I'm currently having a hard time figuring out how to push to my local crates.io installation. The --token part is pretty clear, but I don't know what to use as --host. I tried setting it to my local rust server http://localhost:8888, but...
Doc request I have header files in C that use the windows API through windows.h. I would like to generate .winmd metadata and then generate a Rust crate that would depend on this one (preferably windows but I can live with windows-sys). ...
I've been searching and can't figure out how to enable "crate features". The phrase isn't even used anywhere in the Rust docs. This is the best I could come up with: [features] default = ["small_rng"] But I get: Feature default includes small_rng which is neither a dependency ...
According to this rust doc, I used this command to compile the target crate: rustc src/main.rs --target aarch64-unknown-none-softfloat --extern libtest=./liblibtest.rlib. However, it threw errors.error[E0463]: can't find crate for `std` | = note: the `aarch64-...
Note that docs.rs only builds after you publish a new version, and you can see that queue here: https://docs.rs/releases/queue I just need to open PRs where I edit doc-comments of any rust-num repo (then await approval and possible merge)? Yes. Should I open a monolithic PR? (th...
Suppose we make the fix and publish it as a breaking change. // libc 0.3.0pubtypec_void=/* it's complicated */;pubconstEVFILT_AIO:u32=2; Despite the fact that the definition ofc_voidhas not changed, technically thec_voidfrom libc 0.2 and thec_voidfrom libc 0.3 are different types...
A Rust beginner might be tempted to declare a global variable exactly like any other variable in Rust, usinglet. The full program could then look like this: usechrono::Utc;letSTART_TIME=Utc::now().to_string();pubfnmain(){letthread_1=std::thread::spawn(||{println!("Started {}, call...