atc_router/
lib.rs

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
/*!
This crate provides a powerful rule based matching engine that can match a set of routes
against dynamic input value efficiently.
It is mainly used inside the [Kong Gateway](https://github.com/Kong/kong)
for performing route matching against incoming requests and is used as a FFI binding
for LuaJIT.

Please see the [repository README.md](https://github.com/Kong/atc-router/blob/main/README.md)
for more detailed explainations of the concepts and APIs.

# Crate features

* **ffi** -
  Builds the FFI based interface which is suitable for use by a foreign language such as
  C or LuaJIT. This feature is on by default.
* **serde** -
  Enable serde integration which allows data structures to be serializable/deserializable.
*/

pub mod ast;
pub mod cir;
pub mod context;
pub mod interpreter;
pub mod parser;
pub mod router;
pub mod schema;
pub mod semantics;

#[cfg(feature = "ffi")]
pub mod ffi;

#[macro_use]
extern crate pest_derive;