Pontifex
Pontifex (noun): Originally meaning "bridge-builder" in Latin
Pontifex is a Rust library for building and interacting with AWS Nitro enclaves.
Usage
Common Types
Define request/response pairs that both client and server use:
use ;
use Request;
;
Server
use Router;
use Arc;
const ENCLAVE_PORT: u32 = 1000;
// Stateless server
let router = new
.;
// Or with state
// ⚠️ Warning: Remember to wrap expensive states with Arc
let router = with_state
.;
router.serve.await?;
Client
use ;
const ENCLAVE_CID: u32 = 100;
const ENCLAVE_PORT: u32 = 1000;
let connection = new;
let response: HealthStatus = send.await?;
Example
See the example directory for a complete working example.
License
This project is licensed under the MIT License. See the LICENSE file for details.