Crates.io | rustle |
lib.rs | rustle |
version | 0.1.5 |
source | src |
created_at | 2015-07-12 08:48:21.020936 |
updated_at | 2022-11-20 19:04:19.001039 |
description | The Svelte compiler, rewritten in Rust. |
homepage | https://github.com/pintariching/rustle |
repository | https://github.com/pintariching/rustle |
max_upload_size | |
id | 2586 |
size | 102,510 |
The Svelte compiler, rewritten in Rust.
This projects aims to make Svelte
usable without Node.js
and make the compiler blazingly fast.
This is still a big work in progress. Only a few parts of Svelte are working now and the CLI tool still needs some work.
To install with cargo, run cargo install rustle_cli"
to install the alpha version of the CLI.
Run rustle_cli app.rustle
to generate an app.js
file. You can optionally specify a different output file with the -o
flag.
You can also specify a directory for example rustle_cli src
to parse all the files in that directory.
For debugging, you can print the generated AST with the -a
or --ast
flag and pretty print it with -p
.
A lot of features still need to be implemented before rustle
is ready for use. Check the examples folder or rustle/tests
to get a better look at currently is supported:
Feature roadmap:
Dynamic attributes ({class} instead of class={class})
Styling (<style></style>)
Nested components
HTML tags ({@html htmlString})
Reactivity
Props
Logic
Events
Bindings
Lifecycle
Stores
Motion
Transitions
Animations
Easing
Actions
Components
Special elements
Named exports
@debug tag
This project is licensed under the MIT License - see the LICENSE.md file for details