python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Problem Compiling librocksdb-sys v6.11.4 on NEAR Protocol
I am pretty new in the blockchain world and I am trying to implement the NFT example on NEAR protocol: https://github.com/near-examples/NFT. I am working on WSL (Ubuntu 20.04.3) installed in Windows 1...

Jorge Castillo
Votes: 0
Answers: 0
What is the official Rust guidance for interoperability with C++, in particular passing and returning structs as arguments?
I'm trying to adapt some layers of existing C++ code to be used by Rust and apparently the way is through a C API.
For example, one function might return a struct as an object
#pragma pack(push,4)
str...

user8143588
Votes: 0
Answers: 2
Implicit String cloning
In C++, we can do this:
std::string ar[2] = {std::string("hello"), std::string("world")};
std::string hello = ar[0];
std::string world = ar[1];
and hello and world end up being ne...
Lev
Votes: 0
Answers: 1
How do I fix this "no rules expected" when calling a rust macro in a macro?
Trying to learn Rust macros. I decided to make a macro which operates like the vec! macro, but wraps the arguments in NonZeroUsize. My attempt was:
macro_rules! nzvec {
($T:ty, $($x:expr),* ) =&...
Jim
Votes: 0
Answers: 1