Vendor dependencies for 0.3.0 release

This commit is contained in:
2025-09-27 10:29:08 -05:00
parent 0c8d39d483
commit 82ab7f317b
26803 changed files with 16134934 additions and 0 deletions

1
vendor/alsa-sys/.cargo-checksum.json vendored Normal file
View File

@@ -0,0 +1 @@
{"files":{"Cargo.toml":"709564bceccc44d3314d06ce59e61c11c30e6c861a784c886ca813d64ad9765d","LICENSE":"219766b3420f49f6204143c5f3ef750888fb6de29ce5f63e909f146e90b375a2","README.md":"263763eb2baff7d9e3db7d96b54a0679d0f05c42198ac9a685f5482137d4340e","build.rs":"47195d700b895b8901570c281ff3a99ca0dd1535df52f92f990a89d215ea831a","regenerate_bindings.sh":"71afbc324170622c8337b9e6bb0ab6d621ab72093231da37d780ffc79b2a0c0c","src/generated.rs":"6841b36de61a1998bc54ca5b41c8d2b3fcd300aeb48c7b60f4655f0823664668","src/lib.rs":"0aa55bfdc6fe3ab69082f8fc79217846f11d9d40c3104228255456b07840570e"},"package":"db8fee663d06c4e303404ef5f40488a53e062f89ba8bfed81f42325aafad1527"}

29
vendor/alsa-sys/Cargo.toml vendored Normal file
View File

@@ -0,0 +1,29 @@
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies
#
# If you believe there's an error in this file please file an
# issue against the rust-lang/cargo repository. If you're
# editing this file be aware that the upstream Cargo.toml
# will likely look very different (and much more reasonable)
[package]
edition = "2018"
name = "alsa-sys"
version = "0.3.1"
authors = ["Pierre Krieger <pierre.krieger1708@gmail.com>", "David Henningsson <coding@diwic.se>"]
build = "build.rs"
links = "alsa"
description = "FFI bindings for the ALSA project (Advanced Linux Sound Architecture)"
documentation = "http://docs.rs/alsa-sys"
keywords = ["ALSA", "audio", "sound"]
categories = ["os::unix-apis", "external-ffi-bindings", "multimedia::audio"]
license = "MIT"
repository = "https://github.com/diwic/alsa-sys"
[dependencies.libc]
version = "0.2.65"
[build-dependencies.pkg-config]
version = "0.3"

21
vendor/alsa-sys/LICENSE vendored Normal file
View File

@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2018 diwic
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

6
vendor/alsa-sys/README.md vendored Normal file
View File

@@ -0,0 +1,6 @@
# alsa-sys
Rust raw FFI bindings for ALSA.
To avoid too long build times, the finished binding is committed into this repository.
If you need to regenerate it, run `regenerate_bindings.sh` (and have `bindgen` set up when you do so).

16
vendor/alsa-sys/build.rs vendored Normal file
View File

@@ -0,0 +1,16 @@
extern crate pkg_config;
fn main() {
if let Err(e) = pkg_config::probe_library("alsa") {
match e {
pkg_config::Error::Failure { .. } => panic! (
"Pkg-config failed - usually this is because alsa development headers are not installed.\n\n\
For Fedora users:\n# dnf install alsa-lib-devel\n\n\
For Debian/Ubuntu users:\n# apt-get install libasound2-dev\n\n\
pkg_config details:\n{}",
e
),
_ => panic!("{}", e)
}
}
}

4
vendor/alsa-sys/regenerate_bindings.sh vendored Executable file
View File

@@ -0,0 +1,4 @@
#!/bin/sh
bindgen --size_t-is-usize --no-recursive-whitelist --no-prepend-enum-name --no-layout-tests \
--generate "functions,types" --whitelist-function="snd_.*" --whitelist-type="_?snd_.*" \
/usr/include/alsa/asoundlib.h -o src/generated.rs

8745
vendor/alsa-sys/src/generated.rs vendored Normal file

File diff suppressed because it is too large Load Diff

40
vendor/alsa-sys/src/lib.rs vendored Normal file
View File

@@ -0,0 +1,40 @@
#![allow(non_camel_case_types)]
use libc::{FILE, pid_t, timeval, timespec, pollfd};
pub const SND_PCM_NONBLOCK: ::std::os::raw::c_int = 0x1;
pub const SND_PCM_ASYNC: ::std::os::raw::c_int = 0x2;
pub const SND_SEQ_OPEN_OUTPUT: i32 = 1;
pub const SND_SEQ_OPEN_INPUT: i32 = 2;
pub const SND_SEQ_OPEN_DUPLEX: i32 = SND_SEQ_OPEN_OUTPUT | SND_SEQ_OPEN_INPUT;
pub const SND_SEQ_NONBLOCK: i32 = 0x0001;
pub const SND_SEQ_ADDRESS_BROADCAST: u8 = 255;
pub const SND_SEQ_ADDRESS_SUBSCRIBERS: u8 = 254;
pub const SND_SEQ_ADDRESS_UNKNOWN: u8 = 253;
pub const SND_SEQ_QUEUE_DIRECT: u8 = 253;
pub const SND_SEQ_TIME_MODE_MASK: u8 = 1<<1;
pub const SND_SEQ_TIME_STAMP_MASK: u8 = 1<<0;
pub const SND_SEQ_TIME_MODE_REL: u8 = 1<<1;
pub const SND_SEQ_TIME_STAMP_REAL: u8 = 1<<0;
pub const SND_SEQ_TIME_STAMP_TICK: u8 = 0<<0;
pub const SND_SEQ_TIME_MODE_ABS: u8 = 0<<1;
pub const SND_SEQ_CLIENT_SYSTEM: u8 = 0;
pub const SND_SEQ_PORT_SYSTEM_TIMER: u8 = 0;
pub const SND_SEQ_PORT_SYSTEM_ANNOUNCE: u8 = 1;
pub const SND_SEQ_PRIORITY_HIGH: u8 = 1<<4;
pub const SND_SEQ_EVENT_LENGTH_FIXED: u8 = 0<<2;
pub const SND_SEQ_EVENT_LENGTH_MASK: u8 = 3<<2;
pub const SND_SEQ_EVENT_LENGTH_VARIABLE: u8 = 1<<2;
pub const SND_SEQ_EVENT_LENGTH_VARUSR: u8 = 2<<2;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __va_list_tag {
pub gp_offset: ::std::os::raw::c_uint,
pub fp_offset: ::std::os::raw::c_uint,
pub overflow_arg_area: *mut ::std::os::raw::c_void,
pub reg_save_area: *mut ::std::os::raw::c_void,
}
include!("generated.rs");