crates.io · Schema

crates.io Sparse Index Entry

Schema for a single newline-delimited JSON record returned by the crates.io sparse index. One record per published version of a crate.

RustPackage RegistryCratesCargoOpen-SourceDeveloper ToolsRust Foundation

Properties

Name Type Description
name string Crate name.
vers string Semver version string.
deps array
cksum string SHA-256 of the .crate tarball, lowercase hex.
features object
features2 object Second feature map introduced with index v2 for namespaced and weak-dep features.
yanked boolean
links string
v integer Index format version, currently 1 or 2.
rust_version string MSRV declared in Cargo.toml.
View JSON Schema on GitHub

JSON Schema

crates-io-index-entry-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://api-evangelist.com/schemas/crates-io/crates-io-index-entry-schema.json",
  "title": "crates.io Sparse Index Entry",
  "description": "Schema for a single newline-delimited JSON record returned by the crates.io sparse index. One record per published version of a crate.",
  "type": "object",
  "required": ["name", "vers", "deps", "cksum", "features", "yanked"],
  "properties": {
    "name": { "type": "string", "description": "Crate name." },
    "vers": { "type": "string", "description": "Semver version string." },
    "deps": {
      "type": "array",
      "items": { "$ref": "#/definitions/Dependency" }
    },
    "cksum": {
      "type": "string",
      "description": "SHA-256 of the .crate tarball, lowercase hex.",
      "pattern": "^[0-9a-f]{64}$"
    },
    "features": {
      "type": "object",
      "additionalProperties": {
        "type": "array",
        "items": { "type": "string" }
      }
    },
    "features2": {
      "type": "object",
      "description": "Second feature map introduced with index v2 for namespaced and weak-dep features.",
      "additionalProperties": {
        "type": "array",
        "items": { "type": "string" }
      }
    },
    "yanked": { "type": "boolean" },
    "links": { "type": "string", "nullable": true },
    "v": { "type": "integer", "description": "Index format version, currently 1 or 2." },
    "rust_version": { "type": "string", "nullable": true, "description": "MSRV declared in Cargo.toml." }
  },
  "definitions": {
    "Dependency": {
      "type": "object",
      "required": ["name", "req"],
      "properties": {
        "name": { "type": "string" },
        "req": { "type": "string", "description": "Semver requirement." },
        "features": {
          "type": "array",
          "items": { "type": "string" }
        },
        "optional": { "type": "boolean" },
        "default_features": { "type": "boolean" },
        "target": { "type": "string", "nullable": true },
        "kind": { "type": "string", "enum": ["normal", "build", "dev"] },
        "registry": { "type": "string", "nullable": true },
        "package": { "type": "string", "nullable": true }
      }
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/crates-io-index-entry"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.