Learn on scratch — rust language, webassembly, yew
No config, trunk, simple example
I will start with the documentation.
The yew framework documentation shows how to prepare a project step by step.
In the next step we will convert the application to no config and use trunk.
Installing the trunk program
cargo install trunk
cargo install wasm-bindgen-cli
Deleting the ‘static’ directory
rm -r ./static
create index.html in directory project
vi index.html<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Yew • Counter</title>
</head>
<body></body>
</html>
next steps
trunk build
trunk clean
trunk config show
trunk watch
We make few changes and see how these changes are available immediately.
Conclusion
It seems to me that this is a good direction for creating small applications that run faster and are smaller than java-script programs after a certain code size threshold.