Movatterモバイル変換


[0]ホーム

URL:


Sorry, we no longer support your browser
Please upgrade toMicrosoft Edge,Google Chrome, orFirefox. Learn more about ourbrowser support.
Skip to main content
Stack Overflow
  1. About
  2. For Teams
Loading…
Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives
43,886 questions
Filter by
Sorted by
Tagged with
0votes
1answer
38views

I am writing a scripting language in rust, and I'm pretty new to the language.When I compile source into byte code I move the compiled symbols (Chunk) out of the function.I am also lazy and don't ...
0votes
0answers
43views

I made an application that runs a very compute heavy operation when user clicks a button.This expensive operation is ran from a web assembly worker compiled with Rust. It can spawn multiple workers....
0votes
0answers
64views

I'm using jsonref crate which internally uses rustls crate. When compiling rustls crate it fails in QNX platform, but builds successfully in Linux platform. Below is the error messageError2025-11-...
Harry's user avatar
  • 4,146
3votes
0answers
76views

I am trying to develop a linear algebra library in rust. So, as part of it I am writing code that iterates through a n-dimensional array and returns mutable references. It's like writing a view for a ...
Best practices
3votes
9replies
130views

I want to write T::associated_function(..) but sometimes T is too verbose to write, like a long tuple.Is there any way to avoid writing the full T?pub trait Param { fn encode_type(out: &mut ...
mq7's user avatar
  • 1,329
1vote
1answer
91views

I have a build.rs file in my project which contains code of library search paths and library linking. However, if I specify library search paths that doesn't exist in build.rs, it doesn't throw any ...
Harry's user avatar
  • 4,146
4votes
2answers
123views

This is a pattern I want to be able to use in my code to have global variables that contain non-static references. Is it memory safe? If not, how can I make it so?use std::cell::Cell;pub struct ...
1vote
0answers
39views

I want to load assets from a custom zip-like format, or even GoldSrc WAD3 files.My initial attempt was to use a custom AssetLoader, but I'm not feeling comfortable having to load the entire file's ...
2votes
0answers
119views

I just started using neovim. I could get the lua language server to work but not the rust language server (rust-analyzer). When I open a rust file like hello.rs I get the errorLSP [rust_analyzer] ...
-3votes
1answer
81views

This is a follow up of my previous post. As suggested, I tried using jsonref crate to de-reference references present in a JSON file. Unfortunately, I'm not getting de-referenced output.main.rsuse ...
Harry's user avatar
  • 4,146
0votes
1answer
121views

Let's say I've got a struct that contains a pinned pointer to a boxed T and is Drop:struct S<T> { t: Pin<Box<T>>,}impl<T> Drop for S<T> { // ...}How do I ...
jacobsa's user avatar
  • 7,875
0votes
0answers
80views

I am trying to write a Rust program which generates random FX data and sends it to a Kafka topic.The code I have written so far is quite short. It does not currently compile.use rdkafka;use rand;...
user2138149's user avatar
1vote
1answer
72views

Rust newbie here.The following code throws a compiler error:#![feature(portable_simd)]use std::simd::Simd;use std::simd::SimdElement;fn test_mul<T: SimdElement, const N: usize>(x: [T; N]) ...
user1924406's user avatar
Best practices
0votes
1replies
70views

tl;dr how do I get my project's build profile at build-time so I can branch on it?I have a custom profile for my rust project called myprofile. My Cargo.toml has[profile.myprofile]I build the ...
JamesThomasMoon's user avatar
1vote
1answer
85views

I'm facing an AlignmentMismatch error while trying to cast a Vec<u8> to Vec<T>, where T is a struct that uses repr(C) and Pod + Zeroable.I've also tried the slice road &[u8] -> &...

153050per page
1
2345
2926

Hot Network Questions

more hot questions
Newest rust questions feed

[8]ページ先頭

©2009-2025 Movatter.jp