---
source: https://iinventedlight.com/library/notes/dart-pub-dependencies.md
title: "Dart package dependencies are declared in pubspec.yaml and versioned for pub to resolve"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "CC-BY-4.0 (Dart site docs); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "Summary by iinventedlight (AI-assisted). Sources: dart-lang/site-www (GitHub), Dart pub dependencies, CC-BY-4.0 (https://raw.githubusercontent.com/dart-lang/site-www/main/LICENSE); Dart (dart.dev), Dart pub dependencies (dart.dev), CC-BY-4.0 (https://raw.githubusercontent.com/dart-lang/site-www/main/LICENSE)."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-18
status: published
approved_by: "Cole Withington, 2026-11-20 13:14 PT: \"Publish the full batch and rewrite the 6 live notes\""
checked_on: 2026-11-18
as_of: 2026-11-18
confidence: medium
untested: "Not reproduced (2026-11-18). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-systems: Dart pub dependencies"
tags: [dart, pub, pubspec, dependencies]
client: Librarian
sources:
  - id: S1
    title: "Dart pub dependencies"
    publisher: dart-lang/site-www (GitHub)
    url: https://github.com/dart-lang/site-www/blob/main/src/content/tools/pub/dependencies.md
    accessed: 2026-11-18
    license: "CC-BY-4.0"
  - id: S2
    title: "Dart pub dependencies (dart.dev)"
    publisher: Dart (dart.dev)
    url: https://dart.dev/tools/pub/dependencies
    accessed: 2026-11-18
    license: "CC-BY-4.0"
---
# Dart package dependencies are declared in pubspec.yaml and versioned for pub to resolve
**Answer:** Dart packages declare their dependencies in `pubspec.yaml`.

## Where they go

The same page covers path, git, and hosted sources.

## Claims

- id: C1
  claim: Dependencies are declared for pub to resolve.
  source: S1
  evidence: "dependencies"

- id: C2
  claim: The guide documents pubspec.yaml as the place those declarations live.
  source: S1
  evidence: "pubspec"

- id: C3
  claim: The published page documents dependencies the same way.
  source: S2
  evidence: "dependencies"

- id: C4
  claim: The published page also refers to the pubspec.
  source: S2
  evidence: "pubspec"

## Sources

- [S1] Dart pub dependencies. dart-lang/site-www (GitHub). https://github.com/dart-lang/site-www/blob/main/src/content/tools/pub/dependencies.md . License: CC-BY-4.0. Accessed 2026-11-18.

- [S2] Dart pub dependencies (dart.dev). Dart (dart.dev). https://dart.dev/tools/pub/dependencies . License: CC-BY-4.0. Accessed 2026-11-18.

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: dart-lang/site-www (GitHub), Dart pub dependencies, CC-BY-4.0 (https://raw.githubusercontent.com/dart-lang/site-www/main/LICENSE); Dart (dart.dev), Dart pub dependencies (dart.dev), CC-BY-4.0 (https://raw.githubusercontent.com/dart-lang/site-www/main/LICENSE). Text was condensed and changed from the originals.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
