Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Solder your Rust into PHP
This library tries to help you improve your PHP application using extensions written in Rust.
The idea is to be able to write code purely in rust, compile it using cargo and load the library direct into PHP.
Note that this is the first version of this crate and a lot of things will change. Also, I can't stress enough how unstable this crate is right now. Use it with caution.
Example:
extern crate libc;
extern crate solder;
use *;
use *;
use *;
use *;
pub extern
pub extern
pub extern
To compile it, we need to add to our .cargo/config:
[build]
rustflags = ["-C", "link-arg=-Wl,-undefined,dynamic_lookup"]
Than, you compile the extension using cargo build and load it copying it to your PHP modules dir and modifying you php.ini.
For now, this crate only works with PHP7. During the build, it tries to get the PHP API VERSION and PHP EXTENSION BUILD from the installed PHP. But, you can compile for other versions by manually setting the envs PHP_API_VERSION and PHP_EXTENSION_BUILD.
If you have questions or ideas to the project. Feel free to contact me.