1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
//! A Rust port of the [Sonant 4K synth](http://www.pouet.net/prod.php?which=53615) with streaming
//! support.
//!
//! Sonant [(C) 2008-2009 Jake Taylor](https://creativecommons.org/licenses/by-nc-sa/2.5/)
//! [ Ferris / Youth Uprising ]
//!
//! # Crate features
//!
//! - `std` (default) - Allow `std::error::Error`. Disable default features to use `sonant` in a
//!   `no_std` environment.

#![cfg_attr(not(feature = "std"), no_std)]
#![deny(clippy::all)]
#![deny(clippy::pedantic)]
#![allow(clippy::cast_possible_truncation)]
#![allow(clippy::cast_precision_loss)]
#![allow(clippy::cast_sign_loss)]

mod consts;
#[cfg(feature = "std")]
pub mod errors;
mod song;
mod synth;

pub use song::{Error, Song};
pub use synth::Synth;