mirror of
https://github.com/Serial-ATA/lofty-rs
synced 2024-12-04 01:49:09 +00:00
benches: Move assets outside of benches
Also specify the paths of the benchmarks, since publishing breaks when it cannot find them.
This commit is contained in:
parent
d7199f1b71
commit
10e2fe35b5
16 changed files with 37 additions and 17 deletions
|
@ -9,7 +9,7 @@ repository = "https://github.com/Serial-ATA/lofty-rs"
|
|||
keywords = ["tags", "audio", "metadata", "id3", "vorbis"]
|
||||
categories = ["multimedia", "multimedia::audio", "parser-implementations"]
|
||||
readme = "README.md"
|
||||
include = ["src", "Cargo.toml", "LICENSE-APACHE", "LICENSE-MIT", "benches", "SUPPORTED_FORMATS.md"]
|
||||
include = ["src", "Cargo.toml", "LICENSE-APACHE", "LICENSE-MIT", "SUPPORTED_FORMATS.md"]
|
||||
|
||||
[dependencies]
|
||||
# Vorbis comments pictures
|
||||
|
@ -47,10 +47,12 @@ bench = false
|
|||
|
||||
[[bench]]
|
||||
name = "read_file"
|
||||
path = "benches/read_file.rs"
|
||||
harness = false
|
||||
|
||||
[[bench]]
|
||||
name = "create_tag"
|
||||
path = "benches/create_tag.rs"
|
||||
harness = false
|
||||
|
||||
[[example]]
|
||||
|
|
|
@ -49,7 +49,7 @@ fn bench_write(c: &mut Criterion) {
|
|||
PictureType::CoverFront,
|
||||
MimeType::Jpeg,
|
||||
None,
|
||||
include_bytes!("assets/cover.jpg").to_vec(),
|
||||
include_bytes!("../benches_assets/cover.jpg").to_vec(),
|
||||
);
|
||||
|
||||
tag.insert(
|
||||
|
@ -75,7 +75,7 @@ fn bench_write(c: &mut Criterion) {
|
|||
PictureType::CoverFront,
|
||||
MimeType::Jpeg,
|
||||
None,
|
||||
include_bytes!("assets/cover.jpg").to_vec(),
|
||||
include_bytes!("../benches_assets/cover.jpg").to_vec(),
|
||||
);
|
||||
|
||||
tag.insert_picture(picture);
|
||||
|
@ -99,7 +99,7 @@ fn bench_write(c: &mut Criterion) {
|
|||
PictureType::CoverFront,
|
||||
MimeType::Jpeg,
|
||||
None,
|
||||
include_bytes!("assets/cover.jpg").to_vec(),
|
||||
include_bytes!("../benches_assets/cover.jpg").to_vec(),
|
||||
);
|
||||
|
||||
tag.insert_picture(picture);
|
||||
|
@ -118,7 +118,7 @@ fn bench_write(c: &mut Criterion) {
|
|||
PictureType::CoverFront,
|
||||
MimeType::Jpeg,
|
||||
None,
|
||||
include_bytes!("assets/cover.jpg").to_vec(),
|
||||
include_bytes!("../benches_assets/cover.jpg").to_vec(),
|
||||
);
|
||||
|
||||
let _ = tag.insert_picture(picture, None).unwrap();
|
||||
|
|
|
@ -30,18 +30,36 @@ fn content_infer_read(c: &mut Criterion) {
|
|||
test_read_file!(
|
||||
c,
|
||||
[
|
||||
(AAC, "assets/01 TempleOS Hymn Risen (Remix).aac"),
|
||||
(AIFF, "assets/01 TempleOS Hymn Risen (Remix).aiff"),
|
||||
(APE, "assets/01 TempleOS Hymn Risen (Remix).ape"),
|
||||
(FLAC, "assets/01 TempleOS Hymn Risen (Remix).flac"),
|
||||
(MP4, "assets/01 TempleOS Hymn Risen (Remix).m4a"),
|
||||
(MP3, "assets/01 TempleOS Hymn Risen (Remix).mp3"),
|
||||
(MPC, "assets/01 TempleOS Hymn Risen (Remix).mpc"),
|
||||
(OPUS, "assets/01 TempleOS Hymn Risen (Remix).opus"),
|
||||
(RIFF, "assets/01 TempleOS Hymn Risen (Remix).wav"),
|
||||
(SPEEX, "assets/01 TempleOS Hymn Risen (Remix).spx"),
|
||||
(VORBIS, "assets/01 TempleOS Hymn Risen (Remix).ogg"),
|
||||
(WAVPACK, "assets/01 TempleOS Hymn Risen (Remix).wv"),
|
||||
(AAC, "../benches_assets/01 TempleOS Hymn Risen (Remix).aac"),
|
||||
(
|
||||
AIFF,
|
||||
"../benches_assets/01 TempleOS Hymn Risen (Remix).aiff"
|
||||
),
|
||||
(APE, "../benches_assets/01 TempleOS Hymn Risen (Remix).ape"),
|
||||
(
|
||||
FLAC,
|
||||
"../benches_assets/01 TempleOS Hymn Risen (Remix).flac"
|
||||
),
|
||||
(MP4, "../benches_assets/01 TempleOS Hymn Risen (Remix).m4a"),
|
||||
(MP3, "../benches_assets/01 TempleOS Hymn Risen (Remix).mp3"),
|
||||
(MPC, "../benches_assets/01 TempleOS Hymn Risen (Remix).mpc"),
|
||||
(
|
||||
OPUS,
|
||||
"../benches_assets/01 TempleOS Hymn Risen (Remix).opus"
|
||||
),
|
||||
(RIFF, "../benches_assets/01 TempleOS Hymn Risen (Remix).wav"),
|
||||
(
|
||||
SPEEX,
|
||||
"../benches_assets/01 TempleOS Hymn Risen (Remix).spx"
|
||||
),
|
||||
(
|
||||
VORBIS,
|
||||
"../benches_assets/01 TempleOS Hymn Risen (Remix).ogg"
|
||||
),
|
||||
(
|
||||
WAVPACK,
|
||||
"../benches_assets/01 TempleOS Hymn Risen (Remix).wv"
|
||||
),
|
||||
]
|
||||
);
|
||||
}
|
||||
|
|
Before Width: | Height: | Size: 203 KiB After Width: | Height: | Size: 203 KiB |
Loading…
Reference in a new issue