chore: rename quicproquo → quicprochat in Rust workspace

Rename all crate directories, package names, binary names, proto
package/module paths, ALPN strings, env var prefixes, config filenames,
mDNS service names, and plugin ABI symbols from quicproquo/qpq to
quicprochat/qpc.
This commit is contained in:
2026-03-07 18:24:52 +01:00
parent d8c1392587
commit a710037dde
212 changed files with 609 additions and 609 deletions

View File

@@ -1,17 +1,17 @@
# This is a standalone cdylib crate outside the main workspace.
# It depends on quicproquo-plugin-api via a relative path.
# It depends on quicprochat-plugin-api via a relative path.
[workspace]
[package]
name = "rate_limit_plugin"
version = "0.1.0"
edition = "2021"
description = "Reference quicproquo server plugin: per-recipient payload-size rate limiter."
description = "Reference quicprochat server plugin: per-recipient payload-size rate limiter."
license = "MIT"
# Compile as a shared library (.so / .dylib) for dynamic loading by qpq-server.
# Compile as a shared library (.so / .dylib) for dynamic loading by qpc-server.
[lib]
crate-type = ["cdylib"]
[dependencies]
quicproquo-plugin-api = { path = "../../../crates/quicproquo-plugin-api" }
quicprochat-plugin-api = { path = "../../../crates/quicprochat-plugin-api" }

View File

@@ -1,4 +1,4 @@
//! Reference quicproquo server plugin: payload-size rate limiter.
//! Reference quicprochat server plugin: payload-size rate limiter.
//!
//! Rejects any single message whose payload exceeds `MAX_PAYLOAD_BYTES`. In a
//! real deployment you would extend this with per-sender token-bucket logic,
@@ -21,12 +21,12 @@
//! # Config (via TOML)
//!
//! ```toml
//! plugin_dir = "/etc/qpq/plugins"
//! plugin_dir = "/etc/qpc/plugins"
//! ```
use std::ffi::c_void;
use quicproquo_plugin_api::{CMessageEvent, HookVTable, HOOK_CONTINUE, HOOK_REJECT, PLUGIN_OK};
use quicprochat_plugin_api::{CMessageEvent, HookVTable, HOOK_CONTINUE, HOOK_REJECT, PLUGIN_OK};
/// Maximum allowed encrypted payload size in bytes.
const MAX_PAYLOAD_BYTES: usize = 512 * 1024; // 512 KiB
@@ -91,9 +91,9 @@ unsafe extern "C" fn destroy(user_data: *mut c_void) {
/// # Safety
///
/// `vtable` must be a valid pointer to a zeroed `HookVTable` as provided by
/// `qpq-server`. Do not call from any other context.
/// `qpc-server`. Do not call from any other context.
#[no_mangle]
pub unsafe extern "C" fn qpq_plugin_init(vtable: *mut HookVTable) -> i32 {
pub unsafe extern "C" fn qpc_plugin_init(vtable: *mut HookVTable) -> i32 {
if vtable.is_null() {
return -1;
}