Giter VIP home page Giter VIP logo

hinawa-rs's Introduction

Rust bindings for hinawa library

2024/02/25 Takashi Sakamoto

Introduction

  • This repository includes FFI and API bindings for libhinawa v4.0 or later which provides Hinawa-4.0.gir.
  • The crates are available in crates.io as well.
  • Inconveniently, it includes no support for libhinawa v2.6 or former, which provides Hinawa-3.0.gir, Hinawa-2.0.gir, and Hinawa-1.0.gir.
  • The latest release is version 0.11.0.

Crates

API bindings for safe and high-level abstractions

License

MIT License

Dependencies

  • libhinawa 4.0 or later
  • FFI crate (hinawa-sys)
    • libc >= 0.2
    • glib-sys >= 0.19
    • gobject-sys >= 0.19
  • API crate (hinawa)
    • libc >= 0.2
    • glib >= 0.19
    • FFI crate (hinawa-sys)

Examples

See hinawa/examples directory.

hinawa-rs's People

Contributors

takaswie avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

ducrp cs558i

hinawa-rs's Issues

hinawa-rs: overridden open APIs are not available for HinawaSndUnit-derived objects

In libhinawa, HinawaSndUnit has open method (=hinawa_snd_unit_open()) and derived objects override it by own method. However the overridden methods are missing from API crate as of hinawa-rs v0.1.0.

Affected objects and methods are:

  • HinawaSndDg00x (hinawa_snd_dg00x_open)
  • HinawaSndDice (hinawa_snd_dice_open)
  • HinawaSndEfw (hinawa_snd_efw_open)
  • HinawaSndMotu (hinawa_snd_motu_open)
  • HinawaSndTscm (hinawa_snd_tscm_open)

Although sys crate generated by gtk/rs/gir includes the above, API crate doesn't. It's perhaps needed to write manual traits by hand. This requires user applications to rewrite the call of open methods specified to the overridden method since rustc cannot determine single trait from simple call of open method.

hinawa-rs version 0.8.0

There is a plan to make future stable releases of libhinawa. It requires to publish new versions of hinawa Rust bindings.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.