tide-jsx v0.4.0

#rust#proc-macro#jsx

git clone https://git.pyrossh.dev/tide-jsx

Tide + JSX


78e2b8a — Peter John 2022-09-17T14:53:54+05:30
rustt-2021

Generated files not shown: Cargo.lock

render/Cargo.toml CHANGED
@@ -2,7 +2,7 @@
2
2
  name = "render"
3
3
  version = "0.3.1"
4
4
  authors = ["Gal Schlezinger <[email protected]>"]
5
- edition = "2018"
5
+ edition = "2021"
6
6
  description = "A safe and simple template engine with the ergonomics of JSX"
7
7
  readme = "../README.md"
8
8
  repository = "https://github.com/Schniz/render.rs"
render_macros/Cargo.toml CHANGED
@@ -2,7 +2,7 @@
2
2
  name = "render_macros"
3
3
  version = "0.3.1"
4
4
  authors = ["Gal Schlezinger <[email protected]>"]
5
- edition = "2018"
5
+ edition = "2021"
6
6
  description = "The macros needed for `render`"
7
7
  readme = "../README.md"
8
8
  repository = "https://github.com/Schniz/render.rs"
render_macros/src/function_component.rs CHANGED
@@ -42,9 +42,9 @@ pub fn create_function_component(f: syn::ItemFn) -> TokenStream {
42
42
 
43
43
  TokenStream::from(quote! {
44
44
  #[derive(Debug)]
45
- #vis struct #struct_name#impl_generics #inputs_block
45
+ #vis struct #struct_name #impl_generics #inputs_block
46
46
 
47
- impl#impl_generics ::render::Render for #struct_name #ty_generics #where_clause {
47
+ impl #impl_generics ::render::Render for #struct_name #ty_generics #where_clause {
48
48
  fn render_into<W: std::fmt::Write>(self, w: &mut W) -> std::fmt::Result {
49
49
  let result = {
50
50
  #inputs_reading
render_tests/Cargo.toml CHANGED
@@ -2,12 +2,10 @@
2
2
  name = "render_tests"
3
3
  version = "0.3.1"
4
4
  authors = ["Gal Schlezinger <[email protected]>"]
5
- edition = "2018"
5
+ edition = "2021"
6
6
  publish = false
7
7
  repository = "https://github.com/Schniz/render.rs"
8
8
 
9
- # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
10
-
11
9
  [dependencies]
12
10
  render = { path = "../render" }
13
11
 
render_tests/{ui/fail → src}/unclosed-tag.rs RENAMED
@@ -1,7 +1,5 @@
1
- use render::html;
2
-
3
1
  fn main() {
4
- html! {
2
+ render::html! {
5
3
  <ul>
6
4
  <li>
7
5
  </ul>