問題一覧に戻る
中級Move開発
問題20: Move.tomlマニフェストの構造

Move.tomlマニフェストファイルの構造について学びます。このファイルには、パッケージのメタデータ、依存関係、およびMoveパッケージで使用されるアドレスが含まれています。各セクションを理解することは、Moveプロジェクトを管理する上で不可欠です。

# パッケージメタデータセクション
[]
name = "my_first_package"
edition = "2024.beta"

# パッケージに必要な依存関係
[]
# For remote import, use the { git = "...", subdir = "...", rev = "..." }.
# MyRemotePackage = { git = "https://some.remote/host.git", subdir = "remote/path", rev = "main" }

# パッケージで使用される名前付きアドレス
[]
my_first_package = "0x0"

# テストと開発用の依存関係
[]
# The dev-dependencies section allows overriding dependencies for --test and --dev modes.

# テストと開発用のアドレス
[]
# The dev-addresses section allows overwriting named addresses for the --test and --dev modes.