yaslapi-sys 0.1.1

A library that provides bindings to the Yet Another Scripting Language (YASL) API.
docs.rs failed to build yaslapi-sys-0.1.1
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: yaslapi-sys-0.2.5

yaslapi-sys

yaslapi-sys is a Rust library that provides bindings to the Yet Another Scripting Language (YASL) API.

Installation

First, you must have YASL installed on your system to use this crate. To install yaslapi-sys, add the following to your Cargo.toml file:

[dependencies]
yaslapi-sys = "0.1.0"

Then run cargo build to build your project.

Usage

Here’s an example of how to use yaslapi-sys in your Rust code:

extern crate yaslapi_sys;

use yaslapi_sys::YASL_State;
use std::ffi::CString;

fn main() {
    let test_file = CString::new("test.yasl").unwrap();
    let state: *mut YASL_State = unsafe { yaslapi_sys::YASL_newstate(test_file.as_ptr()) };
    assert!(!state.is_null());
    // ...
}

License

yaslapi-sys is licensed under the MIT License.