Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pulls latest upstream #10

Merged
merged 67 commits into from
Mar 11, 2023
Merged

Conversation

dwasint
Copy link

@dwasint dwasint commented Mar 11, 2023

pulls latest upstream and modifies the rust.yml to fall in line with our current Linters on the main repo. Main changes: downgraded to ubuntu-20.04, changed packages to use the same versions as PreCompile does

ZeWaka and others added 30 commits March 18, 2021 21:54
Problem: PRs and all features aren't properly running created unit tests.
Nor are they actually being fully compiled (only checked) on Linux.

Solution: Only have the release builds that are distributed as artifacts run with the default features.
This way, tests can cover all features.
* Adds base64 encoding

* Adds tests

* Commented out import

* Fixes the naming of variables

* ...of course it was a typo

* Update Cargo.toml

Co-authored-by: William Wallace <[email protected]>
* this `else { if .. }` block can be collapsed

* question mark operator is useless here

* this call to `from_str_radix` can be replaced with a call to `str::parse`

* equality checks against true are unnecessary

* Revert "question mark operator is useless here"

This reverts commit 01272c5.
* updates cargo dependencies versions to latest

* Fixes perlin noise generation to use an inclusive range

* Update src/cellularnoise.rs

Co-authored-by: William Wallace <[email protected]>

* Updates cargo.lock

Co-authored-by: William Wallace <[email protected]>
most importantly git2, which made it error when trying to build on linux with the latest rust version
* worley_noise

* a simple fix, forgot to ad dmsort as a necessary package

* replaces .unwrap() with ?

* forgot to save :cryingintoheavens:

* IM SORRY I CANT USE ? IN CLOSURES

* Completely reworks how the code works, massively optimizing it.

Generation lost a tiny bit of it's fidelity but oh well, looks fantastic rn

* one last change

* tfw errors

* makes the noise generate pretties noise

* cargo fmt
Adds rustg_read_toml_file, which takes a filepath and spits out the output after decoding (a list, probably).

Uses the rust-toml lib
* Adds TOTP generator to the hash feature

* Updated TOTP based on requested changes, added a function that allow specification of a tolerance, also updated the hash.dm file to reflect the new functions

* Remove debug print, convert offset output to be JSON, added a test

* Added comments

* Added some error handling

* Improves error handling again

* cargo fmt hash.rs

* separate mod block for hash tests
dds the ability to connect to Redis, subscribe to messages and publish them as well. See here for example usage.

The API, prefixed with rustg_redis_:

    connect(addr) - Connects to a Redis instance using the given address, for example redis://127.0.0.1/. Returns an empty string on success, returns the error otherwise.
    disconnect() - Closes the connection to Redis and stops the thread managing it. Call this before restarting or attempting to reconnect after an error.
    subscribe(channel) - Subscribes to a given channel and starts receiving messages from it.
    get_messages() - Returns all received messages as a JSON string, in the format of
    {"channel_1": ["msg1", "msg2", "msg3", ...], "channel_2": ["msg1", "msg2", "msg3", ...]}.
    Also includes errors, which appear on the channel "RUSTG_REDIS_ERROR_CHANNEL".
    publish(channel, message) - Publishes a message on the given channel.

Remember to check the error channel every time you call get_messages(). If any occur, you need to call disconnect(), then connect() again, then resubscribe to desired channels.
…gstation#84)

 Adds alphabetical order tests for README.md, lib.rs and Cargo.toml tgstation#84

Also renamed "non-default features" to "additional features" in Cargo.toml for consistency with readme

updated the cargo.lock and ran rustfmt
ZeWaka and others added 26 commits July 23, 2022 11:17

Returns the shortest path in a static node map. That is made for TGMC wich uses manually placed nodes for pathfinding.

Benchmark :
image
That's the average number of path computed in one second, out of 30 runs with random nodes. Size of the node map is roughly 800

On average 32 times faster than tgmc a* implementation.
Another possible comparison is with TG's JPS system, and according to the benchmark done here it's 7000 times faster (tgstation/tgstation#56780). Not exactly the same use cases though
update readme with `pathfinder` feature and rust-analyzer note, re: tgstation#115
* lmao we don't need jpeg dependencies for image

* update `noise` to remove the rest of the junk deps

* small clippy fixes

(cherry picked from commit 65cf48a)
@Crossedfall Crossedfall changed the base branch from master to current-bee March 11, 2023 21:18
@Crossedfall Crossedfall merged commit dc99f9d into BeeStation:current-bee Mar 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.