starccy
starccy
> util.rs ```rust pub fn str_to_chars(s: &str) -> *const c_char { CString::new(s.as_bytes()).unwrap().as_ptr() } ``` I think `s` doesn't live long enough. When this function returns, s has been dropped, so...
Hi, First of all, thanks for your example, it's very helpful for my project. But I find there may a little problem when computing the next cron time: https://github.com/patrick-fitzgerald/actix-web-cron-example/blob/3ccc9832dab73ac5a244b703e62b0e81f4fc1635/src/scheduler.rs#L42-L43 I...
### Contact Details [email protected] ### What happened? To avoid falling into the XY problem trap, please allow me to explain what I want to do first. I am using cosmocc...
**Describe the bug** I'm trying to get the pressed and released events of a keyboard key. They both work on Windows, but I am unable to get released events on...
Image there is a URL like: "http://localhost:3000/foo/v1.0.0/bar". **"v1.0.0"** in the middle is some API version, and it will be changed often. the code can be: ```cpp C_ATTR(foo, :Chained("/") :PathPart("foo") :CaptureArgs(1))...