Skip to main content

parse_rust_rest/
lib.rs

1//! The read and write pipelines. The behavioral heart.
2//!
3//! Never references JS types, `serde_json::Value`-as-JS-value conventions, or JS async semantics.
4//! Everything JavaScript lives behind the sidecar socket, and keeping this crate clean of it is
5//! what makes that boundary real rather than aspirational. The one `serde_json` use is
6//! `query_parse`, which reads a client-supplied `where` document, and that is JSON on the wire
7//! rather than a JS value.
8
9#![forbid(unsafe_code)]
10#![cfg_attr(
11    not(test),
12    deny(clippy::unwrap_used, clippy::expect_used, clippy::panic)
13)]
14
15pub mod acl;
16pub mod guard;
17pub mod pipeline;
18pub mod query_parse;
19
20pub use acl::AclScope;
21pub use guard::{reject_reserved_keys, strip_internal_keys, to_response_body};
22pub use pipeline::{count, create, delete, find, get, update, CreateResponse, UpdateResponse};
23pub use query_parse::parse_where;