Init Neon for generating N-API bindings

This commit is contained in:
Anton Liaposhchenko 2023-12-26 19:24:40 +02:00
parent 6d93ed3a70
commit b4d5019d83
10 changed files with 10 additions and 10 deletions

View File

@ -13,7 +13,7 @@ readme = "README.md"
exclude = ["index.node"] exclude = ["index.node"]
[lib] [lib]
crate-type = ["cdylib"] crate-type = ["rlib", "cdylib"]
[package.metadata.docs.rs] [package.metadata.docs.rs]
features = ["bliss-audio-aubio-rs/rustdoc", "library"] features = ["bliss-audio-aubio-rs/rustdoc", "library"]

View File

@ -1,4 +1,4 @@
use bliss_audio::Song; use bliss_rs::bliss_lib::Song;
use std::env; use std::env;
/** /**

View File

@ -1,4 +1,4 @@
use bliss_audio::Song; use bliss_rs::bliss_lib::Song;
use std::env; use std::env;
/** /**

View File

@ -365,7 +365,7 @@ fn chroma_stft(
mod test { mod test {
use super::*; use super::*;
use crate::utils::stft; use crate::utils::stft;
use crate::{Song, SAMPLE_RATE}; use crate::bliss_lib::{Song, SAMPLE_RATE};
use ndarray::{arr1, arr2, Array2}; use ndarray::{arr1, arr2, Array2};
use ndarray_npy::ReadNpyExt; use ndarray_npy::ReadNpyExt;
use std::fs::File; use std::fs::File;

View File

@ -1,4 +1,4 @@
mod bliss_lib; pub mod bliss_lib;
mod chroma; mod chroma;
pub mod cue; pub mod cue;
#[cfg(feature = "library")] #[cfg(feature = "library")]

View File

@ -63,7 +63,7 @@ impl Normalize for LoudnessDesc {
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use super::*; use super::*;
use crate::Song; use crate::bliss_lib::Song;
use std::path::Path; use std::path::Path;
#[test] #[test]

View File

@ -432,7 +432,7 @@ where
#[cfg(test)] #[cfg(test)]
mod test { mod test {
use super::*; use super::*;
use crate::Analysis; use crate::bliss_lib::Analysis;
use ndarray::arr1; use ndarray::arr1;
use std::path::Path; use std::path::Path;

View File

@ -94,7 +94,7 @@ impl Normalize for BPMDesc {
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use super::*; use super::*;
use crate::{Song, SAMPLE_RATE}; use crate::bliss_lib::{Song, SAMPLE_RATE};
use std::path::Path; use std::path::Path;
#[test] #[test]

View File

@ -258,7 +258,7 @@ impl Normalize for ZeroCrossingRateDesc {
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use super::*; use super::*;
use crate::Song; use crate::bliss_lib::Song;
use std::path::Path; use std::path::Path;
#[test] #[test]

View File

@ -165,7 +165,7 @@ pub(crate) fn convolve(input: &Array1<f64>, kernel: &Array1<f64>) -> Array1<f64>
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use super::*; use super::*;
use crate::Song; use crate::bliss_lib::Song;
use ndarray::Array2; use ndarray::Array2;
use ndarray::{arr1, Array}; use ndarray::{arr1, Array};
use ndarray_npy::ReadNpyExt; use ndarray_npy::ReadNpyExt;