hkoba / libperl-rs Goto Github PK
View Code? Open in Web Editor NEW(Proof of concept) Use perlapi from rust
License: Other
(Proof of concept) Use perlapi from rust
License: Other
Hi, sorry for all the questions lol.
I'm wondering if it's possible to be able to expose a function written in Rust to Perl, or override a Perl function to run Rust code.
Example:
fn test_print(message: &str) {
println!("{}", message)
}
fn main() {
let mut perl = Perl::new();
perl.parse(&["", "-e", r#"use strict; my $foo = 24; print($foo);"#], &[]);
}
Whenever I call into Perl, I want to map the perl print
function to call test_print
in Rust. Is this possible?
Hi, I’m trying to pull this package into just a basic binary to test it out. I am getting an error when it’s compiling libperl-sys. I was wondering if you knew if there were certain dependencies that I need installed in order for the package to build.
I believe the error was with regard to linking Perl (-lperl missing or something to that extent).
I tried to use windows, and then moved onto WSL running ubuntu. Thank you!
T/O
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.