ddnet/src/engine/server
heinrich5991 dcd76fd3e1 Add support for Rust code in DDNet
The glue is done using the [cxx crate](https://cxx.rs/) on the Rust
side.

As a proof-of-concept, only a small console command (`rust_version`)
printing the currently used Rust version was added.

You can generate and open the Rust documentation using
`DDNET_TEST_NO_LINK=1 cargo doc --open`.

You can run the Rust tests using `cmake --build <build dir> --target
run_rust_tests`, they're automatically included in the `run_tests`
target as well.

Rust tests don't work on Windows in debug mode on Windows because Rust
cannot currently link with the debug version of the C stdlib on Windows:
https://github.com/rust-lang/rust/issues/39016.

---

The stuff in `src/rust-bridge` is generated using
```
cxxbridge src/engine/shared/rust_version.rs --output src/rust-bridge/engine/shared/rust_version.cpp --output src/rust-bridge/engine/shared/rust_version.h
cxxbridge src/engine/console.rs --output src/rust-bridge/cpp/console.cpp --output src/rust-bridge/cpp/console.h
```
2022-10-19 23:46:06 +02:00
..
databases Add sv_sql_bindaddr (fixes #5830) 2022-09-13 17:09:53 +02:00
antibot.cpp Organize engine-server includes 2022-06-17 20:32:56 +02:00
antibot.h Mark virtual function as override using a script: 2022-05-17 23:47:32 +02:00
authmanager.cpp Port some code to str_copy() template 2022-07-09 19:40:58 +03:00
authmanager.h Use std::vector<CKey> instead of array 2022-05-27 16:31:18 +02:00
main.cpp Add support for Rust code in DDNet 2022-10-19 23:46:06 +02:00
name_ban.cpp Port some code to str_copy() template 2022-07-09 19:40:58 +03:00
name_ban.h Port some code to str_copy() template 2022-07-09 19:40:58 +03:00
register.cpp Stop server if started with old curl and incompatible sv_register 2022-09-22 00:09:02 +02:00
register.h Explicitly delete game server from list on shutdown 2022-06-03 11:27:47 +02:00
server.cpp Add support for Rust code in DDNet 2022-10-19 23:46:06 +02:00
server.h Remove unused DemoRecorder_IsRecording method 2022-08-25 17:57:03 +02:00
server_logger.cpp Extract server main() to its own file 2022-08-15 16:07:27 +03:00
server_logger.h Extract server main() to its own file 2022-08-15 16:07:27 +03:00
sql_string_helpers.cpp Port some code to str_copy() template 2022-07-09 19:40:58 +03:00
sql_string_helpers.h Fix some variable name's style 2020-11-08 17:15:48 +01:00
upnp.cpp Huge variable naming format 2022-07-08 18:01:29 +02:00
upnp.h Huge variable naming format 2022-07-08 18:01:29 +02:00