Skip to main content

sonic/
lib.rs

1// Sonic
2//
3// Fast, lightweight and schema-less search backend
4// Copyright: 2019, Valerian Saliou <valerian@valeriansaliou.name>
5// Copyright: 2026, Rémi Bardon <remi@remibardon.name>
6// License: Mozilla Public License v2.0 (MPL v2.0)
7
8#![deny(
9    clippy::all,
10    dead_code,
11    unstable_features,
12    unused_imports,
13    unused_qualifications
14)]
15#![warn(
16    clippy::inline_always, // Do not use unless benchmarked (explicit allow).
17)]
18#![allow(
19    clippy::collapsible_if, // Style preference.
20    clippy::explicit_auto_deref, // Style preference.
21    clippy::needless_as_bytes, // Style preference. Better make those things explicit.
22    clippy::needless_borrow, // Style preference.
23    clippy::needless_borrows_for_generic_args, // Style preference.
24    clippy::result_unit_err, // TODO: Re-enable (deny).
25)]
26
27pub mod config;
28pub mod executor;
29pub mod lexer;
30pub mod query;
31mod stopwords;
32pub mod store;
33pub mod util;
34
35pub use self::config::Config;
36pub use self::executor::Executor;
37pub use self::query::Query;