# Key Facts - LastID Rust SDK

Project configuration, standards, and important reference information.

---

## Project Identity

* **Crate Name:** `lastid-sdk`
* **Version:** 0.1.0
* **Rust Edition:** 2024
* **MSRV:** 1.89
* **License:** MIT OR Apache-2.0
* **Repository:** https://github.com/LastID/lastid-rust-sdk
* **Documentation:** https://docs.rs/lastid-sdk

---

## Constitution Standards

* **Test Coverage:** 95% minimum (line and branch)
* **Linting:** clippy pedantic, nursery, cargo (zero warnings)
* **Unsafe Code:** `#![forbid(unsafe_code)]` enforced
* **File Limits:** Functions <50 lines, modules <500 lines

---

## Platform Targets

| Platform | Target Triple | Status |
|----------|--------------|--------|
| Linux x64 | `x86_64-unknown-linux-gnu` | Primary |
| macOS x64 | `x86_64-apple-darwin` | Supported |
| macOS ARM | `aarch64-apple-darwin` | Supported |
| Windows | `x86_64-pc-windows-msvc` | Supported |
| iOS | `aarch64-apple-ios` | Supported |
| Android | `aarch64-linux-android` | Supported |
| WASM | `wasm32-unknown-unknown` | Supported |

---

## Core Dependencies

| Dependency | Purpose | Platform |
|------------|---------|----------|
| `reqwest` | HTTP client | All (rustls native, fetch WASM) |
| `tokio` | Async runtime | Native only |
| `p256` | ECDSA/ES256 crypto | All |
| `jwt-simple` | DPoP proof generation | All |
| `mini-moka` | Cache | Native |
| `micro-moka` | Cache | WASM |
| `secrecy` + `zeroize` | Secret handling | All |

---

## IDP Integration

* **Default Endpoint:** `https://human.lastid.co`
* **Environment Variable:** `LASTID_ENDPOINT`
* **Config File:** `lastid.toml`
* **Trust Registry TTL:** 60 seconds

---

## Feature Flags

| Feature | Default | Description |
|---------|---------|-------------|
| `base-policy` | Yes | Base credential policy |
| `persona-policy` | No | Persona credential policy |
| `verified-email-policy` | No | Verified email policy |
| `verified-phone-policy` | No | Verified phone policy |
| `employment-policy` | No | Employment verification |
| `trust-policy` | No | Trust level verification |
| `age-proof-policy` | No | Age verification |
| `wasm` | No | WASM target support |
| `tracing` | No | Observability integration |
| `full` | No | All features enabled |

---

## Security Notes

**DO NOT store in this file:**
- API keys or secrets
- Private keys
- Production credentials
- PII or user data

**Secrets are managed via:**
- Environment variables
- Hardware security modules (where available)
- `secrecy::SecretString` in code
