-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
00d497b
commit fa971f0
Showing
1 changed file
with
35 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# rust-g | ||
|
||
rust-g (pronounced rusty-g) is a library which offloads certain expensive or difficult | ||
tasks from BYOND. | ||
|
||
This library is currently used in the [tgstation] codebase, and is required for it to run. | ||
A pre-compiled DLL version can be found in the repo root, but you can build your own from | ||
this repo at your preference. | ||
|
||
## Compiling | ||
|
||
rust-g is build with [Rust] as you might have guessed from the name. Install rust using | ||
[rustup] in order to build rust-g using [cargo] (as a release build, for speed): | ||
|
||
cargo build --release | ||
|
||
All dependencies will automatically be downloaded and compiled. rust-g should be compilable on | ||
both Rust stable and nightly. | ||
|
||
You will find your `.so` or `.dll` in `targets/release`. More advanced users can | ||
cross-compile rust-g using cargo (but this is beyond the scope of a README). | ||
|
||
## Installing | ||
|
||
rust-g needs to be installed to your BYOND bin folder (to run in trusted mode), or | ||
the root of your repository (next to your `.dmb`). | ||
|
||
Linux users should symlink or rename `librust_g.so` to `rust_g` in order for BYOND | ||
to correctly resolve the library. | ||
|
||
|
||
[tgstation]: https://github.com/tgstation/tgstation | ||
[Rust]: https://rust-lang.org | ||
[cargo]: https://doc.rust-lang.org/cargo/ | ||
[rustup]: https://rustup.rs/ |