Skip to content

Commit

Permalink
Add tokio bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldg committed May 15, 2023
1 parent 5db9344 commit b0b8a0b
Show file tree
Hide file tree
Showing 6 changed files with 661 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ members = [
"pulse-sys",
"pulse-sys-simple",
"pulse-sys-mainloop-glib",
"pulse-tokio",
]
resolver = "2"
18 changes: 18 additions & 0 deletions pulse-tokio/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[package]
edition = "2021"
name = "libpulse-tokio"
version = "0.1.0"
authors = ["Daniel De Graaf <[email protected]>"]
license = "MIT OR Apache-2.0"
readme = "README.md"
description = "Tokio bindings for the PulseAudio libpulse library."
keywords = ["binding", "pulseaudio", "audio", "tokio"]
repository = "https://github.com/danieldg/pulse-binding-rust"
exclude = ["README.md"]
rust-version = "1.56"

[dependencies]
libpulse-binding = { path = "../pulse-binding", version = "2.26", default-features = false }
libc = "0.2"
tokio = { version = "1", features = ['net', 'time'] }
futures-lite = { version = "1" }
1 change: 1 addition & 0 deletions pulse-tokio/LICENSE-APACHE
1 change: 1 addition & 0 deletions pulse-tokio/LICENSE-MIT
14 changes: 14 additions & 0 deletions pulse-tokio/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
libpulse-tokio
================

A tokio mainloop implementation for libpulse-binding.

## Usage

Add this crate to the dependencies specified in your `Cargo.toml`:

```toml
[dependencies]
libpulse-tokio = "0.1"
```

Loading

0 comments on commit b0b8a0b

Please sign in to comment.