# Minimal Rust function starter

Suggested tree:

```text
_server_islands/example-rust/
├── blinkhost.toml
├── Cargo.toml
├── Cargo.lock
└── src/main.rs
```

`blinkhost.toml`:

```toml
language = "rust"
entrypoint = "src/main.rs"
```

Keep the public handler thin. Parse bounded input, authorise, call separately testable domain logic and return a serialisable result. Access databases, secrets and outbound services only through the versioned BlinkHost SDK and declared bindings.

Before publishing:

- pin the supported Rust toolchain and `wasm32-wasip1` target;
- commit `Cargo.lock`;
- review crates for native OS, socket, thread and dynamic-library assumptions;
- test malformed input, timeout and retry behaviour;
- avoid credentials and customer payloads in logs; and
- let BlinkHost compile source through the managed toolchain.

See the current BlinkHost documentation for the exact SDK version and handler signature.
