Skip to content

Migrate to 0.5

Due to a major change in August syntax between 0.4.3 and 0.5, this guide exists to show the conversions between the two.

Tasks

<0.5
Task build {

}
>=0.5
unit Build {

}

Dependencies

<0.5
Task build:[test] {

}
>=0.5
unit Build {
    depends_on(Test)
}
<0.5
Task build:[test, clean] {

}
>=0.5
unit Build {
    depends_on(Test, Clean)
}

Command Definitions

<0.5
Task build {
    lints;
}

cmddef lints {

}
>=0.5
unit Build {
    do(Lints)
}

unit Lints {

}

Pragma

<0.5
#pragma build build
#pragma test test
>=0.5
expose Build as build
expose Test as test

Exec

<0.5
exec("cargo build --release");
~("cargo install --path .");
>=0.5
exec(cargo build --release)
~(cargo install --path .)