File tree Expand file tree Collapse file tree 4 files changed +27
-3
lines changed Expand file tree Collapse file tree 4 files changed +27
-3
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,3 @@ Cargo.lock
99
1010# These are backup files generated by rustfmt
1111** /* .rs.bk
12-
13- # MSVC Windows builds of rustc generate these, which store debugging information
14- * .pdb
Original file line number Diff line number Diff line change 1+ [package ]
2+ name = " mlua-stdlib"
3+ description = " Standard library bindings for mlua"
4+ version = " 0.0.0"
5+ edition = " 2021"
6+ license = " MIT"
7+
8+ # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
9+
10+ [dependencies ]
Original file line number Diff line number Diff line change 1+ # Standard library bindings for mlua
2+
3+ Reserved for future work
Original file line number Diff line number Diff line change 1+ pub fn add ( left : usize , right : usize ) -> usize {
2+ left + right
3+ }
4+
5+ #[ cfg( test) ]
6+ mod tests {
7+ use super :: * ;
8+
9+ #[ test]
10+ fn it_works ( ) {
11+ let result = add ( 2 , 2 ) ;
12+ assert_eq ! ( result, 4 ) ;
13+ }
14+ }
You can’t perform that action at this time.
0 commit comments