Skip to content

Commit c9fe1d0

Browse files
committed
misc: Add aud_io crate
1 parent 0805a4c commit c9fe1d0

File tree

6 files changed

+40
-3
lines changed

6 files changed

+40
-3
lines changed

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
resolver = "3"
33

44
members = [
5+
"aud_io",
56
"lofty",
67
"lofty_attr",
78
"ogg_pager",
@@ -10,12 +11,14 @@ members = [
1011
]
1112

1213
[workspace.package]
14+
authors = ["Serial <69764315+Serial-ATA@users.noreply.github.com>"]
1315
edition = "2024"
1416
rust-version = "1.85"
1517
repository = "https://github.com/Serial-ATA/lofty-rs"
1618
license = "MIT OR Apache-2.0"
1719

1820
[workspace.dependencies]
21+
aud_io = { version = "0.1.0", path = "aud_io" }
1922
lofty = { version = "0.22.4", path = "lofty" }
2023
lofty_attr = { version = "0.11.1", path = "lofty_attr" }
2124
ogg_pager = { version = "0.7.0", path = "ogg_pager" }

aud_io/Cargo.toml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[package]
2+
name = "aud_io"
3+
version = "0.1.0"
4+
description = "" # TODO
5+
keywords = ["audio", "mp4"]
6+
categories = ["multimedia", "multimedia::audio", "parser-implementations"]
7+
readme = "" # TODO
8+
include = ["src", "../LICENSE-APACHE", "../LICENSE-MIT"]
9+
authors.workspace = true
10+
edition.workspace = true
11+
license.workspace = true
12+
repository.workspace = true
13+
14+
[dependencies]
15+
16+
# TODO
17+
#[lints]
18+
#workspace = true

aud_io/src/lib.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
pub fn add(left: u64, right: u64) -> u64 {
2+
left + right
3+
}
4+
5+
#[cfg(test)]
6+
mod tests {
7+
use super::*;
8+
9+
#[test]
10+
fn it_works() {
11+
let result = add(2, 2);
12+
assert_eq!(result, 4);
13+
}
14+
}

lofty/Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
[package]
22
name = "lofty"
33
version = "0.22.4"
4-
authors = ["Serial <69764315+Serial-ATA@users.noreply.github.com>"]
54
description = "Audio metadata library"
65
keywords = ["tags", "audio", "metadata", "id3", "vorbis"]
76
categories = ["multimedia", "multimedia::audio", "parser-implementations"]
87
readme = "../README.md"
98
include = ["src", "LICENSE-APACHE", "LICENSE-MIT", "SUPPORTED_FORMATS.md"]
9+
authors.workspace = true
1010
edition.workspace = true
1111
rust-version.workspace = true
1212
repository.workspace = true
1313
license.workspace = true
1414

1515
[dependencies]
16+
aud_io = { workspace = true }
17+
1618
# Vorbis comments pictures
1719
data-encoding = "2.6.0"
1820
byteorder = { workspace = true }

lofty_attr/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[package]
22
name = "lofty_attr"
33
version = "0.11.1"
4-
authors = ["Serial <69764315+Serial-ATA@users.noreply.github.com>"]
54
description = "Macros for Lofty"
65
readme = "README.md"
76
include = ["src", "Cargo.toml", "../LICENSE-*"]
7+
authors.workspace = true
88
edition.workspace = true
99
rust-version.workspace = true
1010
repository.workspace = true

ogg_pager/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[package]
22
name = "ogg_pager"
33
version = "0.7.0"
4-
authors = ["Serial <69764315+Serial-ATA@users.noreply.github.com>"]
54
description = "A simple OGG page reader"
65
keywords = ["ogg", "xiph"]
76
categories = ["multimedia", "multimedia::audio", "parser-implementations"]
87
include = ["src", "Cargo.toml", "../LICENSE-*"]
8+
authors.workspace = true
99
edition.workspace = true
1010
rust-version.workspace = true
1111
repository.workspace = true

0 commit comments

Comments
 (0)