1pub mod ast;
2pub mod dsl;
3pub mod error;
4pub mod filter;
5pub mod mapper;
6pub mod parsing;
7#[cfg(test)]
8pub(crate) mod test_suite;
9
10pub use ast::{Ast, Constraint, Operator, Value};
11pub use dsl::RestSql;
12pub use error::{ParseError, RestSqlError, ValidationError};
13pub use mapper::{FieldMapper, IdentityMapper};
14
15#[cfg(test)]
16mod tests {
17 use crate::test_suite::{dsl, suite};
18
19 #[test]
20 fn parsing_suite() {
21 suite::run(crate::parsing::parse);
22 }
23
24 #[test]
25 fn dsl_suite() {
26 dsl::run();
27 }
28
29 #[test]
30 fn filter_api_suite() {
31 crate::test_suite::filter_api::run();
32 }
33}