perl-xs icon indicating copy to clipboard operation
perl-xs copied to clipboard

High-level Rust bindings to Perl XS API

Results 13 perl-xs issues
Sort by recently updated
recently updated
newest added

Objectives: 1. Export functions to perl which contain optional arguments. 2. Make argument handling more magical 3. Move toward more idiomatic rust conventions for function binding At present, the xs!...

There are four functions to call into Perl in XS, of which only one is currently supported. - [ ] `I32 call_sv(SV* sv, I32 flags);` - [x] `I32 call_pv(char *subname,...

`store` for tied AV and HV needs to do `refcnt_dec` if tied object did not store the value. This is implemented, but not tested.

Allow blessing Rust values into Perl objects. Allocate struct on the heap. Construct a SV with a pointer. Register destructor in the SV's magic table.

It might be possible to safely borrow string buffer of an SV if it is uniquely owned - reference count is 1 and there are no weak references. At least...

Add a wrapper for `newCONSTSUB` and add support for it to `xs!` macro. ``` rust xs! { package Foo; const FOO = "hello"; } ```

Add support for glob values.

Review and make a list of SV, AV, HV methods that exist in XS, but are not yet supported.