1#![feature(extern_types)]
2#![feature(c_variadic)]
3#![feature(core_intrinsics)]
4#![feature(label_break_value)]
5#![feature(const_for)]
6#![feature(const_mut_refs)]
7#![feature(const_cell_into_inner)]
8#![feature(const_refs_to_cell)]
9
10mod acl;
11mod crc64;
12mod adlist;
13mod ae;
14mod anet;
15mod aof;
16mod bio;
17mod bitops;
18mod blocked;
19mod call_reply;
20mod childinfo;
21mod cli_common;
22mod cluster;
23mod commands;
24mod config;
25mod connection;
26mod crc16;
27mod crcspeed;
28mod db;
29mod debug;
30mod defrag;
31mod dict;
32mod endianconv;
33mod eval;
34mod evict;
35mod expire;
36mod function_lua;
37mod functions;
38mod geo;
39mod geohash;
40mod geohash_helper;
41mod hyperloglog;
42mod intset;
43mod latency;
44mod lazyfree;
45mod listpack;
46mod localtime;
47mod lolwut5;
48mod lolwut6;
49mod lolwut;
50mod lzf_c;
51mod lzf_d;
52mod memtest;
53mod module;
54mod monotonic;
55mod mt19937_64;
56mod multi;
57mod networking;
58mod notify;
59mod object;
60mod pqsort;
61mod pubsub;
62mod quicklist;
63mod rand;
64mod rax;
65mod rdb;
66mod redis_benchmark;
67mod redis_check_aof;
68mod redis_check_rdb;
69mod redis_cli;
70mod redisassert;
71mod release;
72mod replication;
73mod resp_parser;
74mod rio;
75mod script;
76mod script_lua;
77mod sds;
78mod sentinel;
79mod server;
80mod setcpuaffinity;
81mod setproctitle;
82mod sha1;
83mod sha256;
84mod siphash;
85mod slowlog;
86mod sort;
87mod sparkline;
88mod syncio;
89mod syscheck;
90mod t_hash;
91mod t_list;
92mod t_set;
93mod t_stream;
94mod t_string;
95mod t_zset;
96mod timeout;
97mod tls;
98mod tracking;
99mod util;
100mod ziplist;
101mod zipmap;
102mod zmalloc;
103
104pub use server::run_server;
106
107pub fn add(left: usize, right: usize) -> usize {
108 left + right
109}
110
111#[cfg(test)]
112mod tests {
113 use super::*;
114
115 #[test]
116 fn it_works() {
117 let result = add(2, 2);
118 assert_eq!(result, 4);
119 }
120}