#lv2 #raw

lv2_raw

Exposes the raw LV2 interface (C) to Rust. Also attempts to implement some idiomatic Rust concepts (e.g. iterators).

2 unstable releases

Uses old Rust 2015

0.2.0 May 13, 2017
0.1.0 Jan 13, 2017

#685 in Audio

Download history 21/week @ 2023-10-18 27/week @ 2023-10-25 27/week @ 2023-11-01 33/week @ 2023-11-08 29/week @ 2023-11-15 30/week @ 2023-11-22 19/week @ 2023-11-29 19/week @ 2023-12-06 24/week @ 2023-12-13 27/week @ 2023-12-20 19/week @ 2023-12-27 18/week @ 2024-01-03 23/week @ 2024-01-10 22/week @ 2024-01-17 13/week @ 2024-01-24 16/week @ 2024-01-31

74 downloads per month
Used in 4 crates

ISC license

67KB
706 lines

Exposes the raw LV2 interface (C language) to Rust

LV2 docs: http://lv2plug.in/

The documentation of this crate is copied from the original C files, whose copyright holders include Steve Harris, Lars Luthman, Gabriel M. Beddingfield, David Robillard, Richard W.E. Furse, Paul Barton-Davis, Stefan Westerfeld, and possibly others.

Note

The objective of this crate is to translate the C interface as closely as possible to Rust, declaring e.g.

  • type aliases for raw pointers
  • [repr(C)] structs
  • extern "C" fn declarations passed to the host in the LV2Descriptor struct

The original (C language) LV2 package defines contains some "helper" functions, which are defined in C-headers, i.e. there is no compiled library file which this crate could link to. These functions are also declared and defined here. Let us know if you think that's not right. See also this question on stackoverflow.

The lv2 crate is one attempt to provide a more idiomatic Rust interface to LV2.

Roadmap:

  • Figure out division line between low- and high-level crate
    • Preliminary goal: provide all functionality of LV2 while keeping it low-level
  • Find out how much abstraction is useful/affordable in audio applications (i.e. real-time).

Dependencies