{"record":{"id":"f8afd560afa19d36","repo":"BoundaryML/baml","slug":"path-dependencies-is-not-supported-in-a-project-manifest-yet","errorCode":null,"errorMessage":"{path}: `[dependencies]` is not supported in a project manifest yet: package imports are pending a design pass. Remove the table; a project reaches the standard library implicitly.","messagePattern":"(.+?): `\\[dependencies\\]` is not supported in a project manifest yet: package imports are pending a design pass\\. Remove the table; a project reaches the standard library implicitly\\.","errorType":"validation","errorClass":"ManifestError","httpStatus":null,"severity":"error","filePath":"baml_language/crates/baml_db/src/manifest.rs","lineNumber":191,"sourceCode":"}\n\n/// Parse `baml.toml` text into the typed manifest.\npub fn parse(content: &str) -> Result<BamlToml, toml::de::Error> {\n    toml::from_str(content)\n}\n\n/// Why a manifest's `[package].name` could not be resolved.\n#[derive(Debug, Clone, PartialEq, Eq, thiserror::Error)]\npub enum ManifestError {\n    #[error(\n        \"{path}: missing `[package]` table.\\nAdd:\\n\\n    [package]\\n    name = \\\"<your-project-name>\\\"\\n\"\n    )]\n    MissingPackageTable { path: std::path::PathBuf },\n    #[error(\"{path}: `[package]` is missing `name = \\\"<your-project-name>\\\"`.\")]\n    MissingPackageName { path: std::path::PathBuf },\n    #[error(\"{path}: `[package].name` cannot be empty.\")]\n    EmptyPackageName { path: std::path::PathBuf },\n    #[error(\n        \"{path}: `[dependencies]` is not supported in a project manifest yet: package imports are \\\n         pending a design pass. Remove the table; a project reaches the standard library implicitly.\"\n    )]\n    DependenciesUnsupported { path: std::path::PathBuf },\n    #[error(\n        \"{path}: `[package].prelude` is reserved for the standard library's own manifests. Remove it.\"\n    )]\n    PreludeUnsupported { path: std::path::PathBuf },\n}\n\n/// Refuse the manifest tables only the standard library's own manifests may\n/// carry. Package imports are not user surface area until they get a design\n/// pass, so a project manifest with `[dependencies]` (or the stdlib-only\n/// `[package].prelude`) is an error, not a silently ignored table.\npub fn reject_stdlib_only_tables(\n    manifest: &BamlToml,\n    toml_path: &std::path::Path,\n) -> Result<(), ManifestError> {","sourceCodeStart":173,"sourceCodeEnd":209,"githubUrl":"https://github.com/BoundaryML/baml/blob/bd85ce9dee1463ff04d27efd20531013a4ff46c1/baml_language/crates/baml_db/src/manifest.rs#L173-L209","documentation":"A `ManifestError` variant. The manifest contains a `[dependencies]` table, which project manifests do not support yet: package imports are pending a design pass. Projects reach the standard library implicitly and cannot declare external dependencies for now.","triggerScenarios":"Loading a project manifest that includes any `[dependencies]` table (with or without entries), e.g. `baml.toml` with `[dependencies]\\nfoo = \"1.0\"`.","commonSituations":"Copying dependency syntax from Cargo/npm conventions into a BAML project manifest; attempting to import another user package before the package-imports feature ships.","solutions":["Remove the `[dependencies]` table from the manifest; the standard library is available implicitly.","Do not attempt to declare cross-package dependencies until package imports are designed.","If you need shared code, keep it within the single project for now."],"exampleFix":"// before\n[package]\nname = \"my-project\"\n\n[dependencies]\nfoo = \"1.0\"\n// after\n[package]\nname = \"my-project\"","handlingStrategy":"try-catch","validationCode":"fn manifest_has_no_dependencies(raw: &str) -> bool {\n    raw.parse::<toml::Value>().map(|v| v.get(\"dependencies\").is_none()).unwrap_or(true)\n}","typeGuard":null,"tryCatchPattern":"match load_manifest(path) {\n    Err(ManifestError::DependenciesUnsupported { path }) => eprintln!(\"{path:?}: remove [dependencies]; stdlib is implicit\"),\n    Err(e) => eprintln!(\"manifest error: {e}\"),\n    Ok(m) => m,\n}","preventionTips":["Do not copy [dependencies] conventions from Cargo/npm into baml.toml.","Document that the standard library is available implicitly.","Strip or warn on [dependencies] tables in manifest generators."],"tags":["toml","manifest","unsupported-feature","config"],"backgroundTag":"unsupported-operation","analyzedSha":"bd85ce9dee1463ff04d27efd20531013a4ff46c1","analyzedAt":"2026-09-12T03:38:25.718Z","contentChangedAt":"2026-09-12T03:38:25.718Z","schemaVersion":2},"datasetVersion":"2026-09-14T11:17:12.474Z"}