mirror of
https://github.com/hexedtech/codemp.git
synced 2024-11-22 07:14:50 +01:00
18 lines
329 B
Rust
18 lines
329 B
Rust
#[cfg(feature = "js")]
|
|
extern crate napi_build;
|
|
|
|
#[cfg(feature = "py")]
|
|
extern crate pyo3_build_config;
|
|
|
|
/// The main method of the buildscript, required by some glue modules.
|
|
fn main() {
|
|
#[cfg(feature = "js")]
|
|
{
|
|
napi_build::setup();
|
|
}
|
|
|
|
#[cfg(feature = "py")]
|
|
{
|
|
pyo3_build_config::add_extension_module_link_args();
|
|
}
|
|
}
|