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
49
50
51
52
53
54
55
56
57
58
59
60
//! A minimal particle simulation.

#![feature(test)]
#![feature(const_fn)]
#![feature(vec_remove_item)]
// TODO: temp disable warning in use of EnumFlags proc macro
#![allow(proc_macro_derive_resolution_fallback)]
#![warn(unused_extern_crates)]

#[cfg(test)] extern crate test;
#[cfg(test)] extern crate rand;

#[macro_use] extern crate enumflags_derive;   // #[derive(EnumFlags)]
#[macro_use] extern crate from_variants;      // #[derive(FromVariants)]

#[macro_use] extern crate log;

#[cfg(feature = "derive_serdes")]
#[macro_use] extern crate serde;

#[cfg_attr(test, macro_use)]                  // approx_eq macros
extern crate cgmath;
extern crate colored;
extern crate enumflags;
extern crate stash;
extern crate vec_map;

extern crate sorted_vec;
#[macro_use] extern crate rs_utils;

pub extern crate geometry_utils;
pub extern crate math_utils;
pub use geometry_utils as geometry;
pub use math_utils     as math;

pub mod collision;
pub mod component;
pub mod constraint;
pub mod event;
pub mod force;
pub mod integrator;
pub mod object;
pub mod system;

pub use collision::Collision;
pub use constraint::Constraint;
pub use force::Force;
pub use integrator::Integrator;
pub use object::Object;
pub use system::System;

/*
#[cfg(test)]
mod tests {
  #[test]
  fn it_works() {
      assert_eq!(2 + 2, 4);
  }
}
*/