Skip to content

Commit b0b8a0b

Browse files
committed
Add tokio bindings
1 parent 5db9344 commit b0b8a0b

File tree

6 files changed

+661
-0
lines changed

6 files changed

+661
-0
lines changed

Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ members = [
66
"pulse-sys",
77
"pulse-sys-simple",
88
"pulse-sys-mainloop-glib",
9+
"pulse-tokio",
910
]
1011
resolver = "2"

pulse-tokio/Cargo.toml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[package]
2+
edition = "2021"
3+
name = "libpulse-tokio"
4+
version = "0.1.0"
5+
authors = ["Daniel De Graaf <[email protected]>"]
6+
license = "MIT OR Apache-2.0"
7+
readme = "README.md"
8+
description = "Tokio bindings for the PulseAudio libpulse library."
9+
keywords = ["binding", "pulseaudio", "audio", "tokio"]
10+
repository = "https://github.com/danieldg/pulse-binding-rust"
11+
exclude = ["README.md"]
12+
rust-version = "1.56"
13+
14+
[dependencies]
15+
libpulse-binding = { path = "../pulse-binding", version = "2.26", default-features = false }
16+
libc = "0.2"
17+
tokio = { version = "1", features = ['net', 'time'] }
18+
futures-lite = { version = "1" }

pulse-tokio/LICENSE-APACHE

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../LICENSE-APACHE

pulse-tokio/LICENSE-MIT

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../LICENSE-MIT

pulse-tokio/README.md

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
libpulse-tokio
2+
================
3+
4+
A tokio mainloop implementation for libpulse-binding.
5+
6+
## Usage
7+
8+
Add this crate to the dependencies specified in your `Cargo.toml`:
9+
10+
```toml
11+
[dependencies]
12+
libpulse-tokio = "0.1"
13+
```
14+

0 commit comments

Comments
 (0)