Configuring Gno Projects
Gno supports package configuration through a metadata file called gnomod.toml.
The gnomod.toml file is typically generated using:
gno mod init <pkgpath>
It enables advanced control over how your package is interpreted, deployed, and used on-chain.
Note: Previously, package configuration was done via the
gno.modfile - similar to how Go projects are configured with ago.modfile. If you have a project with agno.modfile, you can use thegno mod tidysubcommand to auto-convert it to agnomod.toml.
gnomod.toml
This file defines metadata for your Gno package and can include the following fields:
module
Defines the canonical package path (e.g. gno.land/r/demo/myapp). This must
match the path used in the addpkg transaction during deployment.
gno
Specifies the Gno language version. Currently, only version "0.9" is supported.