chore: rename quicproquo → quicprochat in docs, Docker, CI, and packaging
Rename all project references from quicproquo/qpq to quicprochat/qpc across documentation, Docker configuration, CI workflows, packaging scripts, operational configs, and build tooling. - Docker: crate paths, binary names, user/group, data dirs, env vars - CI: workflow crate references, binary names, artifact names - Docs: all markdown files under docs/, SDK READMEs, book.toml - Packaging: OpenWrt Makefile, init script, UCI config (file renames) - Scripts: justfile, dev-shell, screenshot, cross-compile, ai_team - Operations: Prometheus config, alert rules, Grafana dashboard - Config: .env.example (QPQ_* → QPC_*), CODEOWNERS paths - Top-level: README, CONTRIBUTING, ROADMAP, CLAUDE.md
This commit is contained in:
@@ -1,32 +1,32 @@
|
||||
// swift-tools-version: 5.9
|
||||
// QuicProQuo Swift SDK — wraps libquicproquo_ffi for iOS/macOS.
|
||||
// QuicProChat Swift SDK — wraps libquicprochat_ffi for iOS/macOS.
|
||||
|
||||
import PackageDescription
|
||||
|
||||
let package = Package(
|
||||
name: "QuicProQuo",
|
||||
name: "QuicProChat",
|
||||
platforms: [
|
||||
.iOS(.v15),
|
||||
.macOS(.v13),
|
||||
],
|
||||
products: [
|
||||
.library(name: "QuicProQuo", targets: ["QuicProQuo"]),
|
||||
.library(name: "QuicProChat", targets: ["QuicProChat"]),
|
||||
],
|
||||
targets: [
|
||||
.systemLibrary(
|
||||
name: "CQuicProQuo",
|
||||
name: "CQuicProChat",
|
||||
pkgConfig: nil,
|
||||
providers: []
|
||||
),
|
||||
.target(
|
||||
name: "QuicProQuo",
|
||||
dependencies: ["CQuicProQuo"],
|
||||
path: "Sources/QuicProQuo"
|
||||
name: "QuicProChat",
|
||||
dependencies: ["CQuicProChat"],
|
||||
path: "Sources/QuicProChat"
|
||||
),
|
||||
.testTarget(
|
||||
name: "QuicProQuoTests",
|
||||
dependencies: ["QuicProQuo"],
|
||||
path: "Tests/QuicProQuoTests"
|
||||
name: "QuicProChatTests",
|
||||
dependencies: ["QuicProChat"],
|
||||
path: "Tests/QuicProChatTests"
|
||||
),
|
||||
]
|
||||
)
|
||||
|
||||
@@ -1,24 +1,24 @@
|
||||
# QuicProQuo Swift SDK
|
||||
# QuicProChat Swift SDK
|
||||
|
||||
Swift wrapper over `libquicproquo_ffi` for iOS and macOS.
|
||||
Swift wrapper over `libquicprochat_ffi` for iOS and macOS.
|
||||
|
||||
## Prerequisites
|
||||
|
||||
- Xcode 15+ / Swift 5.9+
|
||||
- iOS 15+ or macOS 13+
|
||||
- `libquicproquo_ffi` built for the target architecture
|
||||
- `libquicprochat_ffi` built for the target architecture
|
||||
|
||||
## Building the Native Library
|
||||
|
||||
```sh
|
||||
# iOS (device)
|
||||
cargo build --release -p quicproquo-ffi --target aarch64-apple-ios
|
||||
cargo build --release -p quicprochat-ffi --target aarch64-apple-ios
|
||||
|
||||
# iOS Simulator (Apple Silicon)
|
||||
cargo build --release -p quicproquo-ffi --target aarch64-apple-ios-sim
|
||||
cargo build --release -p quicprochat-ffi --target aarch64-apple-ios-sim
|
||||
|
||||
# macOS
|
||||
cargo build --release -p quicproquo-ffi --target aarch64-apple-darwin
|
||||
cargo build --release -p quicprochat-ffi --target aarch64-apple-darwin
|
||||
```
|
||||
|
||||
## Installation
|
||||
@@ -37,13 +37,13 @@ Or add the library search path to your Xcode project:
|
||||
|
||||
```
|
||||
LIBRARY_SEARCH_PATHS = $(PROJECT_DIR)/../target/release
|
||||
OTHER_LDFLAGS = -lquicproquo_ffi
|
||||
OTHER_LDFLAGS = -lquicprochat_ffi
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```swift
|
||||
import QuicProQuo
|
||||
import QuicProChat
|
||||
|
||||
let client = try QpqClient(
|
||||
server: "127.0.0.1:5001",
|
||||
@@ -88,9 +88,9 @@ do {
|
||||
|
||||
## Structure
|
||||
|
||||
- `Sources/CQuicProQuo/` -- C module map and FFI header
|
||||
- `Sources/QuicProQuo/QpqClient.swift` -- High-level Swift client
|
||||
- `Sources/QuicProQuo/QpqError.swift` -- Error types
|
||||
- `Sources/CQuicProChat/` -- C module map and FFI header
|
||||
- `Sources/QuicProChat/QpqClient.swift` -- High-level Swift client
|
||||
- `Sources/QuicProChat/QpqError.swift` -- Error types
|
||||
|
||||
## Cross-Compilation
|
||||
|
||||
@@ -98,7 +98,7 @@ For iOS devices, add the Rust target and build:
|
||||
|
||||
```sh
|
||||
rustup target add aarch64-apple-ios
|
||||
cargo build --release -p quicproquo-ffi --target aarch64-apple-ios
|
||||
cargo build --release -p quicprochat-ffi --target aarch64-apple-ios
|
||||
```
|
||||
|
||||
Copy the library to your Xcode project's framework search path.
|
||||
|
||||
5
sdks/swift/Sources/CQuicProChat/module.modulemap
Normal file
5
sdks/swift/Sources/CQuicProChat/module.modulemap
Normal file
@@ -0,0 +1,5 @@
|
||||
module CQuicProChat {
|
||||
header "quicprochat_ffi.h"
|
||||
link "quicprochat_ffi"
|
||||
export *
|
||||
}
|
||||
@@ -1,9 +1,9 @@
|
||||
// quicproquo_ffi.h — C header for libquicproquo_ffi.
|
||||
// quicprochat_ffi.h — C header for libquicprochat_ffi.
|
||||
//
|
||||
// Mirrors the extern "C" functions from crates/quicproquo-ffi/src/lib.rs.
|
||||
// Mirrors the extern "C" functions from crates/quicprochat-ffi/src/lib.rs.
|
||||
|
||||
#ifndef QUICPROQUO_FFI_H
|
||||
#define QUICPROQUO_FFI_H
|
||||
#ifndef QUICPROCHAT_FFI_H
|
||||
#define QUICPROCHAT_FFI_H
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
@@ -22,7 +22,7 @@ extern "C" {
|
||||
// Opaque handle type.
|
||||
typedef struct QpqHandle QpqHandle;
|
||||
|
||||
// Connect to a quicproquo server. Returns NULL on failure.
|
||||
// Connect to a quicprochat server. Returns NULL on failure.
|
||||
QpqHandle* qpq_connect(const char* server, const char* ca_cert, const char* server_name);
|
||||
|
||||
// Authenticate with OPAQUE credentials.
|
||||
@@ -49,4 +49,4 @@ void qpq_free_string(char* ptr);
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // QUICPROQUO_FFI_H
|
||||
#endif // QUICPROCHAT_FFI_H
|
||||
@@ -1,5 +0,0 @@
|
||||
module CQuicProQuo {
|
||||
header "quicproquo_ffi.h"
|
||||
link "quicproquo_ffi"
|
||||
export *
|
||||
}
|
||||
@@ -1,9 +1,9 @@
|
||||
import Foundation
|
||||
import CQuicProQuo
|
||||
import CQuicProChat
|
||||
|
||||
/// High-level quicproquo client for iOS/macOS.
|
||||
/// High-level quicprochat client for iOS/macOS.
|
||||
///
|
||||
/// Wraps ``libquicproquo_ffi`` to provide a Swift-native API for
|
||||
/// Wraps ``libquicprochat_ffi`` to provide a Swift-native API for
|
||||
/// connecting, authenticating, and messaging.
|
||||
///
|
||||
/// ```swift
|
||||
@@ -20,7 +20,7 @@ public final class QpqClient: @unchecked Sendable {
|
||||
private var handle: OpaquePointer?
|
||||
private let lock = NSLock()
|
||||
|
||||
/// Connect to a quicproquo server.
|
||||
/// Connect to a quicprochat server.
|
||||
///
|
||||
/// - Parameters:
|
||||
/// - server: Server address as ``host:port``.
|
||||
@@ -1,4 +1,4 @@
|
||||
/// Errors returned by the QuicProQuo SDK.
|
||||
/// Errors returned by the QuicProChat SDK.
|
||||
public enum QpqError: Error, Sendable, CustomStringConvertible {
|
||||
/// Connection to the server failed.
|
||||
case connectionFailed(String)
|
||||
Reference in New Issue
Block a user