> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sifr.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# SIFR-PACKAGE-0002: Missing or invalid sifr.toml package manifest.

> Missing or invalid sifr.toml package manifest.

`SIFR-PACKAGE-0002` belongs to the **Package management** diagnostic family. It means: missing or invalid sifr.toml package manifest.

## Why It Happens

Sifr package or workspace metadata violates the package model. Inspect `sifr.toml`, Cargo metadata, source roots, trust policy, archive contents, package selectors, or projection files as named by the diagnostic.

<Info>
  Use `sifr --explain SIFR-PACKAGE-0002` locally to see the renderer's exact message template and any machine-applicable suggestions for the compiler version you are running.
</Info>

## Erroneous Code

```toml theme={null}
[package]
name = "demo"
```

## How To Fix It

Repair the package manifest, workspace selection, projection files, archive rules, or publish options named by the diagnostic.

## Fixed Code

```toml theme={null}
[package]
name = "demo"
version = "0.1.0"

[sifr]
source-root = "src"
```

## Details

| Field                  | Value                                             |
| ---------------------- | ------------------------------------------------- |
| Code                   | `SIFR-PACKAGE-0002`                               |
| Family                 | `PACKAGE`                                         |
| Severity               | Error                                             |
| Stability              | stable                                            |
| Owner                  | `sifr_package::manifest::sifr`                    |
| Representative fixture | `crates/sifr_package/src/manifest/sifr.rs::tests` |

See the [Error Codes index](/diagnostics/error-codes) for the complete catalog.
