libperl-rs 0.4.0

Embed the Perl 5 runtime in a Rust application — safe wrapper around libperl-sys
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use libperl_config::*;

fn main() {
    let config = PerlConfig::default();

    // This is only needed when building a library crate (cdylib/staticlib).
    // For binary crates, you can omit this line.
    config.emit_cargo_ldopts();

    config.emit_features(&["useithreads"]);

    config.emit_all_perlapi_versions(10);
}