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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//! # libosu
//!
//! `libosu` is an attempt to make a convenient library for writing osu!-related programs. It
//! includes data structures and parsers for beatmaps, replays, and more.
//!
//! Please note that until this crate hits `1.0`, none of the APIs in this crate will be stable, so
//! take care when using this crate.

#![deny(missing_docs)]

#[macro_use]
extern crate anyhow;
#[macro_use]
extern crate lazy_static;
#[macro_use]
extern crate serde;

#[cfg(feature = "apiv1")]
mod apiv1;
mod beatmap;
mod color;
mod enums;
mod hitobject;
mod hitsounds;
mod parsing;
mod point;
#[cfg(feature = "replay")]
mod replay;
mod timing;

#[cfg(feature = "apiv1")]
pub use apiv1::{APIError, ApprovedStatus, UserLookup, UserScore, API};
pub use beatmap::*;
pub use color::*;
pub use enums::*;
pub use hitobject::*;
pub use hitsounds::*;
pub use parsing::*;
pub use point::*;
#[cfg(feature = "replay")]
pub use replay::*;
pub use timing::*;

/// Says "hello there"
#[deprecated]
pub fn say_hello_there() {
    println!("hello there");
}