forked from tgstation/tgstation
-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace tg-rust-g with rust_utils (#988)
## Что этот PR делает Удаляем `tg-rust-g` версию сс220 и заменяем его `rust_utils` ## Summary by Sourcery Replace the `tg-rust-g` library with `rust_utils`. Build: - Update the CI configuration to install `rust_utils` instead of `rust-g-ss220`. Chores: - Remove the now-unused `tg-rust-g` code and definitions.
- Loading branch information
Showing
14 changed files
with
52 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/datum/modpack/rust_utils | ||
name = "Rust Utils" | ||
desc = "Набор утилит на rust" | ||
author = "furior, gaxeer" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#include "_rust_utils.dm" | ||
|
||
#include "code/rust_utils.dm" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#ifndef RUST_UTILS | ||
|
||
/* This comment bypasses grep checks */ /var/__rust_utils | ||
|
||
/proc/__detect_rust_utils() | ||
if(world.system_type == UNIX) | ||
if(fexists("./librust_utils.so")) | ||
// No need for LD_LIBRARY_PATH badness. | ||
return __rust_utils = "./librust_utils.so" | ||
else | ||
// It's not in the current directory, so try others | ||
return __rust_utils = "librust_utils.so" | ||
else | ||
return __rust_utils = "librust_utils" | ||
|
||
#define RUST_UTILS (__rust_utils || __detect_rust_utils()) | ||
#endif | ||
|
||
/// Gets the version of rust_utils | ||
/proc/rust_utils_get_version() return RUSTG_CALL(RUST_UTILS, "get_version")() | ||
|
||
#define rustutils_file_write_b64decode(text, fname) RUSTG_CALL(RUST_UTILS, "file_write")(text, fname, "true") | ||
|
||
#define rustutils_regex_replace(text, re, re_params, replacement) RUSTG_CALL(RUST_UTILS, "regex_replace")(text, re, re_params, replacement) | ||
|
||
#define rustutils_cyrillic_to_latin(text) RUSTG_CALL(RUST_UTILS, "cyrillic_to_latin")("[text]") | ||
#define rustutils_latin_to_cyrillic(text) RUSTG_CALL(RUST_UTILS, "latin_to_cyrillic")("[text]") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters