@@ -8,8 +8,7 @@ tags: [rust]
8
8
9
9
## Versions
10
10
11
- - 1.60 (` edition = "2021" ` )
12
- - 1.62 (` edition = "2021" ` )
11
+ - 1.66 (` edition = "2021" ` )
13
12
14
13
The following profiles are used to get decent performance in tests:
15
14
@@ -27,7 +26,7 @@ opt-level = 3
27
26
28
27
## Test Frameworks
29
28
30
- Rust kata uses builtin ` #[test] ` .
29
+ Rust kata use the built-in Rust support for testing, with test functions marked with ` #[test] ` .
31
30
32
31
## Example
33
32
@@ -37,7 +36,7 @@ Solution and tests are concatenated to `src/lib.rs`.
37
36
pub fn add (x : i32 , y : i32 ) -> i32 { x + y }
38
37
```
39
38
40
- All the tests _ should_ be in a child module ` tests ` :
39
+ All the tests _ should_ be in a child module named ` tests ` :
41
40
``` rust
42
41
#[cfg(test)]
43
42
mod tests {
@@ -62,62 +61,33 @@ See the unit testing chapter in [the book](https://doc.rust-lang.org/book/ch11-0
62
61
63
62
## Packages
64
63
65
- ### 1.60
64
+ ### 1.66
66
65
67
66
``` toml
68
67
[dependencies ]
69
- bit-set = " 0.5.2"
70
- chrono = " 0.4.19"
71
- either = " 1.6.1"
72
- fancy-regex = " 0.8.0"
73
- futures = " 0.3.21"
74
- im = " 15.0.0"
75
- itertools = " 0.10.3"
76
- lazy_static = " 1.4.0"
77
- num = { version = " 0.4.0" , features = [" rand" ] }
78
- once_cell = " 1.10.0"
79
- rand = " 0.8.5"
80
- regex = " 1.5.5"
81
- serde = { version = " 1.0.136" , features = [" derive" ] }
82
- serde_json = " 1.0.79"
83
- text_io = " 0.1.10"
84
- thiserror = " 1.0.30"
85
- tokio = { version = " 1.17.0" , features = [" full" ] }
86
- tokio-util = { version = " 0.7.1" , features = [" full" ] }
87
-
88
- [dev-dependencies ]
89
- quickcheck = " 1.0.3"
90
- quickcheck_macros = " 1.0.0"
91
- float_eq = " 0.7.0"
92
- ```
93
-
94
- ### 1.62
95
-
96
- ``` toml
97
- [dependencies ]
98
- bit-set = " 0.5.2"
99
- chrono = " 0.4.19"
100
- either = " 1.7.0"
68
+ bit-set = " 0.5.3"
69
+ chrono = " 0.4.23"
70
+ either = " 1.8.0"
101
71
fancy-regex = " 0.10.0"
102
- futures = " 0.3.21 "
72
+ futures = " 0.3.25 "
103
73
im = " 15.1.0"
104
- itertools = " 0.10.3 "
74
+ itertools = " 0.10.5 "
105
75
lazy_static = " 1.4.0"
106
76
num = { version = " 0.4.0" , features = [" rand" ] }
107
- once_cell = " 1.13 .0"
77
+ once_cell = " 1.16 .0"
108
78
rand = " 0.8.5"
109
- regex = " 1.6 .0"
110
- serde = { version = " 1.0.139 " , features = [" derive" ] }
111
- serde_json = " 1.0.82 "
112
- text_io = " 0.1.10 "
113
- thiserror = " 1.0.31 "
114
- tokio = { version = " 1.20 .0" , features = [" full" ] }
115
- tokio-util = { version = " 0.7.3 " , features = [" full" ] }
79
+ regex = " 1.7 .0"
80
+ serde = { version = " 1.0.150 " , features = [" derive" ] }
81
+ serde_json = " 1.0.89 "
82
+ text_io = " 0.1.12 "
83
+ thiserror = " 1.0.37 "
84
+ tokio = { version = " 1.23 .0" , features = [" full" ] }
85
+ tokio-util = { version = " 0.7.4 " , features = [" full" ] }
116
86
117
87
[dev-dependencies ]
118
88
quickcheck = " 1.0.3"
119
89
quickcheck_macros = " 1.0.0"
120
- float_eq = " 1.0.0 "
90
+ float_eq = " 1.0.1 "
121
91
```
122
92
123
93
## Services
0 commit comments