Error codes

E0413: effect not allowed by the package's raft.toml

In a terminal: auk explain E0413 prints this page.

On this page

A package's raft.toml lists in [package] effects the most its code may use. A function uses an effect outside that ceiling. This lets you see, and limit, what a package can do before depending on it.

Wrong#

toml
[package]
name = "app"
version = "0.1.0"
effects = []
auk
fn main() uses time { time.sleep(1) }

Fixed#

toml
[package]
name = "app"
version = "0.1.0"
effects = ["time"]

Common causes#

  • A new effect used in a package: add it to effects (a visible, reviewable change).
  • A dependency that started using an effect your manifest doesn't allow it.

Stuck on a word? Try the glossary. Got a compiler error? Look up its code. Improve this page