Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rust bindings with documentations on docs.rs/april_asr #16

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

cdxker
Copy link

@cdxker cdxker commented Jun 5, 2023

No description provided.

@skeptrunedev
Copy link

_ No description provided. _

https://docs.rs/april_asr/latest/april_asr/

Copy link
Owner

@abb128 abb128 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bindings look good! I'm a bit concerned about the build script downloading binaries though

path::{Path, PathBuf},
};

const APRIL_RELEASE_URL: &str = "http://github.com/arguflow/april-asr/releases/download/v-0.0.1/libaprilasr.so";
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it necessary to download a binary? I'd rather it just use the local built .so

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I could add it as a feature flag, I was having issues linking the 2 .so files. I copied this pattern from how libonxruntime was doing their bindings. https://github.com/microsoft/onnxruntime/blob/main/rust/onnxruntime-sys/build.rs#L19.

};

const APRIL_RELEASE_URL: &str = "http://github.com/arguflow/april-asr/releases/download/v-0.0.1/libaprilasr.so";
const ONNX_RELEASE_URL: &str = "http://github.com/microsoft/onnxruntime/releases/download/v1.13.1/onnxruntime-linux-x64-1.13.1.tgz";
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here, I'd rather it use the version in lib/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants