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
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
#![cfg_attr(feature = "dev", feature(plugin))]
#![cfg_attr(feature = "dev", plugin(clippy))]

/// rustr version
/// 
#[macro_export]
macro_rules! rustr_version{
    () => (
	{
		let mar = 0 * 10000000;
    	let min = 1 * 100000;
    	let rev = 0 * 1000;
    	let dev = 0 * 1;
    	mar + min + rev + dev
	})
}

// ///////////////////// begin mod

#[macro_use]
pub mod macros;

#[allow(non_camel_case_types,non_upper_case_globals,non_snake_case)]
#[cfg_attr(feature = "dev",allow(type_complexity,expl_impl_clone_on_copy,used_underscore_binding))]
pub mod rdll;
pub mod protect;
pub mod storage;
pub mod rtype;
#[macro_use]
pub mod util;

pub mod traits;
pub mod grow;
pub mod lcons;
pub mod rlang;
pub mod formula;
pub mod dotpair;

pub mod impls;



#[macro_use]
#[allow(non_camel_case_types,non_upper_case_globals,non_snake_case)]
pub mod rwrap;
pub mod complex;
pub mod rptr;
pub mod rweak;
pub mod result;
pub mod error;
pub mod eval;
pub mod rcast;

pub mod vector;
pub mod vectorx;

pub mod name_object;
// pub mod caster_complex; //num crate

pub mod robject;
pub mod symbol;
pub mod promise;
pub mod s4;
pub mod reference;
pub mod rmath;
pub mod environment;
pub mod rfunction;
pub mod rchar;

pub mod dll;
pub use dll::*;
pub mod rstatic;

// begin feature

#[cfg(feature = "date")]
extern crate chrono;

#[cfg(feature = "random")]
extern crate rand;

#[cfg(feature = "logging")]
extern crate log;

pub mod feature {

    //! Features
    //!
    //!
    //!

    // TODO: Function Date Date meat
    #[cfg(feature = "date")]
    pub mod date;
    #[cfg(feature = "date")]
    pub mod datetime;
	#[cfg(feature = "engine")]
    pub mod engine;
	#[cfg(feature = "random")]
    pub mod random;
	#[cfg(feature = "logging")]
    pub mod log;
}

#[cfg(feature = "ty_nalgebra")]
extern crate nalgebra;

#[cfg(any(feature = "ty_num",feature = "ty_nalgebra"))]
extern crate num;

pub mod types {

    //! Types from other crates
    //!
    //!
    //!
	#[cfg(feature = "ty_nalgebra")]
    pub mod nalgebra;
	#[cfg(feature = "ty_num")]
    pub mod num;
}

pub mod sugar {
    //! Sugar for rustr
    use error::RResult;
    pub type RR<T> = RResult<T>;
}

pub use traits::*;
pub use error::*;
pub use macros::*;
pub use vector::*;
pub use rtype::*;
pub use rdll::*;
pub use protect::stackp::*;
pub use storage::*;
pub use rfunction::*;
pub use environment::*;
pub use robject::*;
pub use vectorx::*;
pub use util::rprint;
pub use rchar::*;