Crates.io | rustle_cli |
lib.rs | rustle_cli |
version | 0.1.3 |
source | src |
created_at | 2022-10-25 13:15:03.777816 |
updated_at | 2022-11-20 19:07:14.698573 |
description | The CLI for the Svelte compiler, rewritten in Rust. |
homepage | https://github.com/pintariching/rustle |
repository | https://github.com/pintariching/rustle |
max_upload_size | |
id | 696905 |
size | 78,278 |
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