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
Dependencies
<0.5Task build:[test] {
}
>=0.5unit Build {
depends_on(Test)
}
<0.5Task build:[test, clean] {
}
>=0.5unit Build {
depends_on(Test, Clean)
}
Command Definitions
<0.5Task build {
lints;
}
cmddef lints {
}
>=0.5unit Build {
do(Lints)
}
unit Lints {
}
Pragma
<0.5#pragma build build
#pragma test test
>=0.5expose Build as build
expose Test as test
Exec
<0.5exec("cargo build --release");
~("cargo install --path .");
>=0.5exec(cargo build --release)
~(cargo install --path .)