mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-15 04:00:38 +00:00
unsafe impls for `Send` and `Sync` should not be added by default. in the case of `SlotGuard` removing them does not cause any issues, as the compiler automatically derives those. This PR adds requirement to document the unsafety (see [clippy::undocumented_unsafe_blocks]) and opportunistically adds `#![deny(unsafe_code)]` to most places where we don't have unsafe code right now. TRPL on Send and Sync: https://doc.rust-lang.org/book/ch16-04-extensible-concurrency-sync-and-send.html [clippy::undocumented_unsafe_blocks]: https://rust-lang.github.io/rust-clippy/master/#/undocumented_unsafe_blocks
17 lines
423 B
Rust
17 lines
423 B
Rust
//! Local control plane.
|
|
//!
|
|
//! Can start, configure and stop postgres instances running as a local processes.
|
|
//!
|
|
//! Intended to be used in integration tests and in CLI tools for
|
|
//! local installations.
|
|
#![deny(clippy::undocumented_unsafe_blocks)]
|
|
|
|
pub mod attachment_service;
|
|
mod background_process;
|
|
pub mod broker;
|
|
pub mod endpoint;
|
|
pub mod local_env;
|
|
pub mod pageserver;
|
|
pub mod postgresql_conf;
|
|
pub mod safekeeper;
|