mirror of
https://github.com/danog/ext-php-rs.git
synced 2025-01-22 21:11:45 +01:00
4a4370c817
* Start work on returning new objects Change `IntoZval` to consume `self` * Add conversion from vector reference to PHP hashtable through clones * `set_binary` now only takes `Vec` Used to take `AsRef<[T]>` to allow users to pass arrays, however, this causes the data to be cloned even if the user passes a `Vec`. * Rename `as_zval` to `into_zval` to match Rust conventions * Started work on closures * Finish implementation of closures * Document closures, add to prelude, feature gate * Fixed closure example
10 lines
182 B
Bash
Executable File
10 lines
182 B
Bash
Executable File
#!/bin/bash
|
|
|
|
case "$(uname)" in
|
|
Darwin) EXT="dylib" ;;
|
|
Linux) EXT="so" ;;
|
|
*) EXT="so" ;;
|
|
esac
|
|
|
|
cargo build && php -dextension=$PWD/../../target/debug/libskel.$EXT "${@}"
|