Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Guides migrating Makepad 1.x to 2.0, covering live_design→script_mod syntax, derive macros, lifecycle hook renames, and runtime update APIs.
27% 100%+73 ptsof test cases passed
Passed 22 of 22 test cases with the skill, and 6 of 22 without it.
3 of 3 safety checks passed
Not used yet
Version: makepad-widgets (dev branch) | Last Updated: 2026-03-03
Makepad 2.0 is a fundamental architecture shift from compile-time static DSL to runtime scripting. Migration involves syntax changes, derive macro updates, lifecycle method renames, and new patterns for state management.
Refer to the local files for detailed documentation:
./references/migration-guide.md - Complete migration reference with examples| Makepad 1.x | Makepad 2.0 | Notes |
|---|---|---|
live_design! { ... } | script_mod! { ... } | Core macro change |
<Widget> { ... } | Widget{ ... } | No angle brackets |
Key = Value | Key: value | Colon, not equals |
(THEME_COLOR) | theme.color_* | Theme namespace |
live_body: { ... } | body +: { ... } | Merge operator |
#[derive(Live)] | #[derive(Script)] | Derive macro |
#[derive(LiveHook)] | #[derive(ScriptHook)] | Lifecycle hooks |
#[derive(Widget)] | #[derive(Widget)] | Unchanged |
before_apply() | on_before_apply() | Method rename |
after_apply() | on_after_apply() | Method rename |
apply_over!() | script_apply_eval!() | Runtime updates |
DefaultNone | Default | Enum default |
LiveRegister | WidgetRegister | Widget registration |
live_register() | register_widget(vm) | Registration method |
LiveId | LiveId | Unchanged |
Next to this one in the catalogue, plus more from the same author.