# Cargo.toml validator with line errors

**Use case:** 

Validate Cargo.toml manifests and return syntax status, error messages, and line numbers for Rust CI workflows.

## Input

```json
{
  "documents": [
    "[package]\nname = \"my-rust-app\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n[dependencies]\nserde = { version = \"1.0\", features = [\"derive\"] }\ntokio = { version = \"1\", features = [\"full\"] }"
  ],
  "urls": [],
  "operation": "validate",
  "inputFormat": "toml",
  "outputFormat": "json",
  "jsonIndent": 2,
  "stopOnError": false,
  "includeOriginal": false
}
```

## Output

```json
{
  "index": {
    "label": "#",
    "format": "number"
  },
  "source": {
    "label": "Source",
    "format": "text"
  },
  "inputFormat": {
    "label": "Format",
    "format": "text"
  },
  "isValid": {
    "label": "Valid",
    "format": "boolean"
  },
  "errorMessage": {
    "label": "Error",
    "format": "text"
  },
  "errorLine": {
    "label": "Line",
    "format": "number"
  },
  "outputFormat": {
    "label": "Output Format",
    "format": "text"
  },
  "convertedContent": {
    "label": "Converted Content",
    "format": "text"
  }
}
```

## About this Actor

This example demonstrates how to use [TOML Validator & Converter](https://apify.com/automation-lab/toml-validator) with a specific input configuration. Visit the [Actor detail page](https://apify.com/automation-lab/toml-validator) to learn more, explore other use cases, and run it yourself.