libperl-macros 0.4.0

Procedural macros for libperl-rs (#[thx], #[xs_sub], xs_boot!)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! build.rs for libperl-macros (proc-macro crate).
//!
//! Detects the target Perl's threading mode via `libperl-config` and emits
//! `cfg(perl_useithreads)` so that the proc-macro source can branch on the
//! THX-needs-`my_perl` decision at proc-macro compile time.

use libperl_config::*;

fn main() {
    let config = PerlConfig::default();
    config.emit_features(&["useithreads"]);
}