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#
[package]
name = "app"
version = "0.1.0"
effects = []fn main() uses time { time.sleep(1) }Fixed#
[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.