Skip to content

YouKnow-sys/ntgcalls-rs

Repository files navigation

NTgCalls-rs

NTgCalls-rs is a Rust binding for the NTgCalls C API. It provides a safe interface for using the NTgCalls library in Rust.

Build Status MIT

FeaturesUsageInstallationContributingLicense

Features

  • Safe Rust interface for NTgCalls
  • Automatic linking of NTgCalls shared library
  • Cross-platform support

Usage

Add this to your Cargo.toml:

[dependencies]
ntgcalls = { git = "https://github.com/YouKnow-sys/ntgcalls-rs.git" } # not yet released to crates.io

Then you can use the NTgCalls API:

use ntgcalls::NTgCall;

let ntgcalls = NTgCall::new();
// use NTgCalls API...

Installation

This crate will by default download the NTgCall precompiled shared library from github. You can change this behavior with environment variables:

  • NTGCAllS_BUNDLE_DIR: Don't download and instead use files from a local folder.
  • NTGCAllS_BUNDLE_URL: Download the precompiled library from this URL instead.

Contributing

Contributions are welcome! Please open an issue or PR.

License

This project is licensed under the MIT license. See LICENSE for more details.