~repos /tide-jsx

#rust#proc-macro#jsx

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

Tide + JSX


0f2ec10a Gal Schlezinger

6 years ago
pretty assertions
Cargo.lock CHANGED
@@ -1,5 +1,46 @@
1
1
  # This file is automatically @generated by Cargo.
2
2
  # It is not intended for manual editing.
3
+ [[package]]
4
+ name = "ansi_term"
5
+ version = "0.11.0"
6
+ source = "registry+https://github.com/rust-lang/crates.io-index"
7
+ dependencies = [
8
+ "winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)",
9
+ ]
10
+
11
+ [[package]]
12
+ name = "ctor"
13
+ version = "0.1.11"
14
+ source = "registry+https://github.com/rust-lang/crates.io-index"
15
+ dependencies = [
16
+ "quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)",
17
+ "syn 1.0.5 (registry+https://github.com/rust-lang/crates.io-index)",
18
+ ]
19
+
20
+ [[package]]
21
+ name = "difference"
22
+ version = "2.0.0"
23
+ source = "registry+https://github.com/rust-lang/crates.io-index"
24
+
25
+ [[package]]
26
+ name = "output_vt100"
27
+ version = "0.1.2"
28
+ source = "registry+https://github.com/rust-lang/crates.io-index"
29
+ dependencies = [
30
+ "winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)",
31
+ ]
32
+
33
+ [[package]]
34
+ name = "pretty_assertions"
35
+ version = "0.6.1"
36
+ source = "registry+https://github.com/rust-lang/crates.io-index"
37
+ dependencies = [
38
+ "ansi_term 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)",
39
+ "ctor 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)",
40
+ "difference 2.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
41
+ "output_vt100 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)",
42
+ ]
43
+
3
44
  [[package]]
4
45
  name = "proc-macro2"
5
46
  version = "1.0.3"
@@ -20,6 +61,7 @@ dependencies = [
20
61
  name = "render"
21
62
  version = "0.1.0"
22
63
  dependencies = [
64
+ "pretty_assertions 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)",
23
65
  "render_macros 0.1.0",
24
66
  ]
25
67
 
@@ -36,6 +78,7 @@ dependencies = [
36
78
  name = "render_tests"
37
79
  version = "0.1.0"
38
80
  dependencies = [
81
+ "pretty_assertions 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)",
39
82
  "render 0.1.0",
40
83
  ]
41
84
 
@@ -54,8 +97,35 @@ name = "unicode-xid"
54
97
  version = "0.2.0"
55
98
  source = "registry+https://github.com/rust-lang/crates.io-index"
56
99
 
100
+ [[package]]
101
+ name = "winapi"
102
+ version = "0.3.8"
103
+ source = "registry+https://github.com/rust-lang/crates.io-index"
104
+ dependencies = [
105
+ "winapi-i686-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
106
+ "winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
107
+ ]
108
+
109
+ [[package]]
110
+ name = "winapi-i686-pc-windows-gnu"
111
+ version = "0.4.0"
112
+ source = "registry+https://github.com/rust-lang/crates.io-index"
113
+
114
+ [[package]]
115
+ name = "winapi-x86_64-pc-windows-gnu"
116
+ version = "0.4.0"
117
+ source = "registry+https://github.com/rust-lang/crates.io-index"
118
+
57
119
  [metadata]
120
+ "checksum ansi_term 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ee49baf6cb617b853aa8d93bf420db2383fab46d314482ca2803b40d5fde979b"
121
+ "checksum ctor 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)" = "3e061727ebef83bbccac7c27b9a5ff9fd83094d34cb20f4005440a9562a27de7"
122
+ "checksum difference 2.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "524cbf6897b527295dff137cec09ecf3a05f4fddffd7dfcd1585403449e74198"
123
+ "checksum output_vt100 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "53cdc5b785b7a58c5aad8216b3dfa114df64b0b06ae6e1501cef91df2fbdf8f9"
124
+ "checksum pretty_assertions 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)" = "3f81e1644e1b54f5a68959a29aa86cde704219254669da328ecfdf6a1f09d427"
58
125
  "checksum proc-macro2 1.0.3 (registry+https://github.com/rust-lang/crates.io-index)" = "e98a83a9f9b331f54b924e68a66acb1bb35cb01fb0a23645139967abefb697e8"
59
126
  "checksum quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = "053a8c8bcc71fcce321828dc897a98ab9760bef03a4fc36693c231e5b3216cfe"
60
127
  "checksum syn 1.0.5 (registry+https://github.com/rust-lang/crates.io-index)" = "66850e97125af79138385e9b88339cbcd037e3f28ceab8c5ad98e64f0f1f80bf"
61
128
  "checksum unicode-xid 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "826e7639553986605ec5979c7dd957c7895e93eabed50ab2ffa7f6128a75097c"
129
+ "checksum winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)" = "8093091eeb260906a183e6ae1abdba2ef5ef2257a21801128899c3fc699229c6"
130
+ "checksum winapi-i686-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
131
+ "checksum winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
render/Cargo.toml CHANGED
@@ -8,3 +8,6 @@ edition = "2018"
8
8
 
9
9
  [dependencies]
10
10
  render_macros = { path = "../render_macros" }
11
+
12
+ [dev-dependencies]
13
+ pretty_assertions = "0.6"
render/src/fragment.rs CHANGED
@@ -5,6 +5,7 @@ use crate::Renderable;
5
5
  ///
6
6
  /// ```rust
7
7
  /// # #![feature(proc_macro_hygiene)]
8
+ /// # use pretty_assertions::assert_eq;
8
9
  /// # use render::html::HTML5Doctype;
9
10
  /// # use render_macros::html;
10
11
  /// # use render::fragment::Fragment;
render/src/html.rs CHANGED
@@ -4,6 +4,7 @@ use crate::Renderable;
4
4
  ///
5
5
  /// ```rust
6
6
  /// # #![feature(proc_macro_hygiene)]
7
+ /// # use pretty_assertions::assert_eq;
7
8
  /// # use render::html::HTML5Doctype;
8
9
  /// # use render::html;
9
10
  /// # use render::fragment::Fragment;
render/src/lib.rs CHANGED
@@ -5,6 +5,6 @@ mod simple_element;
5
5
  mod text_element;
6
6
 
7
7
  pub use fragment::Fragment;
8
- pub use renderable::Renderable;
9
8
  pub use render_macros::{html, rsx};
9
+ pub use renderable::Renderable;
10
10
  pub use simple_element::SimpleElement;
render_tests/Cargo.toml CHANGED
@@ -9,3 +9,7 @@ publish = false
9
9
 
10
10
  [dependencies]
11
11
  render = { path = "../render" }
12
+
13
+ [dev-dependencies]
14
+ pretty_assertions = "0.6"
15
+
render_tests/src/lib.rs CHANGED
@@ -1,7 +1,7 @@
1
1
  #![feature(proc_macro_hygiene)]
2
2
 
3
3
  use render::html::HTML5Doctype;
4
- use render::{html, rsx, Renderable, Fragment};
4
+ use render::{html, rsx, Fragment, Renderable};
5
5
 
6
6
  #[derive(Debug)]
7
7
  struct Hello<'a, T: Renderable> {