rustio-core 2.0.5

Runtime core for RustIO: HTTP server, router, middleware, ORM, admin, and migrations.
Documentation
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>RustIO</title>
<!--
  Default public landing page. Override by editing templates/home.html or
  your project's root handler. Admin lives at /admin (framework-owned).
-->
<style>
  *, *::before, *::after { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, sans-serif;
    background: #f9fafb;
    color: #111827;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }
  a { color: #005293; text-decoration: none; }
  a:hover { color: #003d6e; text-decoration: underline; }
  code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
    color: #374151;
  }
  header {
    padding: 20px 32px;
    border-bottom: 1px solid #e5e7eb;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
  .brand {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .brand-mark {
    width: 32px; height: 32px;
    background: #111827;
    color: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 15px;
  }
  .brand-name {
    font-weight: 500;
    font-size: 16px;
  }
  .version {
    font-size: 13px;
    color: #6b7280;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    background: #f3f4f6;
    padding: 3px 8px;
    border-radius: 4px;
  }
  .top-right { display: flex; align-items: center; gap: 16px; }
  .top-right a { color: #374151; font-weight: 500; font-size: 15px; }
  .top-right a:hover { color: #111827; }

  main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
  }
  .hero {
    max-width: 640px;
    text-align: center;
  }
  .hero h1 {
    margin: 0 0 12px;
    font-size: 34px;
    font-weight: 600;
    line-height: 1.2;
    color: #111827;
  }
  .hero p {
    margin: 0 0 32px;
    color: #374151;
    font-size: 17px;
    line-height: 1.55;
  }
  .actions {
    display: inline-flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
  }
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid transparent;
    line-height: 1.2;
    white-space: nowrap;
    transition: background 0.12s, border-color 0.12s, color 0.12s;
  }
  .btn:hover { text-decoration: none; }
  .btn-primary {
    background: #005293;
    border-color: #005293;
    color: white;
  }
  .btn-primary:hover {
    background: #003d6e;
    border-color: #003d6e;
    color: white;
  }
  .btn-secondary {
    background: white;
    border-color: #d1d5db;
    color: #111827;
  }
  .btn-secondary:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #111827;
  }

  .panel {
    margin: 48px auto 0;
    max-width: 820px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 28px 32px;
  }
  .panel h2 {
    margin: 0 0 12px;
    font-size: 17px;
    font-weight: 500;
    color: #111827;
  }
  .panel p {
    margin: 0 0 8px;
    color: #374151;
    font-size: 15px;
    line-height: 1.6;
  }
  .panel p:last-child { margin-bottom: 0; }
  .panel ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
  }
  .panel li {
    padding: 12px 14px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    color: #374151;
  }
  .panel li strong { color: #111827; font-weight: 500; }

  footer {
    padding: 20px 32px;
    border-top: 1px solid #e5e7eb;
    background: white;
    color: #6b7280;
    font-size: 13px;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
  }
  footer a { color: #6b7280; }
  footer a:hover { color: #111827; }

  @media (max-width: 640px) {
    header { padding: 16px 20px; }
    main { padding: 40px 20px; }
    .hero h1 { font-size: 28px; }
  }
</style>
</head>
<body>
<header>
  <div class="brand">
    <span class="brand-mark">R</span>
    <span class="brand-name">RustIO</span>
    <span class="version">v0.4</span>
  </div>
  <nav class="top-right">
    <a href="/admin">Admin</a>
    <a href="/docs">Docs</a>
  </nav>
</header>
<main>
  <div class="hero">
    <h1>Your server is running.</h1>
    <p>
      This is the default landing page served by <code>rustio-core</code>.
      Replace it by editing <code>templates/home.html</code> or your
      project's root handler.
    </p>
    <div class="actions">
      <a class="btn btn-primary" href="/admin">Open the admin</a>
      <a class="btn btn-secondary" href="/docs">Read the docs</a>
    </div>
  </div>
  <section class="panel">
    <h2>What's next</h2>
    <ul>
      <li><strong>Models:</strong> scaffold with <code>rustio new app &lt;name&gt;</code>, then add fields in <code>apps/&lt;name&gt;/models.rs</code>.</li>
      <li><strong>Migrations:</strong> <code>rustio migrate generate add_field</code> then <code>rustio migrate apply</code>.</li>
      <li><strong>Users:</strong> create an admin with <code>rustio user create --email you@example.com --role admin</code>.</li>
      <li><strong>Schema export:</strong> <code>rustio schema</code> writes <code>rustio.schema.json</code>.</li>
    </ul>
  </section>
</main>
<footer>
  <span>Public pages live under <code>templates/</code> and <code>static/</code>.</span>
  <span>Admin under <code>/admin</code> is framework-owned.</span>
</footer>
</body>
</html>