Michael Bryan

Results 213 issues of Michael Bryan

This problem would pass a normal Rust enum to C++, where the C++ code has declared a tagged union which roughly matches how Rust does things internally. The solution should...

Problem 4 ([link]) shows how it is UB to cast a random integer as an enum when there isn't a corresponding variant. This was originally mentioned by @bluss on the...

Problem 3 ([link]) is about dangling pointers. In particular it uses the `CString.as_ptr()` method to get a pointer to some temporary `CString`. The solution section should talk about what dangling...

Problem 2 ([link]) is about what happens when some function being called from C++ panics. The solutions section should explain why we get a segfault (or UB) when Rust functions...

Problem 1 ([link]) is on what happens when you forget to add `#[no_mangle]` to an `extern "C"` function. In the solutions section we should explain why the program doesn't link,...

I've started off a chapter on testing the application, both by integrating Rust unit tests into `cmake` as well as writing end-to-end integration tests that use the C++ wrappers. So...

The chapter which fleshes out the program's GUI and lets the user tweak a request before sending needs to be written. I've planned out *roughly* what I want to talk...

There's currently an "Asynchronous Operations" chapter which is meant to spin a a job off into the background and will periodically poll it to see if there's a result. We...

Because this is more of an advanced topic, it's probably a good idea to mention the things which people might also want to know about when going into the tutorial....

> could we somehow make option 2 safer by using #[no_std], because that tells rust that there is no allocator that we can accidentally use. Or is that overkill? ([Original...