Skip to main content

dsf/
lib.rs

1//! Read and write DSF files: header parsing and ID3v2 metadata.
2//!
3//! Audio payload bytes are never rewritten when editing tags.
4#![forbid(unsafe_code)]
5#![warn(missing_docs, rust_2018_idioms)]
6
7mod edit;
8mod error;
9mod field;
10mod header;
11mod storage;
12mod tag;
13
14pub use edit::{Change, FrameId, Picture, TagEdit, WriteOptions};
15pub use error::{Error, Result};
16pub use field::{Field, Target, Track, custom_fields, read_track, text, text_frames};
17pub use header::{AUDIO_OFFSET, DATA_CHUNK_HEADER_LEN, DsfHeader};
18pub use storage::Storage;
19pub use tag::{read_path, read_tag, remove_tag, update_path, update_tag, write_tag};
20
21/// Re-exported so callers use exactly the `id3` version this crate was built with.
22pub use id3::{self, Tag, Version};