| Crates.io | xmrs |
| lib.rs | xmrs |
| version | 0.9.9 |
| created_at | 2023-03-12 16:14:42.698424+00 |
| updated_at | 2025-05-01 08:05:53.286912+00 |
| description | A library to edit SoundTracker data with pleasure |
| homepage | |
| repository | https://codeberg.org/sbechet/xmrs |
| max_upload_size | |
| id | 808145 |
| size | 510,051 |
A no_std library to edit Sound Tracker data with pleasure.
Because "Representation is the Essence of Programming".
Suppported files:
To edit data, use Module struct.
You can serialize Module using serde or bincode2 (see std feature).
Test with cargo run --no-default-features --features=demo --example xmrs -- --help, then read 50 lines examples/xmrs example.
micromath is used by default in no_std. If you prefer libm, use cargo build --no-default-features --features=libm --release.
If you want to use import, add --features=import.
If you want to optimize for memory or space in the embedded context, don't use the import feature, but prefer to prepare a serialized version with bincode with alloc feature and possibly flate2-rs.
If you want to use std feature use cargo build --no-default-features --features=std --release
If you'd like to post-process in another language (but why use another language when you're lucky enough to have rust!?) don't forget that, after loading, you can serialize in json with serde.