Ports rust_g -> rustlibs: logging, toml, dmi, json, and noisegen (#28858)

* Rustlibs logging, toml, dmi, and dbpnoise

* missed one

* Hopefully fix logging utf-8 decode errors

* Fuck

* Build Rust library

* ports rust_g json validator

* rustlibs_file clippy lint

* Build Rust library

* fix merge conflict

---------

Co-authored-by: paradisess13[bot] <165046124+paradisess13[bot]@users.noreply.github.com>
This commit is contained in:
chuga-git
2025-04-11 12:45:45 -05:00
committed by GitHub
parent 4094c80116
commit 5c8ba2ee4e
25 changed files with 558 additions and 106 deletions
@@ -103,7 +103,7 @@ GLOBAL_DATUM_INIT(configuration, /datum/server_configuration, new())
var/config_file = "config/config.toml"
if(!fexists(config_file))
config_file = "config/example/config.toml" // Fallback to example if user hasnt setup config properly
raw_data = rustg_read_toml_file(config_file)
raw_data = rustlibs_read_toml_file(config_file)
// Now pass through all our stuff
load_all_sections()
@@ -147,7 +147,7 @@ GLOBAL_DATUM_INIT(configuration, /datum/server_configuration, new())
DIRECT_OUTPUT(world.log, "Override file [override_file] found. Loading.")
var/start = start_watch() // Time tracking
raw_data = rustg_read_toml_file(override_file)
raw_data = rustlibs_read_toml_file(override_file)
// Now safely load our overrides.
// Due to the nature of config wrappers, only vars that exist in the config file are applied to the config datums.
+3 -3
View File
@@ -45,7 +45,7 @@ SUBSYSTEM_DEF(http)
log_data += "\tResponse body: [res.body]"
log_data += "\tResponse headers: [json_encode(res.headers)]"
log_data += "END ASYNC RESPONSE (ID: [req.id])"
rustg_log_write(GLOB.http_log, log_data.Join("\n[GLOB.log_end]"))
rustlibs_log_write(GLOB.http_log, log_data.Join("\n[GLOB.log_end]"))
/**
* Async request creator
@@ -74,7 +74,7 @@ SUBSYSTEM_DEF(http)
log_data += "END ASYNC REQUEST (ID: [req.id])"
// Write the log data
rustg_log_write(GLOB.http_log, log_data.Join("\n[GLOB.log_end]"))
rustlibs_log_write(GLOB.http_log, log_data.Join("\n[GLOB.log_end]"))
/**
* Blocking request creator
@@ -106,7 +106,7 @@ SUBSYSTEM_DEF(http)
log_data += "END BLOCKING REQUEST"
// Write the log data
rustg_log_write(GLOB.http_log, log_data.Join("\n[GLOB.log_end]"))
rustlibs_log_write(GLOB.http_log, log_data.Join("\n[GLOB.log_end]"))
return res
*/