Dennis Zhang
Dennis Zhang
Hi, if you don't mind, I can help you with the documentation.
I just found your repo today, and I decide to make a simple 2D game by using it, so I think I can start with 2D stuff.
> > because all the variables are managed by php runtime. > > As far as I understand that's precisely what makes it not safe. The PHP runtime is not...
The following code would result in segmentation fault: ```rust #![cfg_attr(windows, feature(abi_vectorcall))] use ext_php_rs::prelude::*; use once_cell::sync::OnceCell; use tokio::runtime::Runtime; static INSTANCE: OnceCell = OnceCell::new(); #[php_function] pub fn start_runtime() -> Option { Runtime::new().map_or_else(...
> If you're going to spawn threads, I would suggest you to follow a method similar to what the [parallel extension](https://www.php.net/manual/en/philosophy.parallel.php) does (CSP concurrency AKA message passing over channels). >...
Any updates on this issue?
Well I think you could simply rename your function and use `#[allow(non_snake_case)]` :)