Coder Social home page Coder Social logo

libperl-rs's People

Contributors

hkoba avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

ttay24

libperl-rs's Issues

Expose rust functions to perl

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?

Dependencies for usage?

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.