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
#[macro_use]
extern crate itertools;
#[macro_use]
pub mod util; //TODO: make this private

extern crate rand;

mod accelerators;
mod particle;
mod universe;
mod kernel;
mod fetcher;
mod force;
pub mod initializer;

// Re-export some names for flatter syntax
pub use particle::Particle;
pub use universe::Universe;
pub use fetcher::Fetcher;
pub use force::Force;
pub use initializer::Config;

// When the `wee_alloc` feature is enabled, use `wee_alloc` as the global
// allocator.
#[cfg(feature = "wee_alloc")]
#[global_allocator]
static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT;